Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2018 18:13:33 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r328635 - head/lib/libgcc_s
Message-ID:  <201801311813.w0VIDXFu045391@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Wed Jan 31 18:13:33 2018
New Revision: 328635
URL: https://svnweb.freebsd.org/changeset/base/328635

Log:
  Don't include long double routines on architectures with small long double.
  
  Reviewed by:	emaste
  Sponsored by:	DARPA / AFRL
  Differential Revision:	https://reviews.freebsd.org/D13874

Modified:
  head/lib/libgcc_s/Makefile

Modified: head/lib/libgcc_s/Makefile
==============================================================================
--- head/lib/libgcc_s/Makefile	Wed Jan 31 18:03:40 2018	(r328634)
+++ head/lib/libgcc_s/Makefile	Wed Jan 31 18:13:33 2018	(r328635)
@@ -28,12 +28,18 @@ SRCS+=		s_fabsf.c
 SRCS+=		s_fabsl.c
 SRCS+=		s_fmax.c
 SRCS+=		s_fmaxf.c
-SRCS+=		s_fmaxl.c
 SRCS+=		s_logb.c
 SRCS+=		s_logbf.c
-SRCS+=		s_logbl.c
 SRCS+=		s_scalbn.c
 SRCS+=		s_scalbnf.c
+
+# Don't include long double routines on architectures where long double
+# is the same size as double.
+.if ${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "arm" &&
+    ${MACHINE_CPUARCH} != "powerpc"
+SRCS+=		s_fmaxl.c
+SRCS+=		s_logbl.c
 SRCS+=		s_scalbnl.c
+.endif
 
 .include <bsd.lib.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801311813.w0VIDXFu045391>