Do not use -msoft-float with intention of disabling FP on aarch64

GNU GCC does does recognise it as a valid option and we already
use -mgeneral-regs-only that has the desired effect.

Reviewed by: emaste
Differential Revision:	https://reviews.freebsd.org/D10306
This commit is contained in:
kan 2017-04-07 22:58:25 +00:00
parent 4a72842a5f
commit 7e1889ba5b
6 changed files with 12 additions and 6 deletions

View File

@ -8,7 +8,7 @@ CFLAGS+= -ffreestanding -Wformat
CFLAGS+= ${CFLAGS_NO_SIMD} -D_STANDALONE
.if ${MACHINE_CPUARCH} == "riscv"
CFLAGS+= -mno-float
.else
.elif ${MACHINE_CPUARCH} != "aarch64"
CFLAGS+= -msoft-float
.endif

View File

@ -9,9 +9,13 @@ CFLAGS+= -mno-aes
# Options used when building app-specific efi components
# See conf/kern.mk for the correct set of these
CFLAGS+= -ffreestanding -Wformat -msoft-float ${CFLAGS_NO_SIMD}
CFLAGS+= -ffreestanding -Wformat ${CFLAGS_NO_SIMD}
LDFLAGS+= -nostdlib
.if ${MACHINE_CPUARCH} != "aarch64"
CFLAGS+= -msoft-float
.endif
.if ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -fshort-wchar
CFLAGS+= -mno-red-zone

View File

@ -71,7 +71,7 @@ LDSCRIPT= ${.CURDIR}/../loader/arch/${MACHINE}/ldscript.${MACHINE}
LDFLAGS+= -Wl,-T${LDSCRIPT} -Wl,-Bsymbolic -shared
.if ${MACHINE_CPUARCH} == "aarch64"
CFLAGS+= -msoft-float -mgeneral-regs-only
CFLAGS+= -mgeneral-regs-only
.endif
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
CFLAGS+= -fPIC

View File

@ -10,9 +10,11 @@ WARNS?= 6
SRCS= efi_fdt.c
CFLAGS+= -ffreestanding -msoft-float
CFLAGS+= -ffreestanding
.if ${MACHINE_CPUARCH} == "aarch64"
CFLAGS+= -mgeneral-regs-only
.else
CFLAGS+= -msoft-float
.endif
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/

View File

@ -30,7 +30,7 @@ CWARNFLAGS.efipart.c+= -Wno-format
CWARNFLAGS.env.c+= -Wno-format
.if ${MACHINE_CPUARCH} == "aarch64"
CFLAGS+= -msoft-float -mgeneral-regs-only
CFLAGS+= -mgeneral-regs-only
.endif
.if ${MACHINE_ARCH} == "amd64"
CFLAGS+= -fPIC -mno-red-zone

View File

@ -8,7 +8,7 @@ SRCS+= exec.c \
CFLAGS+=-I${.CURDIR}/../../arm64/libarm64
SRCS+= cache.c
CFLAGS+= -msoft-float -mgeneral-regs-only
CFLAGS+= -mgeneral-regs-only
CLEANFILES+= loader.help