[PATCH] Fix PR25253

Richard Guenther rguenther@suse.de
Sun Dec 4 21:43:00 GMT 2005


The test is supposed to test for struct propagation, but on most
targets SRA already removes references to temp_struct.  The dump
file optimizing exposed this fact and thus I wrongly removed the
xfail from the test.  Re-added with -fno-tree-sra so we really
test for struct-prop which we don't have.

Ok for mainline?

Thanks,
Richard.

2005-12-04  Richard Guenther  <rguenther@suse.de>

	PR testsuite/25253
	* gcc.dg/tree-ssa/20031106-6.c: Disable SRA, add back
	xfail.

Index: gcc.dg/tree-ssa/20031106-6.c
===================================================================
--- gcc.dg/tree-ssa/20031106-6.c	(revision 108015)
+++ gcc.dg/tree-ssa/20031106-6.c	(working copy)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */ 
-/* { dg-options "-O1 -fdump-tree-optimized" } */
+/* { dg-options "-O1 -fno-tree-sra -fdump-tree-optimized" } */
 
 extern void link_error (void);
 
@@ -25,5 +25,5 @@
 
 /* There should be no references to any of "temp_struct*"
    temporaries.  */
-/* { dg-final { scan-tree-dump-times "temp_struct" 0 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "temp_struct" 0 "optimized" { xfail *-*-* } } } */
 /* { dg-final { cleanup-tree-dump "optimized" } } */



More information about the Gcc-patches mailing list