re PR tree-optimization/38747 (Wrong code due to VIEW_CONVERT_EXPR)
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Tue, 20 Jan 2009 17:10:40 +0000 (17:10 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 20 Jan 2009 17:10:40 +0000 (17:10 +0000)
commit37348bf1059789a055e87113553bdda141db5cd0
tree724475a560b4dd068a277f34c223a8bf205b5837
parentd0a589040b272bdc1adafd3a268d0903d418e1aa
re PR tree-optimization/38747 (Wrong code due to VIEW_CONVERT_EXPR)

2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
Richard Guenther  <rguenther@suse.de>

PR tree-optimization/38747
PR tree-optimization/38748
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
conversion if the base address is an indirect reference and the
aliasing sets could cause issues.

* gcc.dg/tree-ssa/struct-aliasing-1.c: New test.
* gcc.dg/tree-ssa/struct-aliasing-2.c: Likewise.
* gcc.c-torture/execute/struct-aliasing-1.c: Likewise.

Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r143523
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/struct-aliasing-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/struct-aliasing-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/struct-aliasing-2.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.c