Commit a7991d53 by Joern Rennecke Committed by Joern Rennecke

global-used-types.c: Request dwarf output.

        * gcc.dg/debug/dwarf2/global-used-types.c: Request dwarf output.
        * gcc.dg/debug/dwarf2/inline2.c: Likewise.
        * gcc.dg/debug/dwarf2/inline3.c: Likewise.
        * gcc.dg/debug/dwarf2/pr37726.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41445-1.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41445-2.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41445-3.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41445-4.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41445-5.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41445-6.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41543.c: Likewise.
        * gcc.dg/debug/dwarf2/pr41695.c: Likewise.
        * gcc.dg/debug/dwarf2/pr43237.c: Likewise.
        * gcc.dg/debug/dwarf2/pr47939-1.c: Likewise.
        * gcc.dg/debug/dwarf2/pr47939-2.c: Likewise.
        * gcc.dg/debug/dwarf2/pr47939-3.c: Likewise.
        * gcc.dg/debug/dwarf2/pr47939-4.c: Likewise.
        * gcc.dg/debug/dwarf2/pr53948.c: Likewise.
        * gcc.dg/debug/dwarf2/struct-loc1.c: Likewise.

From-SVN: r201747
parent c16a952b
...@@ -79,6 +79,26 @@ ...@@ -79,6 +79,26 @@
* gcc.dg/tree-ssa/pr42585.c: Add avr-*-* to list of targets to * gcc.dg/tree-ssa/pr42585.c: Add avr-*-* to list of targets to
exclude from scan test. exclude from scan test.
* gcc.dg/debug/dwarf2/global-used-types.c: Request dwarf output.
* gcc.dg/debug/dwarf2/inline2.c: Likewise.
* gcc.dg/debug/dwarf2/inline3.c: Likewise.
* gcc.dg/debug/dwarf2/pr37726.c: Likewise.
* gcc.dg/debug/dwarf2/pr41445-1.c: Likewise.
* gcc.dg/debug/dwarf2/pr41445-2.c: Likewise.
* gcc.dg/debug/dwarf2/pr41445-3.c: Likewise.
* gcc.dg/debug/dwarf2/pr41445-4.c: Likewise.
* gcc.dg/debug/dwarf2/pr41445-5.c: Likewise.
* gcc.dg/debug/dwarf2/pr41445-6.c: Likewise.
* gcc.dg/debug/dwarf2/pr41543.c: Likewise.
* gcc.dg/debug/dwarf2/pr41695.c: Likewise.
* gcc.dg/debug/dwarf2/pr43237.c: Likewise.
* gcc.dg/debug/dwarf2/pr47939-1.c: Likewise.
* gcc.dg/debug/dwarf2/pr47939-2.c: Likewise.
* gcc.dg/debug/dwarf2/pr47939-3.c: Likewise.
* gcc.dg/debug/dwarf2/pr47939-4.c: Likewise.
* gcc.dg/debug/dwarf2/pr53948.c: Likewise.
* gcc.dg/debug/dwarf2/struct-loc1.c: Likewise.
2013-08-14 Janis Johnson <janisjo@codesourcery.com> 2013-08-14 Janis Johnson <janisjo@codesourcery.com>
* gcc.target/arm/pr19599.c: Skip for -mthumb. * gcc.target/arm/pr19599.c: Skip for -mthumb.
......
/* /*
Contributed by Dodji Seketeli <dodji@redhat.com> Contributed by Dodji Seketeli <dodji@redhat.com>
{ dg-options "-g -dA -fno-merge-debug-strings" } { dg-options "-gdwarf -dA -fno-merge-debug-strings" }
{ dg-do compile } { dg-do compile }
{ dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumeration_type" 1 } } { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumeration_type" 1 } }
{ dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumerator" 2 } } { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumerator" 2 } }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
properly nested DW_TAG_inlined_subroutine DIEs for third, second and first. properly nested DW_TAG_inlined_subroutine DIEs for third, second and first.
*/ */
/* { dg-options "-O -g3 -dA" } */ /* { dg-options "-O -g3 -gdwarf -dA" } */
/* { dg-do compile } */ /* { dg-do compile } */
/* There are 6 inlined subroutines: /* There are 6 inlined subroutines:
......
/* Verify that only one DW_AT_const_value is emitted for baz, /* Verify that only one DW_AT_const_value is emitted for baz,
not for baz abstract DIE and again inside of not for baz abstract DIE and again inside of
DW_TAG_inlined_subroutine. */ DW_TAG_inlined_subroutine. */
/* { dg-options "-O2 -g -dA -fmerge-all-constants" } */ /* { dg-options "-O2 -gdwarf -dA -fmerge-all-constants" } */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-final { scan-assembler-times " DW_AT_const_value" 1 } } */ /* { dg-final { scan-assembler-times " DW_AT_const_value" 1 } } */
......
/* PR debug/37726 */ /* PR debug/37726 */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-g -O0 -dA -fno-merge-debug-strings" } */ /* { dg-options "-gdwarf -O0 -dA -fno-merge-debug-strings" } */
int foo (int parm) int foo (int parm)
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* Test that token after multi-line function-like macro use /* Test that token after multi-line function-like macro use
gets correct locus even when preprocessing separately. */ gets correct locus even when preprocessing separately. */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-save-temps -g -O0 -dA -fno-merge-debug-strings" } */ /* { dg-options "-save-temps -gdwarf -O0 -dA -fno-merge-debug-strings" } */
#define A(a,b) #define A(a,b)
int varh;A(1, int varh;A(1,
......
/* PR preprocessor/41445 */ /* PR preprocessor/41445 */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-g -O0 -dA -fno-merge-debug-strings" } */ /* { dg-options "-gdwarf -O0 -dA -fno-merge-debug-strings" } */
#include "pr41445-1.c" #include "pr41445-1.c"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* Test that token after multi-line function-like macro use /* Test that token after multi-line function-like macro use
gets correct locus even when preprocessing separately. */ gets correct locus even when preprocessing separately. */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-save-temps -g -O0 -dA -fno-merge-debug-strings" } */ /* { dg-options "-save-temps -gdwarf -O0 -dA -fno-merge-debug-strings" } */
#define A(a,b) #define A(a,b)
int varh;/* int varh;/*
......
/* PR preprocessor/41445 */ /* PR preprocessor/41445 */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-g -O0 -dA -fno-merge-debug-strings" } */ /* { dg-options "-gdwarf -O0 -dA -fno-merge-debug-strings" } */
#include "pr41445-3.c" #include "pr41445-3.c"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* Test that token after multi-line function-like macro use /* Test that token after multi-line function-like macro use
gets correct locus even when preprocessing separately. */ gets correct locus even when preprocessing separately. */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-save-temps -g -O0 -dA -fno-merge-debug-strings" } */ /* { dg-options "-save-temps -gdwarf -O0 -dA -fno-merge-debug-strings" } */
#define A(x) vari x #define A(x) vari x
#define vari(x) #define vari(x)
......
/* PR preprocessor/41445 */ /* PR preprocessor/41445 */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-g -O0 -dA -fno-merge-debug-strings" } */ /* { dg-options "-gdwarf -O0 -dA -fno-merge-debug-strings" } */
#include "pr41445-5.c" #include "pr41445-5.c"
......
/* PR preprocessor/41543 */ /* PR preprocessor/41543 */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-save-temps -g -O0 -dA -fno-merge-debug-strings" } */ /* { dg-options "-save-temps -gdwarf -O0 -dA -fno-merge-debug-strings" } */
#include <stdarg.h> #include <stdarg.h>
......
/* PR debug/41695 */ /* PR debug/41695 */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-g -O2 -dA -fno-merge-debug-strings" } */ /* { dg-options "-gdwarf -O2 -dA -fno-merge-debug-strings" } */
int bar (int); int bar (int);
......
/* PR debug/43237 */ /* PR debug/43237 */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-g -O2 -dA -fno-merge-debug-strings" } */ /* { dg-options "-gdwarf -O2 -dA -fno-merge-debug-strings" } */
struct S struct S
{ {
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-save-temps -g -dA" } */ /* { dg-options "-save-temps -gdwarf -dA" } */
typedef struct _Harry { int dummy; } Harry_t; typedef struct _Harry { int dummy; } Harry_t;
Harry_t harry; Harry_t harry;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-save-temps -g -dA" } */ /* { dg-options "-save-temps -gdwarf -dA" } */
typedef const struct _Harry { int dummy; } Harry_t; typedef const struct _Harry { int dummy; } Harry_t;
Harry_t harry; Harry_t harry;
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-save-temps -g -dA" } */ /* { dg-options "-save-temps -gdwarf -dA" } */
typedef struct _Harry { int dummy; } Harry_t; typedef struct _Harry { int dummy; } Harry_t;
const Harry_t harry[5]; const Harry_t harry[5];
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-save-temps -g -dA" } */ /* { dg-options "-save-temps -gdwarf -dA" } */
typedef const struct _Harry { int dummy; } Harry_t; typedef const struct _Harry { int dummy; } Harry_t;
Harry_t harry[10]; Harry_t harry[10];
......
/* Test that we have line information for the line /* Test that we have line information for the line
with local variable initializations. */ with local variable initializations. */
/* { dg-options "-O0 -g -dA" } */ /* { dg-options "-O0 -gdwarf -dA" } */
/* { dg-final { scan-assembler ".loc 1 8 0|\[#/!\]\[ \t\]+line 8" } } */ /* { dg-final { scan-assembler ".loc 1 8 0|\[#/!\]\[ \t\]+line 8" } } */
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-g -O0 -dA -fno-merge-debug-strings" } */ /* { dg-options "-gdwarf -O0 -dA -fno-merge-debug-strings" } */
struct foo; struct foo;
struct foo *obj; struct foo *obj;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment