diff options
author | sjg <sjg@FreeBSD.org> | 2015-05-27 01:19:58 +0000 |
---|---|---|
committer | sjg <sjg@FreeBSD.org> | 2015-05-27 01:19:58 +0000 |
commit | 65145fa4c81da358fcbc3b650156dab705dfa34e (patch) | |
tree | 55c065b6730aaac2afb6c29933ee6ec5fa4c4249 /lib/libcompiler_rt | |
parent | 60ff4eb0dff94a04d75d0d52a3957aaaf5f8c693 (diff) | |
parent | e6b664c390af88d4a87208bc042ce503da664c3b (diff) | |
download | FreeBSD-src-65145fa4c81da358fcbc3b650156dab705dfa34e.zip FreeBSD-src-65145fa4c81da358fcbc3b650156dab705dfa34e.tar.gz |
Merge sync of head
Diffstat (limited to 'lib/libcompiler_rt')
-rw-r--r-- | lib/libcompiler_rt/Makefile | 48 |
1 files changed, 43 insertions, 5 deletions
diff --git a/lib/libcompiler_rt/Makefile b/lib/libcompiler_rt/Makefile index c31eced..5e21883 100644 --- a/lib/libcompiler_rt/Makefile +++ b/lib/libcompiler_rt/Makefile @@ -7,6 +7,7 @@ NO_PIC= WARNS?= 2 CFLAGS+=${PICFLAG} -fvisibility=hidden -DVISIBILITY_HIDDEN +CFLAGS+=-I${.CURDIR}/../../contrib/libcxxrt .if ${MACHINE_CPUARCH} == "amd64" CRTARCH=x86_64 @@ -14,7 +15,7 @@ CRTARCH=x86_64 CRTARCH=${MACHINE_CPUARCH} .endif -CRTSRC=${.CURDIR}/../../contrib/compiler-rt/lib +CRTSRC=${.CURDIR}/../../contrib/compiler-rt/lib/builtins .PATH: ${CRTSRC}/${CRTARCH} ${CRTSRC} @@ -24,6 +25,7 @@ SRCF= absvdi2 \ addvdi3 \ addvsi3 \ addvti3 \ + apple_versioning \ ashldi3 \ ashlti3 \ ashrdi3 \ @@ -34,8 +36,6 @@ SRCF= absvdi2 \ clzti2 \ cmpdi2 \ cmpti2 \ - comparedf2 \ - comparesf2 \ ctzdi2 \ ctzsi2 \ ctzti2 \ @@ -67,18 +67,22 @@ SRCF= absvdi2 \ fixxfti \ floatdidf \ floatdisf \ + floatditf \ floatdixf \ + floatsitf \ floattidf \ floattisf \ floattixf \ floatundidf \ floatundisf \ + floatunditf \ floatundixf \ floatunsidf \ floatunsisf \ floatuntidf \ floatuntisf \ floatuntixf \ + gcc_personality_v0 \ int_util \ lshrdi3 \ lshrti3 \ @@ -94,6 +98,7 @@ SRCF= absvdi2 \ mulvdi3 \ mulvsi3 \ mulvti3 \ + multc3 \ mulxc3 \ negdf2 \ negdi2 \ @@ -126,6 +131,26 @@ SRCF= absvdi2 \ umoddi3 \ umodti3 +# 128-bit quad precision long double support, only used on arm64 +.if ${MACHINE_CPUARCH} == "aarch64" +SRCF+= addtf3 \ + comparetf2 \ + divtf3 \ + extenddftf2 \ + extendsftf2 \ + fixtfdi \ + fixtfsi \ + fixtfti \ + fixunstfdi \ + fixunstfsi \ + fixunstfti \ + floatunsitf \ + multf3 \ + subtf3 \ + trunctfdf2 \ + trunctfsf2 +.endif + # These are already shipped by libc.a on arm and mips .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" SRCF+= adddf3 \ @@ -144,6 +169,11 @@ SRCF+= adddf3 \ truncdfsf2 .endif +.if ${MACHINE_CPUARCH} != "arm" +SRCF+= comparedf2 \ + comparesf2 +.endif + .if ${MACHINE_CPUARCH} != "mips" SRCF+= divsi3 \ modsi3 \ @@ -174,14 +204,22 @@ SRCS+= ${file}.c .endfor .if ${MACHINE_CPUARCH} == "arm" -SRCS+= aeabi_idivmod.S \ +SRCS+= aeabi_div0.c \ + aeabi_idivmod.S \ aeabi_ldivmod.S \ aeabi_memcmp.S \ aeabi_memcpy.S \ aeabi_memmove.S \ aeabi_memset.S \ aeabi_uidivmod.S \ - aeabi_uldivmod.S + aeabi_uldivmod.S \ + bswapdi2.S \ + bswapsi2.S \ + switch16.S \ + switch32.S \ + switch8.S \ + switchu8.S \ + sync_synchronize.S .endif .if ${MK_INSTALLLIB} != "no" |