diff options
author | Jan Hubicka <jh@suse.cz> | 2010-09-04 19:36:49 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-09-04 17:36:49 +0000 |
commit | 17f39a395648213a0c6014e84ff34f3ff565a10b (patch) | |
tree | 57771775ce3d663de352f64104a3e0370a61a56f /gcc/gimple.h | |
parent | 5f7ae6b656d4468b1f2ebf3f773e494c7d147624 (diff) | |
download | gcc-17f39a395648213a0c6014e84ff34f3ff565a10b.zip gcc-17f39a395648213a0c6014e84ff34f3ff565a10b.tar.gz gcc-17f39a395648213a0c6014e84ff34f3ff565a10b.tar.bz2 |
foldconst-2.c: New testcase.
* gcc.dg/tree-ssa/foldconst-2.c: New testcase.
* gcc.dg/tree-ssa/foldconst-3.c: New testcase.
* gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
* tree-ssa-ccp.c (fold_const_aggregate_ref): Use
fold_read_from_constant_string.
* gimple.h (canonicalize_constructor_val): Declare.
* gimple-fold.c (canonicalize_constructor_val): New function.
(get_symbol_constant_value):Use it.
* tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
From-SVN: r163861
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r-- | gcc/gimple.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h index 545b271..ee69318 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -4876,6 +4876,7 @@ tree maybe_fold_offset_to_address (location_t, tree, tree, tree); tree maybe_fold_offset_to_reference (location_t, tree, tree, tree); tree maybe_fold_stmt_addition (location_t, tree, tree, tree); tree get_symbol_constant_value (tree); +tree canonicalize_constructor_val (tree); bool may_propagate_address_into_dereference (tree, tree); extern tree maybe_fold_and_comparisons (enum tree_code, tree, tree, enum tree_code, tree, tree); |