This is the mail archive of the gcc-bugs@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]

[Bug middle-end/35041] ICE in tree-ssa-ccp.c with -fipa-struct-reorg



------- Comment #4 from olga at gcc dot gnu dot org  2008-01-31 15:18 -------
The following test fixes the problem. Under the testing now.

Index: ipa-struct-reorg.c
===================================================================
--- ipa-struct-reorg.c  (revision 131976)
+++ ipa-struct-reorg.c  (working copy)
@@ -887,7 +887,9 @@
   tree ref = r_pos->ref;
   tree t = *tp;

-  if (t == ref)
+  if (t == ref || 
+      (TREE_CODE (t) == SSA_NAME
+       && SSA_NAME_VAR (t) == ref))
     {
       r_pos->pos = tp;
       return t;

Olga


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35041


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