Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Aug 2019 18:41:29 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351040 - head/lib/libcompiler_rt
Message-ID:  <201908141841.x7EIfT52012780@repo.freebsd.org>

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



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