diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-11-17 18:42:48 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-11-17 18:42:48 +0000 |
commit | d7ebef0648bc358514ed2048a46b22f801c19689 (patch) | |
tree | a16899561921af923a2765fbaea65fd54a54b63b /gcc/fold-const-call.h | |
parent | 6bac43d760cdced2775cb17add346f757ee6f045 (diff) | |
download | gcc-d7ebef0648bc358514ed2048a46b22f801c19689.zip gcc-d7ebef0648bc358514ed2048a46b22f801c19689.tar.gz gcc-d7ebef0648bc358514ed2048a46b22f801c19689.tar.bz2 |
Extend fold_const_call to combined_fn
This patch extends fold_const_call so that it can handle internal
as well as built-in functions.
Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.
gcc/
* fold-const-call.h (fold_const_call): Replace built_in_function
arguments with combined_fn arguments.
* fold-const-call.c: Include case-cfn-macros.h.
(fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
(fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
(fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
built_in_function arguments with combined_fn arguments.
* builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
(fold_builtin_3): Update calls to fold_const_call.
From-SVN: r230477
Diffstat (limited to 'gcc/fold-const-call.h')
-rw-r--r-- | gcc/fold-const-call.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fold-const-call.h b/gcc/fold-const-call.h index 6befc9b..2cb2c5b 100644 --- a/gcc/fold-const-call.h +++ b/gcc/fold-const-call.h @@ -20,9 +20,9 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_FOLD_CONST_CALL_H #define GCC_FOLD_CONST_CALL_H -tree fold_const_call (built_in_function, tree, tree); -tree fold_const_call (built_in_function, tree, tree, tree); -tree fold_const_call (built_in_function, tree, tree, tree, tree); +tree fold_const_call (combined_fn, tree, tree); +tree fold_const_call (combined_fn, tree, tree, tree); +tree fold_const_call (combined_fn, tree, tree, tree, tree); tree fold_fma (location_t, tree, tree, tree, tree); #endif |