aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-reassoc.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-06-15 20:02:35 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-06-15 13:02:35 -0700
commit14643af3f87bcbd80e8c2906871f3dc0536d6e2b (patch)
tree777dae5d1b33e63ce385fd840c2c6f31f98d5f22 /gcc/tree-ssa-reassoc.c
parentfbb4c46b2d6b1cb70f05c25e01462d90282aece5 (diff)
downloadgcc-14643af3f87bcbd80e8c2906871f3dc0536d6e2b.zip
gcc-14643af3f87bcbd80e8c2906871f3dc0536d6e2b.tar.gz
gcc-14643af3f87bcbd80e8c2906871f3dc0536d6e2b.tar.bz2
re PR tree-optimization/22024 (ACATS ICE cxa5a07 cxa5a08 cxg2016 SEGV in get_rank tree-ssa-reassoc.c:292)
2005-06-15 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/22024 * tree-ssa-reassoc.c (init_reassoc): Also give chain decl a distint rank. From-SVN: r100993
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
-rw-r--r--gcc/tree-ssa-reassoc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c
index 4f033e9..68a2910 100644
--- a/gcc/tree-ssa-reassoc.c
+++ b/gcc/tree-ssa-reassoc.c
@@ -230,6 +230,13 @@ init_reassoc (void)
insert_value_rank (def, ++rank);
}
}
+ /* Give the chain decl a distinct rank. */
+ if (cfun->static_chain_decl != NULL)
+ {
+ tree def = default_def (cfun->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++)