This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/41045] Extended asm with C operands doesn’t work at top level
- From: "nelhage at mit dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2009 22:20:42 -0000
- Subject: [Bug c/41045] Extended asm with C operands doesn’t work at top level
- References: <bug-41045-7274@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from nelhage at mit dot edu 2009-10-08 22:20 -------
For an example of real code that wanted to use toplevel inline ASM, see the
following recent Linux commit:
http://git.kernel.org/linus/796216a57fe45c04adc35bda1f0782efec78a713
Lack of this feature necessitated a fairly hideous (IMO) workaround, and a
multi-paragraph documentation of it in the commit messages.
Note that while (as stated in the commit message) an unrelated GCC issue
originally caused the desire to use inline assembly, a later commit
(0b1c723d0bd199300a1a2de57a46000d17577498) takes advantage of the fact that
this block uses inline assembly, and so they really do want a toplevel assembly
block here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41045