svn commit: r320735 - head/lib/libcompiler_rt
Ed Maste
emaste at FreeBSD.org
Thu Jul 6 13:27:02 UTC 2017
Author: emaste
Date: Thu Jul 6 13:27:01 2017
New Revision: 320735
URL: https://svnweb.freebsd.org/changeset/base/320735
Log:
compiler_rt: provide bswap buildins on sparc64
Attempting to build sparc64 world with GCC 6.3 previously failed with
zstd_compress.c:(.text+0x8fc): undefined reference to `__bswapsi2'
Modified:
head/lib/libcompiler_rt/Makefile.inc
Modified: head/lib/libcompiler_rt/Makefile.inc
==============================================================================
--- head/lib/libcompiler_rt/Makefile.inc Thu Jul 6 12:30:39 2017 (r320734)
+++ head/lib/libcompiler_rt/Makefile.inc Thu Jul 6 13:27:01 2017 (r320735)
@@ -225,9 +225,8 @@ SRCS+= switchu8.S
SRCS+= sync_synchronize.S
.endif
-# GCC-6.3 on mips32 requires bswap32 built-in.
-.if ${MACHINE_CPUARCH} == "mips"
+# On some archs GCC-6.3 requires bswap32 built-in.
+.if ${MACHINE_CPUARCH} == "mips" || ${MACHINE_CPUARCH} == "sparc64"
SRCS+= bswapdi2.c
SRCS+= bswapsi2.c
.endif
-
More information about the svn-src-all
mailing list