diff options
author | Paul Brook <paul@codesourcery.com> | 2008-05-23 20:36:57 +0000 |
---|---|---|
committer | Carlos O'Donell <carlos@gcc.gnu.org> | 2008-05-23 20:36:57 +0000 |
commit | 007e61c28bd45792a74a66be4feae5968468befe (patch) | |
tree | fabe76f974542d0458d609ec4222651293549585 /gcc/function.c | |
parent | b86c6d94f8ceddd239e1cf26687302de6b88f1ab (diff) | |
download | gcc-007e61c28bd45792a74a66be4feae5968468befe.tar.gz |
extend.texi: Clarify use of __attribute__((naked)).
gcc/
2008-05-23 Paul Brook <paul@codesourcery.com>
Carlos O'Donell <carlos@codesourcery.com>
* 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 <paul@codesourcery.com>
Carlos O'Donell <carlos@codesourcery.com>
* gcc.target/arm/naked-1.c: New test.
* gcc.target/arm/naked-2.c: New test.
Co-Authored-By: Carlos O'Donell <carlos@codesourcery.com>
From-SVN: r135831
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c index 29d4c1eda6e..5f9c3a5ce2c 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1776,6 +1776,9 @@ aggregate_value_p (const_tree exp, const_tree fntype) bool use_register_for_decl (const_tree decl) { + if (!targetm.calls.allocate_stack_slots_for_args()) + return true; + /* Honor volatile. */ if (TREE_SIDE_EFFECTS (decl)) return false; |