This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/25967] Add attribute naked for x86
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 31 Jul 2017 13:22:05 +0000
- Subject: [Bug target/25967] Add attribute naked for x86
- Auto-submitted: auto-generated
- References: <bug-25967-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
--- Comment #21 from Uroš Bizjak <ubizjak at gmail dot com> ---
The above patch is needed to pass arguments to a naked function.
Please note that arguments can be reliably passed only in registers, so regparm
convention is necessary for x86_32.
gcc.target/i386/naked-3.c and gcc.target/i386/naked-4.c testcases show function
arguments and function result passing in action.