tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also recurse on an invariant...
authorJoseph Myers <joseph@codesourcery.com>
Fri, 15 May 2009 12:13:02 +0000 (13:13 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 15 May 2009 12:13:02 +0000 (13:13 +0100)
commit16b29cc4d6294f78af7026dbf5aae68b03531da3
tree3515881bf8eb12526689a646dc2ac11b970093fe
parent934432b66c473da1d248bb5f61dc8549bf14db81
tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also recurse on an invariant address if a conversion from a pointer type to a...

* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
recurse on an invariant address if a conversion from a pointer
type to a wider integer type is involved.

testsuite:
* gcc.c-torture/compile/ptr-conv-1.c: New test.

From-SVN: r147570
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/ptr-conv-1.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.c