re PR middle-end/34462 (tree check: expected ssa_name, have struct_field_tag in vuses...
authorRichard Guenther <rguenther@suse.de>
Fri, 14 Dec 2007 14:21:41 +0000 (14:21 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 14 Dec 2007 14:21:41 +0000 (14:21 +0000)
commitae4dbd44baaea8b195e792c1865d02e8bf6c36b8
tree21ef4ec05b828e6f1466e7a77d7a896095ce86bf
parent2c9fd13e905b68909db52d6868645790f935e35a
re PR middle-end/34462 (tree check: expected ssa_name, have struct_field_tag in vuses_compare, at tree-vn.c:118)

2007-12-14  Richard Guenther  <rguenther@suse.de>

PR middle-end/34462
* tree-ssa-operands.h (create_ssa_artificial_load_stmt): Add
parameter to say whether to unlink immediate uses.
* tree-ssa-operands.c (create_ssa_artificial_load_stmt): Do not
mark the artificial stmt as modified.  Unlink immediate uses
only if requested.
* tree-ssa-dom.c (record_equivalences_from_stmt): Update caller.
* tree-ssa-pre.c (insert_fake_stores): Likewise.

* gcc.c-torture/compile/20071214-1.c: New testcase.

From-SVN: r130931
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20071214-1.c [new file with mode: 0644]
gcc/tree-ssa-dom.c
gcc/tree-ssa-operands.c
gcc/tree-ssa-operands.h
gcc/tree-ssa-pre.c