[Bug target/50242] __attribute__((naked)) is not implemented on IA32 (x86)

congruwer at yahoo dot co.uk gcc-bugzilla@gcc.gnu.org
Thu Sep 1 08:10:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50242

--- Comment #4 from congruwer at yahoo dot co.uk 2011-09-01 08:09:59 UTC ---
Doesn't work:
---(start)---
inline __attribute__((always_inline)) void foobar();

asm (".globl __6foobarv; .type __6foobarv, @function;\n"
     "__6foobarv: ret; .size __6foobarv, . - __6foobarv;\n");

void test()
{
    foobar();
}
---(end)---
test.cpp:1:44: error: inline function 'void foobar()' used but never defined



More information about the Gcc-bugs mailing list