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'
This commit is contained in:
Ed Maste 2017-07-06 13:27:01 +00:00
parent 9990da25ea
commit d9ad2b357b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320735

View File

@ -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