tree-ssa-ccp.c (fold_ctor_reference): New function.
authorJan Hubicka <jh@suse.cz>
Tue, 28 Sep 2010 16:28:39 +0000 (18:28 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 28 Sep 2010 16:28:39 +0000 (16:28 +0000)
commit697c3575e2a72e4957cccd73a32930f8697847bd
treee1c07b1338c16183ef661f24ea71635de02d9505
parent2770264a75b500cb6b21772223718a2eab620968
tree-ssa-ccp.c (fold_ctor_reference): New function.

* tree-ssa-ccp.c (fold_ctor_reference): New function.
(fold_const_aggregate_ref): Use it.
* fold-const.c (canonicalize_constructor_val): Check that we don't fold
into external static.

From-SVN: r164688
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/foldconst-5.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c