re PR tree-optimization/24351 (ICE in do_simple_structure_copy with some C++ code)
authorDaniel Berlin <dberlin@dberlin.org>
Thu, 3 Nov 2005 15:39:48 +0000 (15:39 +0000)
committerDaniel Berlin <dberlin@gcc.gnu.org>
Thu, 3 Nov 2005 15:39:48 +0000 (15:39 +0000)
commit031905948adabb18c9a4f1fe9156cbf5aea964b2
tree9dcbe9162456b36aa816086c8de751f7d2af94ad
parent08330ec2ad5a413f7e88fbb48092dd0d27000850
re PR tree-optimization/24351 (ICE in do_simple_structure_copy with some C++ code)

2005-11-03  Daniel Berlin  <dberlin@dberlin.org>

Fix PR tree-optimization/24351

* tree-ssa-structalias.c (struct variable_info): Add
collapsed_into.
(get_varinfo_fc): New function to follow collapsing.
(new_var_info): Set collapsed_to to NULL.
(dump_constraint): Follow collapsing.
(build_constraint_graph): Handle collapsing.
(do_simple_structure_copy): Return false if something bad
happened.
(collapse_rest_of_var): New function.
(do_structure_copy): Collapse if do_simple_structure_copy returns
false.

From-SVN: r106437
gcc/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr24351-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/tree-ssa/pr24351-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/tree-ssa/pr24351-3.C [new file with mode: 0644]
gcc/tree-ssa-structalias.c