diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-01 08:41:53 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-01 08:41:53 +0000 |
commit | 92ddcd9701b4dd0fde3d3c640cdb6a1f49c0f7a2 (patch) | |
tree | 9cd3add9e373b84961bc956ed0b4d7217321694d /gcc/builtins.c | |
parent | f639fdbff97b434f0ee9d6d2f03b6c5483efbed2 (diff) | |
download | gcc-92ddcd9701b4dd0fde3d3c640cdb6a1f49c0f7a2.tar.gz |
2009-09-01 Richard Guenther <rguenther@suse.de>
* tree.c (tree_expr_size): New function.
* tree.h (tree_expr_size): Declare.
* rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
* builtins.c (fold_builtin_memory_op): Use tree_expr_size.
* langhooks.c (lhd_expr_size): Remove.
* langhooks.h (struct lang_hooks): Remove expr_size.
* explow.c (expr_size): Use tree_expr_size.
(int_expr_size): Likewise.
* langhooks-def.h (lhd_expr_size): Remove.
(LANG_HOOKS_EXPR_SIZE): Likewise.
(LANG_HOOKS_INITIALIZER): Adjust.
cp/
* cp-objcp-common.c (cp_expr_size): Use tree_expr_size.
* cp-objcp-common.h (LANG_HOOKS_EXPR_SIZE): Do not define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151261 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index ed97d485167..7ea899d19ba 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -9092,7 +9092,7 @@ fold_builtin_memory_op (location_t loc, tree dest, tree src, srcvar = build_fold_indirect_ref_loc (loc, src); if (TREE_THIS_VOLATILE (srcvar)) return NULL_TREE; - else if (!tree_int_cst_equal (lang_hooks.expr_size (srcvar), len)) + else if (!tree_int_cst_equal (tree_expr_size (srcvar), len)) srcvar = NULL_TREE; /* With memcpy, it is possible to bypass aliasing rules, so without this check i.e. execute/20060930-2.c would be misoptimized, @@ -9110,7 +9110,7 @@ fold_builtin_memory_op (location_t loc, tree dest, tree src, destvar = build_fold_indirect_ref_loc (loc, dest); if (TREE_THIS_VOLATILE (destvar)) return NULL_TREE; - else if (!tree_int_cst_equal (lang_hooks.expr_size (destvar), len)) + else if (!tree_int_cst_equal (tree_expr_size (destvar), len)) destvar = NULL_TREE; else if (!var_decl_component_p (destvar)) destvar = NULL_TREE; |