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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2009 22:32:34 -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 #4 from pinskia at gcc dot gnu dot org 2009-10-08 22:32 -------
(In reply to comment #3)
> So they want a way to turn off progbits instead?
> That seems better than doing extended inline-asm at the top level.
And is less messy really since then the syntax would be something like:
#define RESERVE_BRK(name,sz) \
static char __brk_reservation_#name[sz]
__attribute__((section("brk_reservation", nobits), used);
Which gets rid of the messy inline-asm and makes things look like a real
variable, etc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41045