Date: Thu, 6 Jul 2017 13:27:01 +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: r320735 - head/lib/libcompiler_rt Message-ID: <201707061327.v66DR1WL013199@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Thu Jul 6 13:27:01 2017 New Revision: 320735 URL: https://svnweb.freebsd.org/changeset/base/320735 Log: compiler_rt: provide bswap buildins on sparc64 Attempting to build sparc64 world with GCC 6.3 previously failed with zstd_compress.c:(.text+0x8fc): undefined reference to `__bswapsi2' Modified: head/lib/libcompiler_rt/Makefile.inc Modified: head/lib/libcompiler_rt/Makefile.inc ============================================================================== --- head/lib/libcompiler_rt/Makefile.inc Thu Jul 6 12:30:39 2017 (r320734) +++ head/lib/libcompiler_rt/Makefile.inc Thu Jul 6 13:27:01 2017 (r320735) @@ -225,9 +225,8 @@ SRCS+= switchu8.S SRCS+= sync_synchronize.S .endif -# GCC-6.3 on mips32 requires bswap32 built-in. -.if ${MACHINE_CPUARCH} == "mips" +# On some archs GCC-6.3 requires bswap32 built-in. +.if ${MACHINE_CPUARCH} == "mips" || ${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?201707061327.v66DR1WL013199>