This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12118] Add function attribute that treats C code as plain asm
- From: "mkgnu at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2003 16:00:05 -0000
- Subject: [Bug c/12118] Add function attribute that treats C code as plain asm
- References: <20030831210930.12118.mkgnu@gmx.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.