diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-11-17 18:47:02 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-11-17 18:47:02 +0000 |
commit | b03ff92e67280a98ab1587e0460069eea0fd5a8b (patch) | |
tree | a5d1ace93e0252d5801b679ce67304637037962a /gcc/builtins.h | |
parent | 7a31e5ef6dab7c1a2d780369804352351f4630ea (diff) | |
download | gcc-b03ff92e67280a98ab1587e0460069eea0fd5a8b.zip gcc-b03ff92e67280a98ab1587e0460069eea0fd5a8b.tar.gz gcc-b03ff92e67280a98ab1587e0460069eea0fd5a8b.tar.bz2 |
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
Diffstat (limited to 'gcc/builtins.h')
-rw-r--r-- | gcc/builtins.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/builtins.h b/gcc/builtins.h index 7f92d07..917eb9085 100644 --- a/gcc/builtins.h +++ b/gcc/builtins.h @@ -61,6 +61,7 @@ extern void expand_builtin_setjmp_setup (rtx, rtx); extern void expand_builtin_setjmp_receiver (rtx); extern void expand_builtin_update_setjmp_buf (rtx); extern tree mathfn_built_in (tree, enum built_in_function fn); +extern tree mathfn_built_in (tree, combined_fn); extern rtx builtin_strncpy_read_str (void *, HOST_WIDE_INT, machine_mode); extern rtx builtin_memset_read_str (void *, HOST_WIDE_INT, machine_mode); extern rtx expand_builtin_saveregs (void); |