[Bug c/41045] Extended asm with C operands doesnÂt work at top level
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Aug 12 16:57:00 GMT 2009
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-08-12 16:56 -------
For you example why can you do something like:
static void *bazsection1[] __attribute__((section("baz"), used)) = {
(void*)foo, (void*)(sizeof(foo)), (void*)(bar) };
This seems like a better option than using inline-asm and cleaner and more
portable.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41045
More information about the Gcc-bugs
mailing list