aboutsummaryrefslogtreecommitdiff
path: root/gcc/targhooks.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/targhooks.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/targhooks.c')
-rw-r--r--gcc/targhooks.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/targhooks.c b/gcc/targhooks.c
index 5597635..1000abb 100644
--- a/gcc/targhooks.c
+++ b/gcc/targhooks.c
@@ -195,3 +195,10 @@ default_pretend_outgoing_varargs_named(CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED)
#endif
#endif
}
+
+/* Generic hook that takes a CUMULATIVE_ARGS pointer and returns true. */
+bool
+hook_bool_CUMULATIVE_ARGS_true (CUMULATIVE_ARGS * a ATTRIBUTE_UNUSED)
+{
+ return true;
+}