This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/10857] Inlining a function with inline-asm: "error: impossible constraint in `asm'"
- From: "neroden at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2003 03:56:53 -0000
- Subject: [Bug inline-asm/10857] Inlining a function with inline-asm: "error: impossible constraint in `asm'"
- References: <20030519111600.10857.berndtrog@yahoo.com>
- 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=10857
neroden at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From neroden at gcc dot gnu dot org 2003-07-12 03:56 -------
The policy of GCC has been that the validity of code should not generally change depending on whether a function is marked 'inline' or not. If it's
not valid for an external function, it's not valid for an inlined function.
So this probably isn't really a bug. I believe an 'always_inline' or some such option was proposed to deal with kernel hackers who wanted to
do this sort of thing. :-)
Although in this case I'm thinking a macro is a better idea.