This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug inline-asm/10857] Inlining a function with inline-asm: "error: impossible constraint in `asm'"


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]