public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/25967] New: Enable attribute naked for x86
@ 2006-01-26 8:00 daanonym2 at hotmail dot com
2006-01-26 12:29 ` [Bug inline-asm/25967] " pinskia at gcc dot gnu dot org
2006-09-26 4:31 ` [Bug target/25967] Add " acahalan at gmail dot com
0 siblings, 2 replies; 3+ messages in thread
From: daanonym2 at hotmail dot com @ 2006-01-26 8:00 UTC (permalink / raw)
To: gcc-bugs
The naked attribute is ignored on the intel architecture (according to
documentation). The MS VC++ compiler supports the naked attribute, and the
functionality is used there quite frequent.
A quick search on the internet shows that there is a lot of people waiting for
this feature (including me).
I hope this feature will be implemented soon. It's supported for ARM cpus and
therefore I hope it won't be a problem to add support for x86 processors.
--
Summary: Enable attribute naked for x86
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: inline-asm
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: daanonym2 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug inline-asm/25967] Enable attribute naked for x86
2006-01-26 8:00 [Bug inline-asm/25967] New: Enable attribute naked for x86 daanonym2 at hotmail dot com
@ 2006-01-26 12:29 ` pinskia at gcc dot gnu dot org
2006-09-26 4:31 ` [Bug target/25967] Add " acahalan at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-26 12:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-26 12:29 -------
A quick question here. Why not use a .s file instead?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/25967] Add attribute naked for x86
2006-01-26 8:00 [Bug inline-asm/25967] New: Enable attribute naked for x86 daanonym2 at hotmail dot com
2006-01-26 12:29 ` [Bug inline-asm/25967] " pinskia at gcc dot gnu dot org
@ 2006-09-26 4:31 ` acahalan at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: acahalan at gmail dot com @ 2006-09-26 4:31 UTC (permalink / raw)
To: gcc-bugs
------- 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 that the current compilation unit represents whole program being
compiled."
It is also implied, and stated elsewhere, that this only works for C. Thus it
is apparently not allowed to have assembly, C++, Objective-C, Objective-C++, or
weirder stuff.
REASON #2
Using a .s file does not allow the naked function to have static scope.
REASON #3
Even when it will work OK, the separate file is simply annoying. People
naturally want to group functions together without being needlessly restricted.
--
acahalan at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |acahalan at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25967
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-09-26 4:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-26 8:00 [Bug inline-asm/25967] New: Enable attribute naked for x86 daanonym2 at hotmail dot com
2006-01-26 12:29 ` [Bug inline-asm/25967] " pinskia at gcc dot gnu dot org
2006-09-26 4:31 ` [Bug target/25967] Add " acahalan at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).