diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-11-17 18:53:43 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-11-17 18:53:43 +0000 |
commit | 03dc244a81378e83fd824c920ff680607e17f239 (patch) | |
tree | 93531ba55cfd0d7c1083d781da30b73dfcc6ff2c | |
parent | 883cabdecdb052865f68bb910aef86fbb75cc925 (diff) | |
download | gcc-03dc244a81378e83fd824c920ff680607e17f239.zip gcc-03dc244a81378e83fd824c920ff680607e17f239.tar.gz gcc-03dc244a81378e83fd824c920ff680607e17f239.tar.bz2 |
Remove dead macros
Nothing uses these macros and removing them makes it more likely
that future code will use CASE_CFN_* instead.
Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.
gcc/
* tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
(BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
From-SVN: r230489
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree.h | 16 |
2 files changed, 5 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9fe80ff..e1be75f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2015-11-17 Richard Sandiford <richard.sandiford@arm.com> + * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P) + (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete. + +2015-11-17 Richard Sandiford <richard.sandiford@arm.com> + * builtins.c (expand_errno_check, expand_builtin_mathfn) (expand_builtin_mathfn_2): Delete. (expand_builtin): Remove handling of functions with @@ -233,22 +233,6 @@ as_internal_fn (combined_fn code) /* Helper macros for math builtins. */ -#define BUILTIN_EXP10_P(FN) \ - ((FN) == BUILT_IN_EXP10 || (FN) == BUILT_IN_EXP10F || (FN) == BUILT_IN_EXP10L \ - || (FN) == BUILT_IN_POW10 || (FN) == BUILT_IN_POW10F || (FN) == BUILT_IN_POW10L) - -#define BUILTIN_EXPONENT_P(FN) (BUILTIN_EXP10_P (FN) \ - || (FN) == BUILT_IN_EXP || (FN) == BUILT_IN_EXPF || (FN) == BUILT_IN_EXPL \ - || (FN) == BUILT_IN_EXP2 || (FN) == BUILT_IN_EXP2F || (FN) == BUILT_IN_EXP2L) - -#define BUILTIN_SQRT_P(FN) \ - ((FN) == BUILT_IN_SQRT || (FN) == BUILT_IN_SQRTF || (FN) == BUILT_IN_SQRTL) - -#define BUILTIN_CBRT_P(FN) \ - ((FN) == BUILT_IN_CBRT || (FN) == BUILT_IN_CBRTF || (FN) == BUILT_IN_CBRTL) - -#define BUILTIN_ROOT_P(FN) (BUILTIN_SQRT_P (FN) || BUILTIN_CBRT_P (FN)) - #define CASE_FLT_FN(FN) case FN: case FN##F: case FN##L #define CASE_FLT_FN_REENT(FN) case FN##_R: case FN##F_R: case FN##L_R #define CASE_INT_FN(FN) case FN: case FN##L: case FN##LL: case FN##IMAX |