Add internal floating point environment builtins to libcompiler_rt and
libgcc, as these are used in a few other builtin implementations.
This commit is contained in:
parent
4f73ee074c
commit
a92579cfb9
@ -143,6 +143,14 @@ SRCF+= floatundixf
|
|||||||
SRCF+= cpu_model
|
SRCF+= cpu_model
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
# The fp_mode implementation for amd64 and i386 is shared, while other
|
||||||
|
# architectures use the regular approach.
|
||||||
|
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
||||||
|
SRCS+= i386/fp_mode.c
|
||||||
|
.else
|
||||||
|
SRCF+= fp_mode
|
||||||
|
.endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# 128-bit quad precision long double support,
|
# 128-bit quad precision long double support,
|
||||||
# only used on some architectures.
|
# only used on some architectures.
|
||||||
@ -205,14 +213,12 @@ CFLAGS+= -DEMIT_SYNC_ATOMICS
|
|||||||
SRCF+= stdatomic
|
SRCF+= stdatomic
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|
||||||
.if "${COMPILER_TYPE}" == "clang" && \
|
.if "${COMPILER_TYPE}" == "clang" && \
|
||||||
(${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpcspe")
|
(${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpcspe")
|
||||||
SRCS+= atomic.c
|
SRCS+= atomic.c
|
||||||
CFLAGS.atomic.c+= -Wno-atomic-alignment
|
CFLAGS.atomic.c+= -Wno-atomic-alignment
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|
||||||
.for file in ${SRCF}
|
.for file in ${SRCF}
|
||||||
.if ${MACHINE_ARCH:Marmv[67]*} && (!defined(CPUTYPE) || ${CPUTYPE:M*soft*} == "") \
|
.if ${MACHINE_ARCH:Marmv[67]*} && (!defined(CPUTYPE) || ${CPUTYPE:M*soft*} == "") \
|
||||||
&& exists(${CRTSRC}/${CRTARCH}/${file}vfp.S)
|
&& exists(${CRTSRC}/${CRTARCH}/${file}vfp.S)
|
||||||
|
Loading…
Reference in New Issue
Block a user