re PR target/25967 (Add attribute naked for x86)
authorUros Bizjak <ubizjak@gmail.com>
Mon, 31 Jul 2017 13:11:59 +0000 (15:11 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 31 Jul 2017 13:11:59 +0000 (15:11 +0200)
commita97cf8f9a381ee26b80c5ccd874deeed3218e79a
tree70c98e8a400dcedb86e778e1a4e84ecb22b7632e
parent9c04bba3664904c7f84fd61b4306ec8db8b67c81
re PR target/25967 (Add attribute naked for x86)

PR target/25967
* config/i386/i386.c (ix86_allocate_stack_slots_for_args):
New function.
(TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.

testsuite/ChangeLog:

PR target/25967
* gcc.target/i386/naked-3.c (dg-options): Use -O0.
(naked): Add attribute regparm(1) for x86_32 targets.
Add integer argument.  Remove global "data" variable.
(main): Pass integer argument to naked function.
* gcc.target/i386/naked-4.c: New test.

From-SVN: r250742
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/naked-3.c
gcc/testsuite/gcc.target/i386/naked-4.c [new file with mode: 0644]