re PR tree-optimization/48149 (Piecewise complex pass-through not optimized)
authorRichard Guenther <rguenther@suse.de>
Wed, 16 Mar 2011 15:55:48 +0000 (15:55 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 16 Mar 2011 15:55:48 +0000 (15:55 +0000)
commit0b0081eca46587e27c16abc633fd199832616243
treec5cd6c801e4c789da378446f25991564e80ee541
parent9977914ea5f6a5c6073891e770191e98beedad04
re PR tree-optimization/48149 (Piecewise complex pass-through not optimized)

2011-03-16  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/48149
* fold-const.c (fold_binary_loc): Fold
COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.

* gcc.dg/fold-complex-1.c: New testcase.

From-SVN: r171048
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-complex-1.c [new file with mode: 0644]