aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-02-17 16:01:53 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-02-17 16:01:53 +0000
commit6b24ee26e51ea066a5324578c95a0256dbd7a5c6 (patch)
treea5861330ce269fc0e2f0fb5f3a8d6f41fcd0c03e /gcc/tree-ssa-structalias.c
parent91ab2c868e9570a958c4884415d580c7bcd933f3 (diff)
downloadgcc-6b24ee26e51ea066a5324578c95a0256dbd7a5c6.zip
gcc-6b24ee26e51ea066a5324578c95a0256dbd7a5c6.tar.gz
gcc-6b24ee26e51ea066a5324578c95a0256dbd7a5c6.tar.bz2
re PR tree-optimization/39202 (internal compiler error: in collapse_rest_of_var, at tree-ssa-structalias.c:3296)
2009-02-17 Richard Guenther <rguenther@suse.de> PR tree-optimization/39202 * tree-ssa-structalias.c (do_structure_copy): Before collapsing a var make sure to follow existing collapses. * gcc.c-torture/compile/pr39202.c: New testcase. From-SVN: r144235
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index f9962b3..8f88796 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -3405,8 +3405,8 @@ do_structure_copy (tree lhsop, tree rhsop)
{
if (!do_simple_structure_copy (lhs, rhs, MIN (lhssize, rhssize)))
{
- lhs.var = collapse_rest_of_var (lhs.var);
- rhs.var = collapse_rest_of_var (rhs.var);
+ lhs.var = collapse_rest_of_var (get_varinfo_fc (lhs.var)->id);
+ rhs.var = collapse_rest_of_var (get_varinfo_fc (rhs.var)->id);
lhs.offset = 0;
rhs.offset = 0;
lhs.type = SCALAR;