svn commit: r358763 - stable/12/lib/libcompiler_rt

Ed Maste emaste at FreeBSD.org
Sun Mar 8 18:23:42 UTC 2020


Author: emaste
Date: Sun Mar  8 18:23:41 2020
New Revision: 358763
URL: https://svnweb.freebsd.org/changeset/base/358763

Log:
  MFC r351040: 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.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/12/lib/libcompiler_rt/Makefile.inc
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/lib/libcompiler_rt/Makefile.inc
==============================================================================
--- stable/12/lib/libcompiler_rt/Makefile.inc	Sun Mar  8 18:22:36 2020	(r358762)
+++ stable/12/lib/libcompiler_rt/Makefile.inc	Sun Mar  8 18:23:41 2020	(r358763)
@@ -244,7 +244,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-all mailing list