From 007e61c28bd45792a74a66be4feae5968468befe Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Fri, 23 May 2008 20:36:57 +0000 Subject: extend.texi: Clarify use of __attribute__((naked)). gcc/ 2008-05-23 Paul Brook Carlos O'Donell * doc/extend.texi: Clarify use of __attribute__((naked)). * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS. * target.h (gcc_target): Add allocate_stack_slots_for_args. * function.c (use_register_for_decl): Use targetm.calls.allocate_stack_slots_for_args. * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS. * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function. (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define. gcc/testsuite/ 2008-05-23 Paul Brook Carlos O'Donell * gcc.target/arm/naked-1.c: New test. * gcc.target/arm/naked-2.c: New test. Co-Authored-By: Carlos O'Donell From-SVN: r135831 --- gcc/target-def.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/target-def.h') diff --git a/gcc/target-def.h b/gcc/target-def.h index c4bc6962..19e882f 100644 --- a/gcc/target-def.h +++ b/gcc/target-def.h @@ -568,6 +568,7 @@ #define TARGET_FUNCTION_VALUE default_function_value #define TARGET_INTERNAL_ARG_POINTER default_internal_arg_pointer +#define TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS hook_bool_void_true #define TARGET_CALLS { \ TARGET_PROMOTE_FUNCTION_ARGS, \ @@ -587,7 +588,8 @@ TARGET_ARG_PARTIAL_BYTES, \ TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN, \ TARGET_FUNCTION_VALUE, \ - TARGET_INTERNAL_ARG_POINTER \ + TARGET_INTERNAL_ARG_POINTER, \ + TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS \ } #ifndef TARGET_UNWIND_TABLES_DEFAULT -- cgit v1.1