diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2005-01-19 00:06:59 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2005-01-18 23:06:59 +0000 |
commit | 8c96cd51c7156218a1b26da8d08885649d234aee (patch) | |
tree | b422c0dfed9c70d016f242be350aaef240a4c22d /gcc/tree-ssa-loop-im.c | |
parent | 2b009f5f3fed9f56a332929f38a04718d66673a3 (diff) | |
download | gcc-8c96cd51c7156218a1b26da8d08885649d234aee.zip gcc-8c96cd51c7156218a1b26da8d08885649d234aee.tar.gz gcc-8c96cd51c7156218a1b26da8d08885649d234aee.tar.bz2 |
calls.c (expand_call): Check DECL_BUILT_IN_CLASS before accessing DECL_FUNCTION_CODE.
* calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
accessing DECL_FUNCTION_CODE.
* dojump.c (do_jump): Likewise.
* gimplify.c (gimplify_call_expr): Likewise.
* predict.c (expr_expected_value): Likewise.
(strip_builtin_expect): Likewise.
* tree-inline.c (estimate_num_insns_1): Likewise.
* tree-ssa-loop-im.c (stmt_cost): Likewise
* fold-const.c (fold): Test for BUILT_IN_NORMAL.
(tree_expr_nonnegative_p): Likewise.
From-SVN: r93864
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
-rw-r--r-- | gcc/tree-ssa-loop-im.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c index 05970f8..d032fee 100644 --- a/gcc/tree-ssa-loop-im.c +++ b/gcc/tree-ssa-loop-im.c @@ -376,7 +376,7 @@ stmt_cost (tree stmt) /* Unless the call is a builtin_constant_p; this always folds to a constant, so moving it is useless. */ rhs = get_callee_fndecl (rhs); - if (DECL_BUILT_IN (rhs) + if (DECL_BUILT_IN_CLASS (rhs) == BUILT_IN_NORMAL && DECL_FUNCTION_CODE (rhs) == BUILT_IN_CONSTANT_P) return 0; |