On 7/21/10 6:14 PM, Vladislav Vaintroub wrote:
> I do not think we use compilers that would not support "inline" in C in some form .I
> have seen 2 compilers (AIX and Visual Studio)
> with slightly different name for C inline (__inline rsp __inline__) . I.e I expect
> inline to be either compiler supported keyword
> or a #define to compiler specific keyword , for all compilers we use (at least in
> CMake build in 5.5)
So.. it seems the scenario is tries to workaround is: compiler does not
support inline and compiler/linker does not remove unused static functions.
Some tests:
- AIX 5.3, VisualAge C++ 6 (2003)
Compiler understand __inline__.
The linker removes unused static functions by default.
- HP-UX, C compiler B3910B A.06.01 (2005)
Compiler understands __inline.
Compiler removes unused static functions when optimizing.
- Solaris 9, Sun C 5.6 (2004)
Compiler understands inline.
Compiler removes unused static functions when optimizing.
- GCC 3.3.5 (2005)
Compiler understands inline.
Compiler/linker does not remove unused static functions, but it removes
unused static /inline/ functions when optimizing.
Sergei,
Do you remember in which system this was causing trouble?