public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12118] New: Add function attribute that treats C code as plain asm
@ 2003-08-31 21:09 mkgnu at gmx dot net
2003-09-01 4:49 ` [Bug c/12118] " pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: mkgnu at gmx dot net @ 2003-08-31 21:09 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12118
Summary: Add function attribute that treats C code as plain asm
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mkgnu at gmx dot net
CC: gcc-bugs at gcc dot gnu dot org
This is a feature request to add a function attribute that allows implementing a
function in C and producing straight machine code for it without any assumptions
that the implementation constitutes a function. i.e There should be no "ret" or
"leave" assembly instruction at the end of such a function. the "noreturn"
attribute currently does not provide this
The need for this is best described in the thread:
http://gcc.gnu.org/ml/gcc-bugs/2003-08/msg02681.html
One should be able to write a routine in C without gcc assuming that the routine
is a function call. Such an attribute should be an improvement on the "noreturn"
attribute.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/12118] Add function attribute that treats C code as plain asm
2003-08-31 21:09 [Bug c/12118] New: Add function attribute that treats C code as plain asm mkgnu at gmx dot net
@ 2003-09-01 4:49 ` pinskia at gcc dot gnu dot org
2003-09-03 2:16 ` mkgnu at gmx dot net
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-01 4:49 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12118
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P3
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-01 04:49 -------
I want to say if you want no return instruction use an asm file because C is not asm.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/12118] Add function attribute that treats C code as plain asm
2003-08-31 21:09 [Bug c/12118] New: Add function attribute that treats C code as plain asm mkgnu at gmx dot net
2003-09-01 4:49 ` [Bug c/12118] " pinskia at gcc dot gnu dot org
@ 2003-09-03 2:16 ` mkgnu at gmx dot net
2003-09-18 8:10 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mkgnu at gmx dot net @ 2003-09-03 2:16 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12118
------- Additional Comments From mkgnu at gmx dot net 2003-09-03 02:16 -------
There was additional discussion on this on
http://gcc.gnu.org/ml/gcc-bugs/2003-09/msg00146.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/12118] Add function attribute that treats C code as plain asm
2003-08-31 21:09 [Bug c/12118] New: Add function attribute that treats C code as plain asm mkgnu at gmx dot net
2003-09-01 4:49 ` [Bug c/12118] " pinskia at gcc dot gnu dot org
2003-09-03 2:16 ` mkgnu at gmx dot net
@ 2003-09-18 8:10 ` pinskia at gcc dot gnu dot org
2003-09-18 16:27 ` mkgnu at gmx dot net
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-18 8:10 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12118
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-18 07:27 -------
Again C is not ASM, use an asm file when you want to low level stuff.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/12118] Add function attribute that treats C code as plain asm
2003-08-31 21:09 [Bug c/12118] New: Add function attribute that treats C code as plain asm mkgnu at gmx dot net
` (2 preceding siblings ...)
2003-09-18 8:10 ` pinskia at gcc dot gnu dot org
@ 2003-09-18 16:27 ` mkgnu at gmx dot net
2003-10-03 19:40 ` mkgnu at gmx dot net
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mkgnu at gmx dot net @ 2003-09-18 16:27 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12118
mkgnu at gmx dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
------- Additional Comments From mkgnu at gmx dot net 2003-09-18 16:00 -------
Reopening bug.
I kindly request you give this feature some more thought and open it to
discussion with other GCC developers, CCing me on the discussion.
Again, you should NOT have to write asm for something that could be plainly
written in C. One should have the option of telling gcc how to do generate code
with respect to the registers that will be used, just like regparms is used to
tell gcc to expect its arguments in registers, and stdcall to expect arguments
on stack. I don't see how telling gcc to preserve the state of registers is any
different.
I see value in a feature as this. I'd rather you assign this bug the lowest
priority rather than close it. But please discuss this with other developers.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/12118] Add function attribute that treats C code as plain asm
2003-08-31 21:09 [Bug c/12118] New: Add function attribute that treats C code as plain asm mkgnu at gmx dot net
` (3 preceding siblings ...)
2003-09-18 16:27 ` mkgnu at gmx dot net
@ 2003-10-03 19:40 ` mkgnu at gmx dot net
2004-01-18 0:35 ` dhazeghi at yahoo dot com
2004-06-09 0:54 ` [Bug target/12118] " pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: mkgnu at gmx dot net @ 2003-10-03 19:40 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12118
------- Additional Comments From mkgnu at gmx dot net 2003-10-03 19:40 -------
There was additional discussion on this on:
http://gcc.gnu.org/ml/gcc-bugs/2003-10/msg00025.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/12118] Add function attribute that treats C code as plain asm
2003-08-31 21:09 [Bug c/12118] New: Add function attribute that treats C code as plain asm mkgnu at gmx dot net
` (4 preceding siblings ...)
2003-10-03 19:40 ` mkgnu at gmx dot net
@ 2004-01-18 0:35 ` dhazeghi at yahoo dot com
2004-06-09 0:54 ` [Bug target/12118] " pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-01-18 0:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dhazeghi at yahoo dot com 2004-01-18 00:35 -------
I see no reason this cannot be done (easily, maybe not).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-01-18 00:35:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12118
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/12118] Add function attribute that treats C code as plain asm
2003-08-31 21:09 [Bug c/12118] New: Add function attribute that treats C code as plain asm mkgnu at gmx dot net
` (5 preceding siblings ...)
2004-01-18 0:35 ` dhazeghi at yahoo dot com
@ 2004-06-09 0:54 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-09 0:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-09 00:54 -------
http://gcc.gnu.org/ml/gcc/2004-06/msg00415.html
Not going to be done.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12118
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-06-09 0:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-31 21:09 [Bug c/12118] New: Add function attribute that treats C code as plain asm mkgnu at gmx dot net
2003-09-01 4:49 ` [Bug c/12118] " pinskia at gcc dot gnu dot org
2003-09-03 2:16 ` mkgnu at gmx dot net
2003-09-18 8:10 ` pinskia at gcc dot gnu dot org
2003-09-18 16:27 ` mkgnu at gmx dot net
2003-10-03 19:40 ` mkgnu at gmx dot net
2004-01-18 0:35 ` dhazeghi at yahoo dot com
2004-06-09 0:54 ` [Bug target/12118] " pinskia at gcc dot gnu dot org
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).