Author: emaste
Date: Wed Apr  8 19:07:06 2015
New Revision: 281270
URL: https://svnweb.freebsd.org/changeset/base/281270

Log:
  compiler-rt: include 128-bit quad precision fp support only on arm64
  
  Other architectures do not use quad precision long double and don't need
  these runtime support routines.
  
  Differential Revision:        https://reviews.freebsd.org/D2252
  Reviewed by:  dim
  Sponsored by: The FreeBSD Foundation

Modified:
  head/lib/libcompiler_rt/Makefile

Modified: head/lib/libcompiler_rt/Makefile
==============================================================================
--- head/lib/libcompiler_rt/Makefile    Wed Apr  8 17:54:20 2015        
(r281269)
+++ head/lib/libcompiler_rt/Makefile    Wed Apr  8 19:07:06 2015        
(r281270)
@@ -22,7 +22,6 @@ CRTSRC=${.CURDIR}/../../contrib/compiler
 SRCF=  absvdi2 \
        absvsi2 \
        absvti2 \
-       addtf3 \
        addvdi3 \
        addvsi3 \
        addvti3 \
@@ -37,7 +36,6 @@ SRCF= absvdi2 \
        clzti2 \
        cmpdi2 \
        cmpti2 \
-       comparetf2 \
        ctzdi2 \
        ctzsi2 \
        ctzti2 \
@@ -46,31 +44,22 @@ SRCF=       absvdi2 \
        divmoddi4 \
        divmodsi4 \
        divsc3 \
-       divtf3 \
        divti3 \
        divxc3 \
        enable_execute_stack \
        eprintf \
-       extenddftf2 \
-       extendsftf2 \
        ffsdi2 \
        ffsti2 \
        fixdfdi \
        fixdfti \
        fixsfdi \
        fixsfti \
-       fixtfdi \
-       fixtfsi \
-       fixtfti \
        fixunsdfdi \
        fixunsdfsi \
        fixunsdfti \
        fixunssfdi \
        fixunssfsi \
        fixunssfti \
-       fixunstfdi \
-       fixunstfsi \
-       fixunstfti \
        fixunsxfdi \
        fixunsxfsi \
        fixunsxfti \
@@ -105,7 +94,6 @@ SRCF=        absvdi2 \
        mulosi4 \
        muloti4 \
        mulsc3 \
-       multf3 \
        multi3 \
        mulvdi3 \
        mulvsi3 \
@@ -129,13 +117,10 @@ SRCF=     absvdi2 \
        powisf2 \
        powitf2 \
        powixf2 \
-       subtf3 \
        subvdi3 \
        subvsi3 \
        subvti3 \
        trampoline_setup \
-       trunctfdf2 \
-       trunctfsf2 \
        ucmpdi2 \
        ucmpti2 \
        udivdi3 \
@@ -146,6 +131,25 @@ 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 \
+       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 \
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to