This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [testsuite] XFAIL for dg-debug testsuite


> I'm all for fixing/replacing these tests.  At certain optimizations
> levels, they also fail on all PA-RISC ports.  I had a hack to the driver
> to XFAIL them but was too ashamed to submit it.

Here's the patch I need to get 0 failures on SPARC64.  Ok for mainline?


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.

-- 
Eric Botcazou
Index: lib/gcc-dg.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/lib/gcc-dg.exp,v
retrieving revision 1.25
diff -u -r1.25 gcc-dg.exp
--- lib/gcc-dg.exp	10 Dec 2003 06:34:45 -0000	1.25
+++ lib/gcc-dg.exp	17 Dec 2003 05:07:39 -0000
@@ -237,7 +237,7 @@
     # 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
Index: gcc.dg/debug/debug-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/debug/debug-1.c,v
retrieving revision 1.1
diff -u -r1.1 debug-1.c
--- gcc.dg/debug/debug-1.c	26 Jan 2002 02:38:57 -0000	1.1
+++ gcc.dg/debug/debug-1.c	17 Dec 2003 05:07:39 -0000
@@ -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: gcc.dg/debug/debug-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/debug/debug-2.c,v
retrieving revision 1.1
diff -u -r1.1 debug-2.c
--- gcc.dg/debug/debug-2.c	26 Jan 2002 02:38:57 -0000	1.1
+++ gcc.dg/debug/debug-2.c	17 Dec 2003 05:07:39 -0000
@@ -3,7 +3,9 @@
 /* { dg-options "-dA" } */
 /* { dg-final { scan-assembler "xyzzy" } } */
 
-long foo(long p)
+long p;
+
+long foo(void)
 {
   if (1)
     {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]