aboutsummaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2005-01-19 00:06:59 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2005-01-18 23:06:59 +0000
commit8c96cd51c7156218a1b26da8d08885649d234aee (patch)
treeb422c0dfed9c70d016f242be350aaef240a4c22d /gcc/calls.c
parent2b009f5f3fed9f56a332929f38a04718d66673a3 (diff)
downloadgcc-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/calls.c')
-rw-r--r--gcc/calls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index 72cba49..9e228ac 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -2722,7 +2722,7 @@ expand_call (tree exp, rtx target, int ignore)
end_sequence ();
if (flag_unsafe_math_optimizations
&& fndecl
- && DECL_BUILT_IN (fndecl)
+ && DECL_BUILT_IN_CLASS (fndecl) == BUILT_IN_NORMAL
&& (DECL_FUNCTION_CODE (fndecl) == BUILT_IN_SQRT
|| DECL_FUNCTION_CODE (fndecl) == BUILT_IN_SQRTF
|| DECL_FUNCTION_CODE (fndecl) == BUILT_IN_SQRTL))