re PR middle-end/26134 (fold *(float*)(&complex_float_var) into REALPART_EXPR<complex...
authorRichard Guenther <rguenther@suse.de>
Wed, 16 Mar 2011 13:53:09 +0000 (13:53 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 16 Mar 2011 13:53:09 +0000 (13:53 +0000)
commit64a3d6470e5eb75c87719ba4593a356f67a51c98
tree32a1004eb827fcb9616372fced22401fe1a5db3d
parentef13324ecab94740e5bb2f4c65e0600fe616e9ae
re PR middle-end/26134 (fold *(float*)(&complex_float_var) into REALPART_EXPR<complex_float_var>)

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

PR tree-optimization/26134
* tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
(non_rewritable_mem_ref_base): Handle complex type component
accesses, constrain offsets for vector and complex extracts
more properly.

* gcc.dg/tree-ssa/complex-6.c: New testcase.

From-SVN: r171046
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/complex-6.c [new file with mode: 0644]
gcc/tree-ssa.c