[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.
- [Bug gold/18010] New: --gc-sections breaks LLVM's TableGen on ppc64, markus at trippelsdorf dot de, 2015/02/24
- [Bug gold/18010] --gc-sections breaks LLVM's TableGen on ppc64, amodra at gmail dot com, 2015/02/24
- [Bug gold/18010] --gc-sections breaks LLVM's TableGen on ppc64, cvs-commit at gcc dot gnu.org, 2015/02/24
- [Bug gold/18010] gold -O2 breaks LLVM's TableGen on ppc64, amodra at gmail dot com, 2015/02/24
- [Bug gold/18010] gold -O2 breaks LLVM's TableGen on ppc64, markus at trippelsdorf dot de, 2015/02/24
- [Bug gold/18010] gold -O2 breaks LLVM's TableGen on ppc64, amodra at gmail dot com, 2015/02/24
- [Bug gold/18010] gold -O2 breaks LLVM's TableGen on ppc64, markus at trippelsdorf dot de, 2015/02/25
- [Bug gold/18010] gold -O2 breaks LLVM's TableGen on ppc64, ccoutant at google dot com, 2015/02/25
- [Bug gold/18010] gold -O2 breaks LLVM's TableGen on ppc64, amodra at gmail dot com, 2015/02/25
- [Bug gold/18010] gold -O2 breaks LLVM's TableGen on ppc64, ccoutant at google dot com, 2015/02/25
- [Bug gold/18010] gold -O2 breaks LLVM's TableGen on ppc64,
markus at trippelsdorf dot de <=