diff mbox

Fix PR tree-opt/46232

Message ID 201012181350.59835.ebotcazou@adacore.com
State New
Headers show

Commit Message

Eric Botcazou Dec. 18, 2010, 12:50 p.m. UTC
As diagnosed in the audit trail, the recent introduction of MEM_REF in the SRA 
pass can generate "spurious" address-of operators in the dumps, which breaks 
the pattern matching in gcc.dg/tree-ssa/pr14814.c on e.g. SPARC 64-bit.

The attached patchlet adds -fno-tree-sra to the testcase; this is orthogonal 
to the original problem.  Tested on i586-suse-linux and sparc64-sun-solaris2.9 
applied on the mainline as obvious.


2010-12-18  Eric Botcazou  <ebotcazou@adacore.com>

	PR tree-optimization/46232
	* gcc.dg/tree-ssa/pr14814.c: Add -fno-tree-sra.
diff mbox

Patch

Index: gcc.dg/tree-ssa/pr14814.c
===================================================================
--- gcc.dg/tree-ssa/pr14814.c	(revision 167901)
+++ gcc.dg/tree-ssa/pr14814.c	(working copy)
@@ -1,6 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-forwprop2" } */
-
+/* { dg-options "-O2 -fno-tree-sra -fdump-tree-forwprop2" } */
 
 struct YY {
   double e[3];  };
@@ -21,5 +20,3 @@  int foo(const struct XX* r) {
 
 /* { dg-final { scan-tree-dump-times "&" 0 "forwprop2" } } */
 /* { dg-final { cleanup-tree-dump "forwprop2" } } */
-
-