Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Nov 2017 16:41:30 +0000 (UTC)
From:      Michal Meloun <mmel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326232 - head/lib/libzstd
Message-ID:  <201711261641.vAQGfU6C030209@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmel
Date: Sun Nov 26 16:41:30 2017
New Revision: 326232
URL: https://svnweb.freebsd.org/changeset/base/326232

Log:
  Addd work around for LLVM bug 35023.
  
  Clang crashes when compiling zstd_compress.c with optimization for ARM targets.
  https://bugs.llvm.org/show_bug.cgi?id=35023

Modified:
  head/lib/libzstd/Makefile

Modified: head/lib/libzstd/Makefile
==============================================================================
--- head/lib/libzstd/Makefile	Sun Nov 26 16:12:10 2017	(r326231)
+++ head/lib/libzstd/Makefile	Sun Nov 26 16:41:30 2017	(r326232)
@@ -38,4 +38,9 @@ ZSTDDIR=	${SRCTOP}/sys/contrib/zstd
 	${ZSTDDIR}/lib/decompress ${ZSTDDIR}/lib/deprecated \
 	${ZSTDDIR}/lib/dictBuilder ${ZSTDDIR}/lib
 
+# Work around for LLVM bug 35023, https://bugs.llvm.org/show_bug.cgi?id=35023
+.if ${MACHINE_ARCH:Marm*} != ""
+CFLAGS.zstd_compress.c+= -O0
+.endif
+
 .include <bsd.lib.mk>



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