aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2007-05-01 13:18:01 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2007-05-01 11:18:01 +0000
commitfe9821b88c042f37973f4ab2866a52dcb676446c (patch)
treebd72595e8b02806708c943137cbe687e4482667d /gcc/tree.h
parent8b11009bad1b794283984fc806198e3cf29dbed3 (diff)
downloadgcc-fe9821b88c042f37973f4ab2866a52dcb676446c.zip
gcc-fe9821b88c042f37973f4ab2866a52dcb676446c.tar.gz
gcc-fe9821b88c042f37973f4ab2866a52dcb676446c.tar.bz2
tree.h (maybe_fold_offset_to_component_ref): Remove.
* tree.h (maybe_fold_offset_to_component_ref): Remove. (maybe_fold_offset_to_reference): Declare. * fold-const.c (fold_unary): Do not fold (type *)&A into &A->field_of_type_and_offset_0 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type size is unknown, give up. (maybe_fold_offset_to_component_ref): Ignore firelds with unknown offsets. (maybe_fold_offset_to_reference): New. (maybe_fold_stmt_indirect): Use it. (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset. * gimplify.c (gimplify_conversion): Canonicalize conversions to field references. (gimplify_expr): Likewise for plus_expr. From-SVN: r124323
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index c076fc1..3059d40 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4422,8 +4422,7 @@ extern void fold_defer_overflow_warnings (void);
extern void fold_undefer_overflow_warnings (bool, tree, int);
extern void fold_undefer_and_ignore_overflow_warnings (void);
extern bool fold_deferring_overflow_warnings_p (void);
-extern tree maybe_fold_offset_to_component_ref (tree, tree, tree,
- tree, bool);
+extern tree maybe_fold_offset_to_reference (tree, tree, tree);
extern tree force_fit_type_double (tree, unsigned HOST_WIDE_INT, HOST_WIDE_INT,
int, bool);