tree-ssa-ccp.c (get_symbol_constant_value): Export.
authorRichard Guenther <rguenther@suse.de>
Sat, 15 Mar 2008 14:34:18 +0000 (14:34 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 15 Mar 2008 14:34:18 +0000 (14:34 +0000)
commited97ddc649f7edc10e75e05c92cf49fdfbdd6150
tree8d621c599271cc9675f83006117dc15c1f907030
parentab55105446b5bd197d6e41a7056036b27eda1154
tree-ssa-ccp.c (get_symbol_constant_value): Export.

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

* tree-ssa-ccp.c (get_symbol_constant_value): Export.
(fold_const_aggregate_ref): Likewise.
(get_value): Return NULL if we don't have any values.
(ccp_finalize): Set const_val to NULL after freeing it.
* tree-flow.h (get_symbol_constant_value): Declare.
(fold_const_aggregate_ref): Likewise.
* tree-ssa-sccvn.c (try_to_simplify): Use them.

* gcc.dg/pr23911.c: Adjust testcase.
* gcc.dg/tree-ssa/pr14841.c: Likewise.
* gcc.dg/tree-ssa/20030922-2.c: Likewise.

From-SVN: r133251
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr23911.c
gcc/testsuite/gcc.dg/tree-ssa/20030922-2.c
gcc/testsuite/gcc.dg/tree-ssa/pr14841.c
gcc/tree-flow.h
gcc/tree-ssa-ccp.c
gcc/tree-ssa-sccvn.c