[LLVMbugs] [Bug 13054] -O4 causes clang++ to generate the wrong object module format

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 7 16:47:01 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13054

Chandler Carruth <chandlerc at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |chandlerc at gmail.com
         Resolution|                            |INVALID

--- Comment #1 from Chandler Carruth <chandlerc at gmail.com> 2012-06-07 18:47:01 CDT ---
That's because -O4 enables LTO, which writes out bitcode files during the
compile, and then loads those and optimizes them during the link phase.

It requires a linker that supports LLVM's LTO. There is a plugin for Gold
available as part of LLVM.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list