Makefile.inc (8bc12a7e288befe8c8b73b693ef562bf6aac81f3) Makefile.inc (a92579cfb90894ba1e3fda67fc9856d3c68b5d42)
1# $FreeBSD$
2
3CRTARCH= ${MACHINE_CPUARCH:C/amd64/x86_64/}
4
5CRTSRC= ${SRCTOP}/contrib/llvm-project/compiler-rt/lib/builtins
6
7.PATH: ${CRTSRC}/${CRTARCH}
8.PATH: ${CRTSRC}

--- 129 unchanged lines hidden (view full) ---

138SRCF+= floatundixf
139.endif
140
141# __cpu_model support, only used on x86
142.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
143SRCF+= cpu_model
144.endif
145
1# $FreeBSD$
2
3CRTARCH= ${MACHINE_CPUARCH:C/amd64/x86_64/}
4
5CRTSRC= ${SRCTOP}/contrib/llvm-project/compiler-rt/lib/builtins
6
7.PATH: ${CRTSRC}/${CRTARCH}
8.PATH: ${CRTSRC}

--- 129 unchanged lines hidden (view full) ---

138SRCF+= floatundixf
139.endif
140
141# __cpu_model support, only used on x86
142.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
143SRCF+= cpu_model
144.endif
145
146# The fp_mode implementation for amd64 and i386 is shared, while other
147# architectures use the regular approach.
148.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
149SRCS+= i386/fp_mode.c
150.else
151SRCF+= fp_mode
152.endif
153
146#
147# 128-bit quad precision long double support,
148# only used on some architectures.
149#
150.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "riscv"
151SRCF+= addtf3
152SRCF+= comparetf2
153SRCF+= divtf3

--- 46 unchanged lines hidden (view full) ---

200SRCF+= stdatomic
201CFLAGS+= -DEMIT_SYNC_ATOMICS
202.elif ${MACHINE_CPUARCH} == "mips"
203.PATH: ${SRCTOP}/sys/mips/mips
204
205SRCF+= stdatomic
206.endif
207
154#
155# 128-bit quad precision long double support,
156# only used on some architectures.
157#
158.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "riscv"
159SRCF+= addtf3
160SRCF+= comparetf2
161SRCF+= divtf3

--- 46 unchanged lines hidden (view full) ---

208SRCF+= stdatomic
209CFLAGS+= -DEMIT_SYNC_ATOMICS
210.elif ${MACHINE_CPUARCH} == "mips"
211.PATH: ${SRCTOP}/sys/mips/mips
212
213SRCF+= stdatomic
214.endif
215
208
209.if "${COMPILER_TYPE}" == "clang" && \
210 (${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpcspe")
211SRCS+= atomic.c
212CFLAGS.atomic.c+= -Wno-atomic-alignment
213.endif
214
216.if "${COMPILER_TYPE}" == "clang" && \
217 (${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpcspe")
218SRCS+= atomic.c
219CFLAGS.atomic.c+= -Wno-atomic-alignment
220.endif
221
215
216.for file in ${SRCF}
217.if ${MACHINE_ARCH:Marmv[67]*} && (!defined(CPUTYPE) || ${CPUTYPE:M*soft*} == "") \
218 && exists(${CRTSRC}/${CRTARCH}/${file}vfp.S)
219SRCS+= ${file}vfp.S
220. elif exists(${CRTSRC}/${CRTARCH}/${file}.S)
221SRCS+= ${file}.S
222. else
223SRCS+= ${file}.c

--- 32 unchanged lines hidden ---
222.for file in ${SRCF}
223.if ${MACHINE_ARCH:Marmv[67]*} && (!defined(CPUTYPE) || ${CPUTYPE:M*soft*} == "") \
224 && exists(${CRTSRC}/${CRTARCH}/${file}vfp.S)
225SRCS+= ${file}vfp.S
226. elif exists(${CRTSRC}/${CRTARCH}/${file}.S)
227SRCS+= ${file}.S
228. else
229SRCS+= ${file}.c

--- 32 unchanged lines hidden ---