aboutsummaryrefslogtreecommitdiff
path: root/lib/libcompiler_rt
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-07-13 22:01:38 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-07-13 22:01:38 +0000
commitd2043ca373caadb5ebf0b851bb440c67997a6232 (patch)
treecb2a178347324ec40bdb7871a573314973635031 /lib/libcompiler_rt
parentc439438675a4029cb1904109701aef88061e9401 (diff)
parent27c8e6b81ed5838c47232322aebe407f1e432d4d (diff)
downloadsrc-d2043ca373caadb5ebf0b851bb440c67997a6232.tar.gz
src-d2043ca373caadb5ebf0b851bb440c67997a6232.zip
Merge ^/head r320573 through r320970.
Notes
Notes: svn path=/projects/clang500-import/; revision=320971
Diffstat (limited to 'lib/libcompiler_rt')
-rw-r--r--lib/libcompiler_rt/Makefile.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libcompiler_rt/Makefile.inc b/lib/libcompiler_rt/Makefile.inc
index 2f0ad2378130..b2eb3fa1e069 100644
--- a/lib/libcompiler_rt/Makefile.inc
+++ b/lib/libcompiler_rt/Makefile.inc
@@ -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
-