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
This commit is contained in:
Eric Botcazou 2003-12-17 08:14:26 +01:00 committed by Eric Botcazou
parent 07f8f74a7b
commit a7833d6a0b
4 changed files with 14 additions and 3 deletions

View 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

View 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;

View File

@ -3,7 +3,9 @@
/* { dg-options "-dA" } */
/* { dg-final { scan-assembler "xyzzy" } } */
long foo(long p)
long p;
long foo(void)
{
if (1)
{

View 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