Move constant bitop and bswap folds to fold-const-call.c
authorRichard Sandiford <richard.sandiford@arm.com>
Sat, 7 Nov 2015 10:08:31 +0000 (10:08 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sat, 7 Nov 2015 10:08:31 +0000 (10:08 +0000)
commitdb9bd5d5752356a71b1ce6986f30c164c39cf51d
treeec9ea09087c5f93cc1650b6838db331fe6529046
parent2556a032cc18bb71c85988967fed074528fb5030
Move constant bitop and bswap folds to fold-const-call.c

The only folds left in builtins.c were for constants, so we can remove
the builtins.c handling entirely.

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

gcc/
* builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
(fold_builtin_1): Don't call them.
* fold-const-call.c: Include tm.h.
(fold_const_call_ss): New variant for integer-to-integer folds.
(fold_const_call): Call it.

From-SVN: r229921
gcc/ChangeLog
gcc/builtins.c
gcc/fold-const-call.c