Consolidate powerpcspe CFLAGS
Don't depend on CPUTYPE to define powerpcspe CFLAGS, they should be set unconditionally. This reduces duplication. Also, set some CFLAGS as gcc-only, because clang's SPE support always uses the SPE ABI, it's not an optional feature.
This commit is contained in:
parent
52751739b9
commit
dc67cfef96
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354601
@ -136,8 +136,6 @@ _CPUCFLAGS = -Wa,-me500 -msoft-float
|
||||
. else
|
||||
_CPUCFLAGS = -mcpu=${CPUTYPE} -mno-powerpc64
|
||||
. endif
|
||||
. elif ${MACHINE_ARCH} == "powerpcspe"
|
||||
_CPUCFLAGS = -Wa,-me500 -mspe -mabi=spe -mfloat-gprs=double -mcpu=8548
|
||||
. elif ${MACHINE_ARCH} == "powerpc64"
|
||||
_CPUCFLAGS = -mcpu=${CPUTYPE}
|
||||
. elif ${MACHINE_CPUARCH} == "mips"
|
||||
@ -367,7 +365,8 @@ LDFLAGS+= -Wl,--secure-plt
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "powerpcspe"
|
||||
CFLAGS += -mcpu=8548 -Wa,-me500 -mspe -mabi=spe -mfloat-gprs=double
|
||||
CFLAGS += -mcpu=8548 -mspe
|
||||
CFLAGS.gcc+= -mabi=spe -mfloat-gprs=double -Wa,-me500
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "riscv"
|
||||
|
Loading…
Reference in New Issue
Block a user