Extend mathfn_built_in to handle combined_fn
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 17 Nov 2015 18:47:02 +0000 (18:47 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 17 Nov 2015 18:47:02 +0000 (18:47 +0000)
commitb03ff92e67280a98ab1587e0460069eea0fd5a8b
treea5d1ace93e0252d5801b679ce67304637037962a
parent7a31e5ef6dab7c1a2d780369804352351f4630ea
Extend mathfn_built_in to handle combined_fn

This patch extends mathfn_built_in to handle combined_fn, but keeps the
old built_in_function interface around since it's a common case.

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

gcc/
* builtins.h (mathfn_built_in): Add a variant that takes
a combined_fn.
* builtins.c: Include case-cfn-macros.h.
(CASE_MATHFN): Use CASE_CFN_*.
(CASE_MATHFN_REENT): Use CFN_ codes.
(mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
argument with a combined_fn.
(mathfn_built_in): Add a variant that takes a combined_fn.
(expand_builtin_int_roundingfn_2): Update callers accordingly.
(fold_builtin_sincos, fold_builtin_classify): Likewise.

From-SVN: r230483
gcc/ChangeLog
gcc/builtins.c
gcc/builtins.h