This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/22024] [4.1 Regression] ACATS ICE cxa5a07 cxa5a08 cxg2016 SEGV in get_rank tree-ssa-reassoc.c:292
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2005 23:05:24 -0000
- Subject: [Bug tree-optimization/22024] [4.1 Regression] ACATS ICE cxa5a07 cxa5a08 cxg2016 SEGV in get_rank tree-ssa-reassoc.c:292
- References: <20050611225354.22024.laurent@guerby.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-11 23:05 -------
This patch should fix it, it sets up the rank for the chain decl too:
Index: tree-ssa-reassoc.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-reassoc.c,v
retrieving revision 2.1
diff -u -p -r2.1 tree-ssa-reassoc.c
--- tree-ssa-reassoc.c 6 Jun 2005 18:55:59 -0000 2.1
+++ tree-ssa-reassoc.c 11 Jun 2005 23:03:41 -0000
@@ -230,6 +230,13 @@ init_reassoc (void)
insert_value_rank (def, ++rank);
}
}
+ /* Give the chain decl a distinct rank. */
+ if (cfunc->static_chain_decl != NULL)
+ {
+ tree def = default_def (cfunc->static_chain_decl);
+ if (def != NULL)
+ insert_value_rank (def, ++rank);
+ }
/* Set up rank for each BB */
for (i = 0; i < n_basic_blocks; i++)
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Component|ada |tree-optimization
Summary|ACATS ICE cxa5a07 cxa5a08 |[4.1 Regression] ACATS ICE
|cxg2016 SEGV in get_rank |cxa5a07 cxa5a08 cxg2016 SEGV
|tree-ssa-reassoc.c:292 |in get_rank tree-ssa-
| |reassoc.c:292
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22024