fold-const.c (fold_abs_const): Make extern.
authorRoger Sayle <roger@eyesopen.com>
Thu, 10 Jun 2004 13:29:34 +0000 (13:29 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Thu, 10 Jun 2004 13:29:34 +0000 (13:29 +0000)
commit9655d83b750bc6de0074b0501044d4bcb28679d9
treee940d7de6a39821eb5ab7003e89e3a25995283fa
parenta7b155a6ad9475549f1c0e32bb7c29dc66567864
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
gcc/ChangeLog
gcc/builtins.c
gcc/fold-const.c
gcc/tree.h