------- Comment #11 from mrs at apple dot com 2008-02-13 02:59 ------- Ok, how about:
#ifdef __GNUC_STDC_INLINE__ #define __EXTERN_INLINE __inline __attribute__((always_inline)) #else #define __EXTERN_INLINE extern __inline __attribute__((always_inline)) #endif __EXTERN_INLINE void foo() ; __EXTERN_INLINE void foo() { __asm ("nop"); } void bar1() { foo(); } I think that will work... See any gotchas (other than linking when it can't be inlined)? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34000