aboutsummaryrefslogtreecommitdiff
path: root/gcc/hooks.c
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2003-10-07 19:23:08 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2003-10-07 19:23:08 +0000
commitc6e8c9219569f455c71553d29ad8d6af20098b92 (patch)
treec972ed6afcbdabbd32785bf380ad39c251f9a358 /gcc/hooks.c
parent90af80420ffdf47bb463ba333cbb922faf80c3ed (diff)
downloadgcc-c6e8c9219569f455c71553d29ad8d6af20098b92.zip
gcc-c6e8c9219569f455c71553d29ad8d6af20098b92.tar.gz
gcc-c6e8c9219569f455c71553d29ad8d6af20098b92.tar.bz2
hooks.c (hook_bool_tree_true): New.
* hooks.c (hook_bool_tree_true): New. (hook_rtx_tree_int_null): New. (hook_rtx_rtx_null): Use NULL, not 0. * hooks.h: Add 'extern' to everything. (hook_bool_tree_true): New. (hook_rtx_tree_int_null): New. * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New. * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New. * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove prototype. * config/rs6000/rs6000.c (rs6000_return_in_memory): New. (setup_incoming_varargs): Prototype. (TARGET_PROMOTE_FUNCTION_ARGS): Define. (TARGET_PROMOTE_FUNCTION_RETURN): Define. (TARGET_STRUCT_VALUE_RTX): Define. (TARGET_RETURN_IN_MEMORY): Define. (TARGET_SETUP_INCOMING_VARARGS): Define. (TARGET_STRICT_ARGUMENT_NAMING): Define. (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define. (init_cumulative_args): Use rs6000_return_in_memory. (setup_incoming_varargs): Make 'static'. * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete. (PROMOTE_FUNCTION_RETURN): Delete. (STRUCT_VALUE): Delete. (RETURN_IN_MEMORY): Delete. (SETUP_INCOMING_VARARGS): Delete. From-SVN: r72197
Diffstat (limited to 'gcc/hooks.c')
-rw-r--r--gcc/hooks.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/gcc/hooks.c b/gcc/hooks.c
index 966945d..939ed844 100644
--- a/gcc/hooks.c
+++ b/gcc/hooks.c
@@ -159,6 +159,12 @@ hook_bool_tree_false (tree a ATTRIBUTE_UNUSED)
}
bool
+hook_bool_tree_true (tree a ATTRIBUTE_UNUSED)
+{
+ return true;
+}
+
+bool
hook_bool_tree_tree_false (tree a ATTRIBUTE_UNUSED, tree b ATTRIBUTE_UNUSED)
{
return false;
@@ -190,7 +196,14 @@ hook_rtx_rtx_identity (rtx x)
rtx
hook_rtx_rtx_null (rtx x ATTRIBUTE_UNUSED)
{
- return 0;
+ return NULL;
+}
+
+/* Generic hook that takes a tree and an int and returns NULL_RTX. */
+rtx
+hook_rtx_tree_int_null (tree a ATTRIBUTE_UNUSED, int b ATTRIBUTE_UNUSED)
+{
+ return NULL;
}
/* Generic hook that takes a size_t and returns NULL. */