mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 18:56:38 +00:00
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
This commit is contained in:
parent
331884f291
commit
ea0a30b145
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351040
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue