aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ccp.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2007-04-09 00:12:21 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2007-04-08 22:12:21 +0000
commitc586d32a1e2cc9997c4c9a05f08a33436710559d (patch)
treed155309522eafe8f8aa9080b7fa88971868cdef3 /gcc/tree-ssa-ccp.c
parent136cdb2250cf60a040cd419c51e9850415ec511c (diff)
downloadgcc-c586d32a1e2cc9997c4c9a05f08a33436710559d.zip
gcc-c586d32a1e2cc9997c4c9a05f08a33436710559d.tar.gz
gcc-c586d32a1e2cc9997c4c9a05f08a33436710559d.tar.bz2
tree.h (maybe_fold_offset_to_component_ref): Declare.
* tree.h (maybe_fold_offset_to_component_ref): Declare. * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export. * fold-const.c (fold_unary): Use it. * gcc.dg/tree-ssa/foldaddr-2.c: New file. From-SVN: r123664
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r--gcc/tree-ssa-ccp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c
index b5adbd9..ebf2708 100644
--- a/gcc/tree-ssa-ccp.c
+++ b/gcc/tree-ssa-ccp.c
@@ -1643,7 +1643,7 @@ maybe_fold_offset_to_array_ref (tree base, tree offset, tree orig_type)
is the desired result type. */
/* ??? This doesn't handle class inheritance. */
-static tree
+tree
maybe_fold_offset_to_component_ref (tree record_type, tree base, tree offset,
tree orig_type, bool base_is_ptr)
{