This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/25967] Add attribute naked for x86


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967

--- Comment #20 from uros at gcc dot gnu.org ---
Author: uros
Date: Mon Jul 31 13:11:59 2017
New Revision: 250742

URL: https://gcc.gnu.org/viewcvs?rev=250742&root=gcc&view=rev
Log:
        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.


Added:
    trunk/gcc/testsuite/gcc.target/i386/naked-4.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/naked-3.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]