Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Mar 2020 18:23:41 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r358763 - stable/12/lib/libcompiler_rt
Message-ID:  <202003081823.028INfhL011530@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003081823.028INfhL011530>