re PR tree-optimization/32810 (Not folding of const element for goto)
authorRichard Guenther <rguenther@suse.de>
Thu, 27 Mar 2008 16:32:28 +0000 (16:32 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 27 Mar 2008 16:32:28 +0000 (16:32 +0000)
commit62bc00e258331aeba39f47e9fee275f4ba5b7956
treec628fc1d3e3534745082337d622e3b846f62f870
parent525521b6ddb69a9f0478704e0eec2231c0923d2d
re PR tree-optimization/32810 (Not folding of const element for goto)

2008-03-27  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/32810
* tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
conversions from DECL_INITIAL.
(fold_const_aggregate_ref): Likewise from constructor elements.

* gcc.dg/tree-ssa/ssa-ccp-18.c: New testcase.

From-SVN: r133645
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-18.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c