always_inline attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I am using gcc v4.1.0 for mips (host:linux). With -O2 gcc does not
produce an inline function if the definition of the inline function is
in a different file than the caller. Am I missing something here?
Cannot I have inline function defined in different file?

inline int __attribute__((always_inline)) foo()
{
// do something;
return 0;
}

-- 
kum

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux