diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-10-21 20:16:36 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-10-21 20:16:36 +0000 |
commit | 4adfc9a5d353d64b5bf39536064d300f9e45a0cf (patch) | |
tree | 92fc7ae80645bb51dac3ca4e697a59042c1d8bd8 /gcc/fold-const.h | |
parent | 6a75d560c855081ddb8147bf6cec378cda55901b (diff) | |
download | gcc-4adfc9a5d353d64b5bf39536064d300f9e45a0cf.zip gcc-4adfc9a5d353d64b5bf39536064d300f9e45a0cf.tar.gz gcc-4adfc9a5d353d64b5bf39536064d300f9e45a0cf.tar.bz2 |
Remove fold_strip_sign_ops
This patch deletes fold_strip_sign_ops in favour of the
gimple-ssa-backprop.c pass.
Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.
gcc/
* fold-const.h (fold_strip_sign_ops): Delete.
* fold-const.c (fold_strip_sign_ops): Likewise.
(fold_unary_loc, fold_binary_loc): Remove calls to it.
* builtins.c (fold_builtin_cos, fold_builtin_cosh)
(fold_builtin_ccos): Delete.
(fold_builtin_pow): Don't call fold_strip_sign_ops.
(fold_builtin_hypot, fold_builtin_copysign): Likewise.
Remove fndecl argument.
(fold_builtin_1): Update calls accordingly. Handle constant
cos, cosh, ccos and ccosh here.
gcc/testsuite/
* gcc.dg/torture/builtin-symmetric-1.c: Don't run at -O0.
From-SVN: r229140
Diffstat (limited to 'gcc/fold-const.h')
-rw-r--r-- | gcc/fold-const.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/fold-const.h b/gcc/fold-const.h index 4d5b24b..1bb68e4 100644 --- a/gcc/fold-const.h +++ b/gcc/fold-const.h @@ -107,7 +107,6 @@ extern tree build_fold_addr_expr_loc (location_t, tree); build_fold_addr_expr_with_type_loc (UNKNOWN_LOCATION, (T), TYPE) extern tree build_fold_addr_expr_with_type_loc (location_t, tree, tree); extern tree fold_build_cleanup_point_expr (tree type, tree expr); -extern tree fold_strip_sign_ops (tree); #define build_fold_indirect_ref(T)\ build_fold_indirect_ref_loc (UNKNOWN_LOCATION, T) extern tree build_fold_indirect_ref_loc (location_t, tree); |