Instead of forcing -O1 on PowerPC for LLVM and clang, fix the actual
problem by adding -fno-strict-aliasing to CFLAGS. Since this is a global issue that just happened to manifest on PowerPC, add this to CFLAGS unconditionally. MFC after: 1 week
This commit is contained in:
parent
af8b177113
commit
3f922e14a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229169
@ -8,10 +8,8 @@ CFLAGS+=-I${LLVM_SRCS}/include -I${CLANG_SRCS}/include \
|
||||
-DLLVM_ON_UNIX -DLLVM_ON_FREEBSD \
|
||||
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS #-DNDEBUG
|
||||
|
||||
# Correct for gcc miscompilation when compiling on PPC with -O2
|
||||
.if ${MACHINE_CPUARCH} == "powerpc"
|
||||
CFLAGS+= -O1
|
||||
.endif
|
||||
# LLVM is not strict aliasing safe as of 12/31/2011
|
||||
CFLAGS+= -fno-strict-aliasing
|
||||
|
||||
TARGET_ARCH?= ${MACHINE_ARCH}
|
||||
CFLAGS+=-DLLVM_HOSTTRIPLE=\"${TARGET_ARCH:C/amd64/x86_64/}-unknown-freebsd10.0\"
|
||||
|
Loading…
Reference in New Issue
Block a user