diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-06-10 13:29:34 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-06-10 13:29:34 +0000 |
commit | 9655d83b750bc6de0074b0501044d4bcb28679d9 (patch) | |
tree | e940d7de6a39821eb5ab7003e89e3a25995283fa /gcc/fold-const.c | |
parent | a7b155a6ad9475549f1c0e32bb7c29dc66567864 (diff) | |
download | gcc-9655d83b750bc6de0074b0501044d4bcb28679d9.zip gcc-9655d83b750bc6de0074b0501044d4bcb28679d9.tar.gz gcc-9655d83b750bc6de0074b0501044d4bcb28679d9.tar.bz2 |
fold-const.c (fold_abs_const): Make extern.
* fold-const.c (fold_abs_const): Make extern.
* tree.h (fold_abs_const): Prototype here.
* builtins.c (fold_builtin_fabs): New function to transform
fabs, fabsf and fabsl builtins into ABS_EXPR tree nodes.
(fold_builtin_abs): New function to transform abs, labs, llabs
and imaxabs builtins into ABS_EXPR tree nodes.
(expand_builtin): Fall back to a function call for abs, labs,
llabs and imaxabs builtins that survive constant folding.
(fold_builtin_1): Call fold_builtin_fabs for FABS, FABSF and
FABSL, and fold_builtin_abs for ABS, LABS, LLABS and IMAXABS.
From-SVN: r82916
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index be97417..f5bd659 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -135,7 +135,6 @@ static bool reorder_operands_p (tree, tree); static bool tree_swap_operands_p (tree, tree, bool); static tree fold_negate_const (tree, tree); -static tree fold_abs_const (tree, tree); static tree fold_not_const (tree, tree); static tree fold_relational_const (enum tree_code, tree, tree, tree); static tree fold_relational_hi_lo (enum tree_code *, const tree, @@ -9846,7 +9845,7 @@ fold_negate_const (tree arg0, tree type) TYPE is the type of the result. */ -static tree +tree fold_abs_const (tree arg0, tree type) { tree t = NULL_TREE; |