Patchwork Fix PR tree-opt/46232

login
register
mail settings
Submitter Eric Botcazou
Date Dec. 18, 2010, 12:50 p.m.
Message ID <201012181350.59835.ebotcazou@adacore.com>
Download mbox | patch
Permalink /patch/76069/
State New
Headers show

Comments

Eric Botcazou - Dec. 18, 2010, 12:50 p.m.
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.

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" } } */
-
-