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]

[PATCH]: Fix tree-optimization/22531


This is also the current ice on powerpc.

We don't know what to do with non-decls on the LHS right now, and we do
the wrong thing if we find them to eliminate.

We could technically handle them.  I'm not up for it ATM.


Bootstrapped and regtested on i686-pc-linux-gnu, confirmed to fix the
ice and the testcase by andrew pinski.

Committed to mainline.


2005-07-17  Daniel Berlin  <dberlin@dberlin.org>

	Fix PR tree-optimization/22531
	* tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
	 moment.
Index: tree-ssa-pre.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-pre.c,v
retrieving revision 2.97
diff -u -p -r2.97 tree-ssa-pre.c
--- tree-ssa-pre.c	17 Jul 2005 17:13:52 -0000	2.97
+++ tree-ssa-pre.c	17 Jul 2005 22:24:38 -0000
@@ -2807,6 +2807,7 @@ do_eustores (void)
 
 	      if (NUM_SSA_OPERANDS (found, SSA_OP_VUSE) != 1
 		  || VUSE_OP (VUSE_OPS (found)) != kill
+		  || !DECL_P (TREE_OPERAND (stmt, 0))
 		  || !operand_equal_p (TREE_OPERAND (found, 1), 
 				       TREE_OPERAND (stmt, 0), 0))
 		{

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