List:Commits« Previous MessageNext Message »
From:Davi Arnaut Date:July 22 2010 1:40am
Subject:Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498
View as plain text  
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?
Thread
bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498Davi Arnaut21 Jul
Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132)WL#5498Sergei Golubchik21 Jul
  • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498Davi Arnaut21 Jul
    • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132)WL#5498Sergei Golubchik21 Jul
      • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498Davi Arnaut21 Jul
        • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132)WL#5498Sergei Golubchik21 Jul
          • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498Davi Arnaut21 Jul
            • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132)WL#5498Sergei Golubchik21 Jul
              • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498Davi Arnaut21 Jul
                • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132)WL#5498Sergei Golubchik21 Jul
                  • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498Davi Arnaut21 Jul
                    • RE: bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498Vladislav Vaintroub21 Jul
                      • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498Davi Arnaut21 Jul
                        • RE: bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498Vladislav Vaintroub21 Jul
                          • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498Davi Arnaut22 Jul
                            • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132)WL#5498Sergei Golubchik22 Jul
                              • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498Davi Arnaut22 Jul
        • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498Konstantin Osipov21 Jul
          • Re: bzr commit into mysql-trunk-bugfixing branch (davi:3132) WL#5498Davi Arnaut21 Jul