Remove constant handling from fold_builtin_{,f}abs
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 27 Oct 2015 11:54:51 +0000 (11:54 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 27 Oct 2015 11:54:51 +0000 (11:54 +0000)
commitefc8f0d8d16144627d0fad4c43496f8e6e869161
tree0293fbe773b7677c6491cc9854f55321e21d70f6
parentcd8d6792e3375d86e3ca810f261deef4f3f12048
Remove constant handling from fold_builtin_{,f}abs

fold_builtin_fabs and fold_builtin_abs had code to handle constant
arguments, but this simply duplicated what the following fold_build1_loc
would do for ABS_EXPR.

Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.

gcc/
* builtins.c (fold_builtin_fabs): Remove constant handling.
(fold_builtin_abs): Likewise.

From-SVN: r229427
gcc/ChangeLog
gcc/builtins.c