svn commit: r351040 - head/lib/libcompiler_rt
Ed Maste
emaste at FreeBSD.org
Wed Aug 14 18:41:29 UTC 2019
Author: emaste
Date: Wed Aug 14 18:41:28 2019
New Revision: 351040
URL: https://svnweb.freebsd.org/changeset/base/351040
Log:
compiler-rt: enable __bswapsi2/__bswapdi2 for RISC-V
As with other archs the compiler may emit calls to the byte swap routines
under certain conditions.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Modified:
head/lib/libcompiler_rt/Makefile.inc
Modified: head/lib/libcompiler_rt/Makefile.inc
==============================================================================
--- head/lib/libcompiler_rt/Makefile.inc Wed Aug 14 18:04:04 2019 (r351039)
+++ head/lib/libcompiler_rt/Makefile.inc Wed Aug 14 18:41:28 2019 (r351040)
@@ -234,7 +234,8 @@ SRCS+= sync_synchronize.S
.endif
# On some archs GCC-6.3 requires bswap32 built-in.
-.if ${MACHINE_CPUARCH} == "mips" || ${MACHINE_CPUARCH} == "sparc64"
+.if ${MACHINE_CPUARCH} == "mips" || ${MACHINE_CPUARCH} == "riscv" || \
+ ${MACHINE_CPUARCH} == "sparc64"
SRCS+= bswapdi2.c
SRCS+= bswapsi2.c
.endif
More information about the svn-src-head
mailing list