]> gcc.gnu.org Git - gcc.git/commit - gcc/ChangeLog
re PR tree-optimization/22486 (Upcasts are not folded away)
authorRichard Guenther <rguenther@suse.de>
Tue, 26 Jul 2005 07:34:58 +0000 (07:34 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 26 Jul 2005 07:34:58 +0000 (07:34 +0000)
commit46c0a59dfb7e787766e70fae751b66e527a8932a
tree0c96be52bba7fbb40aef73b7e70cfd92198df875
parent3e2844cb07459014e55308e43ec26dd75e280f30
re PR tree-optimization/22486 (Upcasts are not folded away)

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.

From-SVN: r102381
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/upcast-1.c [new file with mode: 0644]
This page took 0.055674 seconds and 5 git commands to generate.