gcc-dg.exp (gcc-dg-debug-runtest): Do not run debug-[12].c at -O with stabs debugging...
authorEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 17 Dec 2003 07:14:26 +0000 (08:14 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 17 Dec 2003 07:14:26 +0000 (07:14 +0000)
* lib/gcc-dg.exp (gcc-dg-debug-runtest): Do not run debug-[12].c
at -O with stabs debugging formats.
* gcc.dg/debug/debug-1.c: Turn 'p' into a global variable.
* gcc.dg/debug/debug-2.c: Likewise.

From-SVN: r74736

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/debug-1.c
gcc/testsuite/gcc.dg/debug/debug-2.c
gcc/testsuite/lib/gcc-dg.exp

index 5f1ecdc..4830f69 100644 (file)
@@ -1,3 +1,10 @@
+2003-12-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * lib/gcc-dg.exp (gcc-dg-debug-runtest): Do not run debug-[12].c
+       at -O with stabs debugging formats.
+       * gcc.dg/debug/debug-1.c: Turn 'p' into a global variable.
+       * gcc.dg/debug/debug-2.c: Likewise.
+
 2003-12-16  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/12696
index b413eb7..8cc520d 100644 (file)
@@ -3,7 +3,9 @@
 /* { dg-options "-dA" } */
 /* { dg-final { scan-assembler "xyzzy" } } */
 
-long foo(long p)
+long p;
+
+long foo(void)
 {
   {
     long xyzzy = 0;
index e11b7b0..b164ff9 100644 (file)
@@ -3,7 +3,9 @@
 /* { dg-options "-dA" } */
 /* { dg-final { scan-assembler "xyzzy" } } */
 
-long foo(long p)
+long p;
+
+long foo(void)
 {
   if (1)
     {
index 7fd52a9..819e3ca 100644 (file)
@@ -237,7 +237,7 @@ proc gcc-dg-debug-runtest { target_compile trivial opt_opts testcases } {
     # assembler output, but stabs debugging does not.
     # http://gcc.gnu.org/ml/gcc-regression/2003-04/msg00095.html
            if { [string match {*/debug-[12].c} "$nshort"] \
-                   && [string match "*O3*" "$flags"] \
+                   && [string match "*O*" "$flags"] \
                    && ( [string match "*coff*" "$flags"] \
                         || [string match "*stabs*" "$flags"] ) } {
                set doit 0