Commit a7833d6a by Eric Botcazou Committed by Eric Botcazou

gcc-dg.exp (gcc-dg-debug-runtest): Do not run debug-[12].c at -O with stabs debugging formats.

	* 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
parent 07f8f74a
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> 2003-12-16 Mark Mitchell <mark@codesourcery.com>
PR c++/12696 PR c++/12696
......
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
/* { dg-options "-dA" } */ /* { dg-options "-dA" } */
/* { dg-final { scan-assembler "xyzzy" } } */ /* { dg-final { scan-assembler "xyzzy" } } */
long foo(long p) long p;
long foo(void)
{ {
{ {
long xyzzy = 0; long xyzzy = 0;
......
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
/* { dg-options "-dA" } */ /* { dg-options "-dA" } */
/* { dg-final { scan-assembler "xyzzy" } } */ /* { dg-final { scan-assembler "xyzzy" } } */
long foo(long p) long p;
long foo(void)
{ {
if (1) if (1)
{ {
......
...@@ -237,7 +237,7 @@ proc gcc-dg-debug-runtest { target_compile trivial opt_opts testcases } { ...@@ -237,7 +237,7 @@ proc gcc-dg-debug-runtest { target_compile trivial opt_opts testcases } {
# assembler output, but stabs debugging does not. # assembler output, but stabs debugging does not.
# http://gcc.gnu.org/ml/gcc-regression/2003-04/msg00095.html # http://gcc.gnu.org/ml/gcc-regression/2003-04/msg00095.html
if { [string match {*/debug-[12].c} "$nshort"] \ if { [string match {*/debug-[12].c} "$nshort"] \
&& [string match "*O3*" "$flags"] \ && [string match "*O*" "$flags"] \
&& ( [string match "*coff*" "$flags"] \ && ( [string match "*coff*" "$flags"] \
|| [string match "*stabs*" "$flags"] ) } { || [string match "*stabs*" "$flags"] ) } {
set doit 0 set doit 0
......
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