Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 2020 19:07:38 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r357221 - projects/clang1000-import/lib/libcompiler_rt
Message-ID:  <202001281907.00SJ7c5B044226@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Tue Jan 28 19:07:37 2020
New Revision: 357221
URL: https://svnweb.freebsd.org/changeset/base/357221

Log:
  Add internal floating point environment builtins to libcompiler_rt and
  libgcc, as these are used in a few other builtin implementations.

Modified:
  projects/clang1000-import/lib/libcompiler_rt/Makefile.inc

Modified: projects/clang1000-import/lib/libcompiler_rt/Makefile.inc
==============================================================================
--- projects/clang1000-import/lib/libcompiler_rt/Makefile.inc	Tue Jan 28 18:58:37 2020	(r357220)
+++ projects/clang1000-import/lib/libcompiler_rt/Makefile.inc	Tue Jan 28 19:07:37 2020	(r357221)
@@ -143,6 +143,14 @@ SRCF+=		floatundixf
 SRCF+=		cpu_model
 .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,
 # only used on some architectures.
@@ -205,13 +213,11 @@ CFLAGS+=	-DEMIT_SYNC_ATOMICS
 SRCF+=		stdatomic
 .endif
 
-
 .if "${COMPILER_TYPE}" == "clang" && \
     (${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpcspe")
 SRCS+=          atomic.c
 CFLAGS.atomic.c+=      -Wno-atomic-alignment
 .endif
-
 
 .for file in ${SRCF}
 .if ${MACHINE_ARCH:Marmv[67]*} && (!defined(CPUTYPE) || ${CPUTYPE:M*soft*} == "") \



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