This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/35041] ICE in tree-ssa-ccp.c with -fipa-struct-reorg
- From: "olga at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2008 15:18:19 -0000
- Subject: [Bug middle-end/35041] ICE in tree-ssa-ccp.c with -fipa-struct-reorg
- References: <bug-35041-15577@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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