]> granicus.if.org Git - llvm/commit
[cmake] Disable a GCC optimization when building LLVM for MIPS
authorSimon Atanasyan <simon@atanasyan.com>
Sat, 27 Apr 2019 09:28:54 +0000 (09:28 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Sat, 27 Apr 2019 09:28:54 +0000 (09:28 +0000)
commit7047808b81b81f15862528d66b9fbdeacf3500cf
tree88aee65d8340fc37d5768712cb022eb0a601ea73
parentbb63d993091a23293c2be31865a1dd4e4cbe3e7a
[cmake] Disable a GCC optimization when building LLVM for MIPS

GCC when compiling LLVM for MIPS can introduce a jump to an uninitialized
value when shrink wrapping is enabled. As shrink wrapping is enabled in
GCC at all optimization levels, it must be disabled. This bug exists for
all versions of GCC since 4.9.2.

This partially resolves PR37701 / GCC PR target/86069.

Patch by Simon Dardis.

Differential Revision: https://reviews.llvm.org/D48069

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359376 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake