bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/18010] gold -O2 breaks LLVM's TableGen on ppc64


From: markus at trippelsdorf dot de
Subject: [Bug gold/18010] gold -O2 breaks LLVM's TableGen on ppc64
Date: Thu, 26 Feb 2015 13:07:08 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18010

--- Comment #9 from Markus Trippelsdorf <markus at trippelsdorf dot de> ---
(In reply to Cary Coutant from comment #8)
> >> Does it seem reasonable to simply disable optimization for sections with 
> >> alignment > 1?
> >
> > Works for me.
> >
> > I'll note that for aligned strings the most useful optimisation is likely
> > removal of exact duplicates.
> 
> Oh, sorry, I didn't mean to suggest disabling duplicate merging --
> just the optimization where we look for strings that are suffixes of
> others. I'd argue that your statement is true for unaligned strings as
> well. (I'm actually surprised that anyone is actually using -O2!)

LLVM does, see: cmake/modules/AddLLVM.cmake:161:

156 function(add_link_opts target_name)
157   # Pass -O3 to the linker. This enabled different optimizations on
different
158   # linkers.
159   if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32))
160     set_property(TARGET ${target_name} APPEND_STRING PROPERTY
161                  LINK_FLAGS " -Wl,-O3")
162   endif()
163

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]