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
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
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
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
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! :)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
Uroš Bizjak changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
Uroš Bizjak changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|
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
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
===
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
Anatol changed:
What|Removed |Added
CC||anatol.pomozov at gmail dot com
--- Comment #11
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.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
Andrew Pinski changed:
What|Removed |Added
CC||akobets at mail dot ru
--- Comm
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
Bryan O'Donoghue changed:
What|Removed |Added
CC||bryan.odonoghue at linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
Andrew Pinski changed:
What|Removed |Added
CC||th020394 at gmail dot com
--- Comment #7
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
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
Andrew Pinski changed:
What|Removed |Added
CC||congruwer at yahoo dot
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
Radoslaw Biernacki changed:
What|Removed |Added
CC||radoslaw.biernacki at gmail
--- 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
22 matches
Mail list logo