From 55e74277eac73f4a1b8cd6d7dbe3df36b6984436 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 24 Sep 2004 15:13:53 +0000 Subject: [PATCH] hooks.c (hook_tree_tree_bool_null): New. 2004-09-24 Paolo Bonzini * hooks.c (hook_tree_tree_bool_null): New. * hooks.h (hook_tree_tree_bool_null): Declare it. * target-def.c (TARGET_FOLD_BUILTIN): Point to it. * targhooks.c (default_fold_builtin): Remove. * targhooks.h (default_fold_builtin): Remove. From-SVN: r88040 --- gcc/ChangeLog | 8 ++++++++ gcc/hooks.c | 7 +++++++ gcc/hooks.h | 1 + gcc/target-def.h | 2 +- gcc/targhooks.c | 6 ------ gcc/targhooks.h | 1 - 6 files changed, 17 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c01942dbb70..c40acc91bee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2004-09-24 Paolo Bonzini + + * hooks.c (hook_tree_tree_bool_null): New. + * hooks.h (hook_tree_tree_bool_null): Declare it. + * target-def.c (TARGET_FOLD_BUILTIN): Point to it. + * targhooks.c (default_fold_builtin): Remove. + * targhooks.h (default_fold_builtin): Remove. + 2004-09-24 Zdenek Dvorak PR rtl-optimization/17625 diff --git a/gcc/hooks.c b/gcc/hooks.c index be4b9f9be16..65224a4042a 100644 --- a/gcc/hooks.c +++ b/gcc/hooks.c @@ -239,3 +239,10 @@ hook_constcharptr_tree_null (tree t ATTRIBUTE_UNUSED) { return NULL; } + +tree +hook_tree_tree_bool_null (tree t ATTRIBUTE_UNUSED, bool ignore ATTRIBUTE_UNUSED) +{ + return NULL; +} + diff --git a/gcc/hooks.h b/gcc/hooks.h index 8eef06f3bca..4f7f08c0c1c 100644 --- a/gcc/hooks.h +++ b/gcc/hooks.h @@ -64,4 +64,5 @@ extern rtx hook_rtx_rtx_null (rtx); extern rtx hook_rtx_tree_int_null (tree, int); extern tree hook_tree_tree_identity (tree a); extern const char *hook_constcharptr_tree_null (tree); +extern tree hook_tree_tree_bool_null (tree, bool); #endif diff --git a/gcc/target-def.h b/gcc/target-def.h index 61adf14325a..e8262decb86 100644 --- a/gcc/target-def.h +++ b/gcc/target-def.h @@ -298,7 +298,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /* In builtins.c. */ #define TARGET_INIT_BUILTINS hook_void_void #define TARGET_EXPAND_BUILTIN default_expand_builtin -#define TARGET_FOLD_BUILTIN default_fold_builtin +#define TARGET_FOLD_BUILTIN hook_tree_tree_bool_null /* In varasm.c. */ #ifndef TARGET_SECTION_TYPE_FLAGS diff --git a/gcc/targhooks.c b/gcc/targhooks.c index 48690a130cf..3bf938c1828 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -97,12 +97,6 @@ default_expand_builtin_saveregs (void) return const0_rtx; } -tree -default_fold_builtin (tree t ATTRIBUTE_UNUSED, bool ignore ATTRIBUTE_UNUSED) -{ - return NULL_TREE; -} - void default_setup_incoming_varargs (CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED, enum machine_mode mode ATTRIBUTE_UNUSED, diff --git a/gcc/targhooks.h b/gcc/targhooks.h index 024a0808e0b..ce564efa330 100644 --- a/gcc/targhooks.h +++ b/gcc/targhooks.h @@ -29,7 +29,6 @@ extern rtx default_expand_builtin_saveregs (void); extern void default_setup_incoming_varargs (CUMULATIVE_ARGS *, enum machine_mode, tree, int *, int); extern rtx default_builtin_setjmp_frame_value (void); extern bool default_pretend_outgoing_varargs_named (CUMULATIVE_ARGS *); -extern tree default_fold_builtin (tree t, bool ignore); extern enum machine_mode default_eh_return_filter_mode (void); extern unsigned HOST_WIDE_INT default_shift_truncation_mask -- 2.30.2