HomePhabricator

[cmake] Disable a GCC optimization when building LLVM for MIPS

Description

[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

Details

Committed
atanasyanApr 27 2019, 2:28 AM
Differential Revision
D48069: [cmake] Disable a GCC optimization when building LLVM for MIPS
Parents
rL359375: [lldb] [lit] Cleanly terminate Register tests
Branches
Unknown
Tags
Unknown