OSDN Git Service

2005-07-26 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jul 2005 07:34:58 +0000 (07:34 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jul 2005 07:34:58 +0000 (07:34 +0000)
commit73d9e97dacc69a80bf14525969146619c8a27c8a
tree0c96be52bba7fbb40aef73b7e70cfd92198df875
parent442769015c7c50ca6cf327e1da232ab25e79012c
2005-07-26  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/22486
* fold-const.c (fold_unary): Fold away useless component
references of the form (T *)&T.x, if the address
doesn't change.

* gcc.dg/tree-ssa/upcast-1.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102381 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/upcast-1.c [new file with mode: 0644]