[Bug target/25967] Add attribute naked for x86

2017-09-13 Thread aldyh at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 --- Comment #23 from Aldy Hernandez --- Author: aldyh Date: Wed Sep 13 16:08:15 2017 New Revision: 252195 URL: https://gcc.gnu.org/viewcvs?rev=252195&root=gcc&view=rev Log: PR target/25967 * config/i386/i386.c (ix86_allocate_stac

[Bug target/25967] Add attribute naked for x86

2017-09-13 Thread aldyh at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 --- Comment #22 from Aldy Hernandez --- Author: aldyh Date: Wed Sep 13 16:07:16 2017 New Revision: 252190 URL: https://gcc.gnu.org/viewcvs?rev=252190&root=gcc&view=rev Log: PR target/25967 * config/i386/i386.c (ix86_function_nake

[Bug target/25967] Add attribute naked for x86

2017-07-31 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 --- Comment #21 from Uroš Bizjak --- 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

[Bug target/25967] Add attribute naked for x86

2017-07-31 Thread uros at gcc dot gnu.org
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_alloca

[Bug target/25967] Add attribute naked for x86

2017-07-31 Thread daniel.santos at pobox dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 --- Comment #19 from Daniel Santos --- (In reply to Uroš Bizjak from comment #18) > Implemented for gcc 8. Awesome! There are actually a number of times over the years that I've wished this were implemented, thanks! :)

[Bug target/25967] Add attribute naked for x86

2017-07-31 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 Uroš Bizjak changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/25967] Add attribute naked for x86

2017-07-31 Thread uros at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 --- Comment #17 from uros at gcc dot gnu.org --- Author: uros Date: Mon Jul 31 10:22:41 2017 New Revision: 250736 URL: https://gcc.gnu.org/viewcvs?rev=250736&root=gcc&view=rev Log: PR target/25967 * config/i386/i386.c (ix86_functi

[Bug target/25967] Add attribute naked for x86

2017-07-30 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 Uroš Bizjak changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug target/25967] Add attribute naked for x86

2017-07-30 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 --- Comment #15 from Uroš Bizjak --- Please also note this description from the gcc docs: 'naked' This attribute allows the compiler to construct the requisite function declaration, while allowing the body of the function to be as

[Bug target/25967] Add attribute naked for x86

2017-07-30 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 --- Comment #14 from Uroš Bizjak --- I'm testing the above patch. Using the patched compiler, the testcase that is mentioned by Daniel in Comment #12 can be changed to: Index: testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.c ===

[Bug target/25967] Add attribute naked for x86

2017-07-30 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 --- Comment #13 from Uroš Bizjak --- Created attachment 41862 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41862&action=edit Patch that implements naked attribute

[Bug target/25967] Add attribute naked for x86

2017-07-28 Thread daniel.santos at pobox dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 --- Comment #12 from Daniel Santos --- For those interested in a work-around, you can define an __attribute__((used)) function and then within that function use inline assembly to declare your real function. This can get messy depending upon how

[Bug target/25967] Add attribute naked for x86

2017-06-10 Thread anatol.pomozov at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 Anatol changed: What|Removed |Added CC||anatol.pomozov at gmail dot com --- Comment #11

[Bug target/25967] Add attribute naked for x86

2013-02-05 Thread akobets at mail dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 --- Comment #10 from Alexander Kobets 2013-02-05 12:51:00 UTC --- (In reply to comment #1) > A quick question here. Why not use a .s file instead? Quick answer. CC optimizes code better, especialy for instruction sheduling.

[Bug target/25967] Add attribute naked for x86

2013-02-04 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 Andrew Pinski changed: What|Removed |Added CC||akobets at mail dot ru --- Comm

[Bug target/25967] Add attribute naked for x86

2012-03-23 Thread bryan.odonoghue at linux dot intel.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 Bryan O'Donoghue changed: What|Removed |Added CC||bryan.odonoghue at linux

[Bug target/25967] Add attribute naked for x86

2012-03-20 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 Andrew Pinski changed: What|Removed |Added CC||th020394 at gmail dot com --- Comment #7

[Bug target/25967] Add attribute naked for x86

2011-12-25 Thread radoslaw.biernacki at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 --- Comment #6 from Radoslaw Biernacki 2011-12-25 21:50:50 UTC --- What is the main reason to not support the naked attribute in user space ? In gcc documentation http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html there is is a statement

[Bug target/25967] Add attribute naked for x86

2011-12-25 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 --- Comment #5 from Andrew Pinski 2011-12-25 17:21:34 UTC --- (In reply to comment #2) > > REASON #1 --combine is gone. -flto replaces it and it works correctly with a separate .s file. > > REASON #2 > REASON #3 Then what about toplevel inli

[Bug target/25967] Add attribute naked for x86

2011-12-25 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 Andrew Pinski changed: What|Removed |Added CC||congruwer at yahoo dot

[Bug target/25967] Add attribute naked for x86

2011-12-25 Thread radoslaw.biernacki at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967 Radoslaw Biernacki changed: What|Removed |Added CC||radoslaw.biernacki at gmail

[Bug target/25967] Add attribute naked for x86

2006-09-25 Thread acahalan at gmail dot com
--- Comment #2 from acahalan at gmail dot com 2006-09-26 04:31 --- (In reply to comment #1) > A quick question here. Why not use a .s file instead? REASON #1 Sometimes people want to use --combine -fwhole-program, but the documentation for -fwhole-program starts with this: "Assume th