diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-17 16:01:53 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-02-17 16:01:53 +0000 |
commit | 1ab8a9123e72d9bcb71343aab81253de201a1d81 (patch) | |
tree | a5861330ce269fc0e2f0fb5f3a8d6f41fcd0c03e /gcc/tree-ssa-structalias.c | |
parent | aa03bd5e2d1606fd23984cd5b2b0cdc9820c6f08 (diff) | |
download | gcc-1ab8a9123e72d9bcb71343aab81253de201a1d81.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144235 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index f9962b33a98..8f887969427 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; |