* 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
+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
/* { dg-options "-dA" } */
/* { dg-final { scan-assembler "xyzzy" } } */
-long foo(long p)
+long p;
+
+long foo(void)
{
{
long xyzzy = 0;
/* { dg-options "-dA" } */
/* { dg-final { scan-assembler "xyzzy" } } */
-long foo(long p)
+long p;
+
+long foo(void)
{
if (1)
{
# 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