diff options
author | Jan Hubicka <jh@suse.cz> | 2007-05-01 13:18:01 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2007-05-01 11:18:01 +0000 |
commit | fe9821b88c042f37973f4ab2866a52dcb676446c (patch) | |
tree | bd72595e8b02806708c943137cbe687e4482667d /gcc/tree.h | |
parent | 8b11009bad1b794283984fc806198e3cf29dbed3 (diff) | |
download | gcc-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.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |