summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/lldb/Makefile5
-rw-r--r--devel/lldb/PLIST48
-rw-r--r--devel/lldb/PLIST.Darwin3
-rw-r--r--devel/lldb/buildlink3.mk4
-rw-r--r--devel/lldb/distinfo14
-rw-r--r--devel/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake8
-rw-r--r--devel/lldb/patches/patch-source_API_CMakeLists.txt12
-rw-r--r--devel/polly/Makefile4
-rw-r--r--devel/polly/buildlink3.mk4
-rw-r--r--devel/polly/distinfo10
-rw-r--r--lang/compiler-rt/Makefile5
-rw-r--r--lang/compiler-rt/PLIST.Darwin4
-rw-r--r--lang/compiler-rt/PLIST.NetBSD72
-rw-r--r--lang/compiler-rt/buildlink3.mk4
-rw-r--r--lang/compiler-rt/distinfo14
-rw-r--r--lang/compiler-rt/patches/patch-cmake_config-ix.cmake20
-rw-r--r--lang/compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cc74
-rw-r--r--lang/compiler-rt/patches/patch-lib_tsan_CMakeLists.txt15
-rw-r--r--lang/libunwind/Makefile4
-rw-r--r--lang/libunwind/buildlink3.mk4
-rw-r--r--lang/libunwind/distinfo10
-rw-r--r--lang/llvm/Makefile8
-rw-r--r--lang/llvm/PLIST148
-rw-r--r--lang/llvm/buildlink3.mk4
-rw-r--r--lang/llvm/distinfo16
-rw-r--r--lang/llvm/patches/patch-cmake_config-ix.cmake8
-rw-r--r--lang/llvm/patches/patch-cmake_modules_HandleLLVMOptions.cmake10
-rw-r--r--lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt53
28 files changed, 302 insertions, 283 deletions
diff --git a/devel/lldb/Makefile b/devel/lldb/Makefile
index ed2cd661290..8c4e56e883c 100644
--- a/devel/lldb/Makefile
+++ b/devel/lldb/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2019/04/25 07:32:48 maya Exp $
+# $NetBSD: Makefile,v 1.21 2019/06/02 08:35:55 adam Exp $
-DISTNAME= lldb-7.0.1.src
+DISTNAME= lldb-8.0.0.src
PKGNAME= ${DISTNAME:S/.src//}
-PKGREVISION= 1
CATEGORIES= lang devel
MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/
EXTRACT_SUFX= .tar.xz
diff --git a/devel/lldb/PLIST b/devel/lldb/PLIST
index 0d9df372868..339c4d711d4 100644
--- a/devel/lldb/PLIST
+++ b/devel/lldb/PLIST
@@ -1,9 +1,10 @@
-@comment $NetBSD: PLIST,v 1.9 2018/12/09 20:04:39 adam Exp $
+@comment $NetBSD: PLIST,v 1.10 2019/06/02 08:35:55 adam Exp $
bin/lldb
bin/lldb-argdumper
bin/lldb-mi
bin/lldb-server
bin/lldb-test
+bin/lldb-vscode
include/lldb/API/LLDB.h
include/lldb/API/SBAddress.h
include/lldb/API/SBAttachInfo.h
@@ -29,6 +30,7 @@ include/lldb/API/SBFileSpecList.h
include/lldb/API/SBFrame.h
include/lldb/API/SBFunction.h
include/lldb/API/SBHostOS.h
+include/lldb/API/SBInitializerOptions.h
include/lldb/API/SBInstruction.h
include/lldb/API/SBInstructionList.h
include/lldb/API/SBLanguageRuntime.h
@@ -85,6 +87,7 @@ include/lldb/Breakpoint/BreakpointResolverAddress.h
include/lldb/Breakpoint/BreakpointResolverFileLine.h
include/lldb/Breakpoint/BreakpointResolverFileRegex.h
include/lldb/Breakpoint/BreakpointResolverName.h
+include/lldb/Breakpoint/BreakpointResolverScripted.h
include/lldb/Breakpoint/BreakpointSite.h
include/lldb/Breakpoint/BreakpointSiteList.h
include/lldb/Breakpoint/Stoppoint.h
@@ -99,7 +102,6 @@ include/lldb/Core/AddressResolver.h
include/lldb/Core/AddressResolverFileLine.h
include/lldb/Core/AddressResolverName.h
include/lldb/Core/Architecture.h
-include/lldb/Core/Broadcaster.h
include/lldb/Core/ClangForward.h
include/lldb/Core/Communication.h
include/lldb/Core/Debugger.h
@@ -107,13 +109,12 @@ include/lldb/Core/Disassembler.h
include/lldb/Core/DumpDataExtractor.h
include/lldb/Core/DumpRegisterValue.h
include/lldb/Core/EmulateInstruction.h
-include/lldb/Core/Event.h
include/lldb/Core/FileLineResolver.h
include/lldb/Core/FileSpecList.h
include/lldb/Core/FormatEntity.h
+include/lldb/Core/Highlighter.h
include/lldb/Core/IOHandler.h
include/lldb/Core/IOStreamMacros.h
-include/lldb/Core/Listener.h
include/lldb/Core/LoadedModuleInfoList.h
include/lldb/Core/Mangled.h
include/lldb/Core/MappedHash.h
@@ -125,13 +126,11 @@ include/lldb/Core/Opcode.h
include/lldb/Core/PluginInterface.h
include/lldb/Core/PluginManager.h
include/lldb/Core/RangeMap.h
-include/lldb/Core/RegisterValue.h
+include/lldb/Core/RichManglingContext.h
include/lldb/Core/STLUtils.h
-include/lldb/Core/Scalar.h
include/lldb/Core/SearchFilter.h
include/lldb/Core/Section.h
include/lldb/Core/SourceManager.h
-include/lldb/Core/State.h
include/lldb/Core/StreamAsynchronousIO.h
include/lldb/Core/StreamBuffer.h
include/lldb/Core/StreamFile.h
@@ -221,10 +220,10 @@ include/lldb/Host/OptionParser.h
include/lldb/Host/Pipe.h
include/lldb/Host/PipeBase.h
include/lldb/Host/PosixApi.h
-include/lldb/Host/Predicate.h
include/lldb/Host/ProcessLauncher.h
include/lldb/Host/ProcessRunLock.h
include/lldb/Host/PseudoTerminal.h
+include/lldb/Host/SafeMachO.h
include/lldb/Host/Socket.h
include/lldb/Host/SocketAddress.h
include/lldb/Host/StringConvert.h
@@ -236,13 +235,11 @@ include/lldb/Host/Time.h
include/lldb/Host/XML.h
include/lldb/Host/android/HostInfoAndroid.h
include/lldb/Host/common/GetOptInc.h
-include/lldb/Host/common/NativeBreakpoint.h
include/lldb/Host/common/NativeBreakpointList.h
include/lldb/Host/common/NativeProcessProtocol.h
include/lldb/Host/common/NativeRegisterContext.h
include/lldb/Host/common/NativeThreadProtocol.h
include/lldb/Host/common/NativeWatchpointList.h
-include/lldb/Host/common/SoftwareBreakpoint.h
include/lldb/Host/common/TCPSocket.h
include/lldb/Host/common/UDPSocket.h
include/lldb/Host/freebsd/HostInfoFreeBSD.h
@@ -342,11 +339,8 @@ include/lldb/Symbol/DeclVendor.h
include/lldb/Symbol/Declaration.h
include/lldb/Symbol/FuncUnwinders.h
include/lldb/Symbol/Function.h
-include/lldb/Symbol/GoASTContext.h
-include/lldb/Symbol/JavaASTContext.h
include/lldb/Symbol/LineEntry.h
include/lldb/Symbol/LineTable.h
-include/lldb/Symbol/OCamlASTContext.h
include/lldb/Symbol/ObjectContainer.h
include/lldb/Symbol/ObjectFile.h
include/lldb/Symbol/Symbol.h
@@ -399,6 +393,7 @@ include/lldb/Target/SectionLoadHistory.h
include/lldb/Target/SectionLoadList.h
include/lldb/Target/StackFrame.h
include/lldb/Target/StackFrameList.h
+include/lldb/Target/StackFrameRecognizer.h
include/lldb/Target/StackID.h
include/lldb/Target/StopInfo.h
include/lldb/Target/StructuredDataPlugin.h
@@ -434,6 +429,7 @@ include/lldb/Utility/AnsiTerminal.h
include/lldb/Utility/ArchSpec.h
include/lldb/Utility/Args.h
include/lldb/Utility/Baton.h
+include/lldb/Utility/Broadcaster.h
include/lldb/Utility/CleanUp.h
include/lldb/Utility/CompletionRequest.h
include/lldb/Utility/Connection.h
@@ -443,25 +439,28 @@ include/lldb/Utility/DataBufferHeap.h
include/lldb/Utility/DataBufferLLVM.h
include/lldb/Utility/DataEncoder.h
include/lldb/Utility/DataExtractor.h
-include/lldb/Utility/Either.h
include/lldb/Utility/Endian.h
include/lldb/Utility/Environment.h
-include/lldb/Utility/FastDemangle.h
+include/lldb/Utility/Event.h
include/lldb/Utility/FileSpec.h
include/lldb/Utility/Flags.h
include/lldb/Utility/IOObject.h
include/lldb/Utility/Iterable.h
include/lldb/Utility/JSON.h
include/lldb/Utility/LLDBAssert.h
+include/lldb/Utility/Listener.h
include/lldb/Utility/Log.h
include/lldb/Utility/Logging.h
include/lldb/Utility/NameMatches.h
-include/lldb/Utility/Range.h
+include/lldb/Utility/Predicate.h
+include/lldb/Utility/RegisterValue.h
include/lldb/Utility/RegularExpression.h
-include/lldb/Utility/SafeMachO.h
+include/lldb/Utility/Reproducer.h
+include/lldb/Utility/Scalar.h
include/lldb/Utility/SelectHelper.h
include/lldb/Utility/SharedCluster.h
include/lldb/Utility/SharingPtr.h
+include/lldb/Utility/State.h
include/lldb/Utility/Status.h
include/lldb/Utility/Stream.h
include/lldb/Utility/StreamCallback.h
@@ -496,7 +495,7 @@ include/lldb/lldb-types.h
include/lldb/lldb-versioning.h
lib/liblldb.so
lib/liblldb.so.${PKGVERSION}
-${PLIST.posix}lib/liblldb.so.7
+${PLIST.posix}lib/liblldb.so.8
lib/liblldbBase.a
lib/liblldbBreakpoint.a
lib/liblldbCommands.a
@@ -521,9 +520,11 @@ lib/liblldbPluginABISysV_s390x.a
lib/liblldbPluginABISysV_x86_64.a
lib/liblldbPluginAppleObjCRuntime.a
lib/liblldbPluginArchitectureArm.a
+lib/liblldbPluginArchitectureMips.a
lib/liblldbPluginArchitecturePPC64.a
lib/liblldbPluginCPlusPlusLanguage.a
lib/liblldbPluginCXXItaniumABI.a
+lib/liblldbPluginClangCommon.a
lib/liblldbPluginDisassemblerLLVM.a
lib/liblldbPluginDynamicLoaderDarwinKernel.a
lib/liblldbPluginDynamicLoaderHexagonDYLD.a
@@ -532,8 +533,6 @@ lib/liblldbPluginDynamicLoaderPosixDYLD.a
lib/liblldbPluginDynamicLoaderStatic.a
lib/liblldbPluginDynamicLoaderWindowsDYLD.a
lib/liblldbPluginExpressionParserClang.a
-lib/liblldbPluginExpressionParserGo.a
-lib/liblldbPluginGoLanguage.a
lib/liblldbPluginInstructionARM.a
lib/liblldbPluginInstructionARM64.a
lib/liblldbPluginInstructionMIPS.a
@@ -544,17 +543,13 @@ lib/liblldbPluginInstrumentationRuntimeMainThreadChecker.a
lib/liblldbPluginInstrumentationRuntimeTSan.a
lib/liblldbPluginInstrumentationRuntimeUBSan.a
lib/liblldbPluginJITLoaderGDB.a
-lib/liblldbPluginJavaLanguage.a
-lib/liblldbPluginLanguageRuntimeGo.a
-lib/liblldbPluginLanguageRuntimeJava.a
lib/liblldbPluginMemoryHistoryASan.a
-lib/liblldbPluginOCamlLanguage.a
-lib/liblldbPluginOSGo.a
lib/liblldbPluginOSPython.a
lib/liblldbPluginObjCLanguage.a
lib/liblldbPluginObjCPlusPlusLanguage.a
lib/liblldbPluginObjectContainerBSDArchive.a
lib/liblldbPluginObjectContainerMachOArchive.a
+lib/liblldbPluginObjectFileBreakpad.a
lib/liblldbPluginObjectFileELF.a
lib/liblldbPluginObjectFileJIT.a
lib/liblldbPluginObjectFileMachO.a
@@ -580,7 +575,9 @@ lib/liblldbPluginRenderScriptRuntime.a
lib/liblldbPluginScriptInterpreterNone.a
lib/liblldbPluginScriptInterpreterPython.a
lib/liblldbPluginStructuredDataDarwinLog.a
+lib/liblldbPluginSymbolFileBreakpad.a
lib/liblldbPluginSymbolFileDWARF.a
+lib/liblldbPluginSymbolFileNativePDB.a
lib/liblldbPluginSymbolFilePDB.a
lib/liblldbPluginSymbolFileSymtab.a
lib/liblldbPluginSymbolVendorELF.a
@@ -590,6 +587,7 @@ lib/liblldbPluginUnwindAssemblyX86.a
lib/liblldbSymbol.a
lib/liblldbTarget.a
lib/liblldbUtility.a
+lib/liblldbUtilityHelpers.a
${PYSITELIB}/lldb/__init__.py
${PYSITELIB}/lldb/_lldb.so
${PYSITELIB}/lldb/embedded_interpreter.py
diff --git a/devel/lldb/PLIST.Darwin b/devel/lldb/PLIST.Darwin
index b9bd9f979d4..5b01f21b473 100644
--- a/devel/lldb/PLIST.Darwin
+++ b/devel/lldb/PLIST.Darwin
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST.Darwin,v 1.4 2018/12/23 00:11:40 adam Exp $
+@comment $NetBSD: PLIST.Darwin,v 1.5 2019/06/02 08:35:55 adam Exp $
bin/darwin-debug
+bin/debugserver
lib/liblldbHostMacOSXObjCXX.a
lib/liblldbPluginDynamicLoaderDarwinKernel.a
lib/liblldbPluginPlatformMacOSXObjCXX.a
diff --git a/devel/lldb/buildlink3.mk b/devel/lldb/buildlink3.mk
index d292b88f951..59c1d364980 100644
--- a/devel/lldb/buildlink3.mk
+++ b/devel/lldb/buildlink3.mk
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.5 2018/12/09 20:04:39 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.6 2019/06/02 08:35:55 adam Exp $
BUILDLINK_TREE+= lldb
.if !defined(LLDB_BUILDLINK3_MK)
LLDB_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.lldb+= lldb>=7.0.0
+BUILDLINK_API_DEPENDS.lldb+= lldb>=8.0.0
BUILDLINK_PKGSRCDIR.lldb?= ../../devel/lldb
.include "../../devel/zlib/buildlink3.mk"
diff --git a/devel/lldb/distinfo b/devel/lldb/distinfo
index bea0f14cbed..f2e0ba36ab8 100644
--- a/devel/lldb/distinfo
+++ b/devel/lldb/distinfo
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.14 2018/12/23 00:11:40 adam Exp $
+$NetBSD: distinfo,v 1.15 2019/06/02 08:35:55 adam Exp $
-SHA1 (lldb-7.0.1.src.tar.xz) = 6286b90b2762404baee55a69a2a7e9ed0fce58a2
-RMD160 (lldb-7.0.1.src.tar.xz) = cc74fa4a201d6541cc918caee9abd683c18189b5
-SHA512 (lldb-7.0.1.src.tar.xz) = 7e98c3148ac34b42404e5aaaff91728d19e9062110a333f0bc7a62ec324fbb6d033ea44b56e144dc1e94febb2107cfb33c71bb3602c2168a6270dd807a2cc5ff
-Size (lldb-7.0.1.src.tar.xz) = 19384628 bytes
-SHA1 (patch-cmake_modules_LLDBStandalone.cmake) = 8f7d06a4b3a1e996af9af4affd650291c4f01fe5
+SHA1 (lldb-8.0.0.src.tar.xz) = ca188f74b4896cd243ed1c3797d27c3371185146
+RMD160 (lldb-8.0.0.src.tar.xz) = 8f48d590075479cd131874855a951450ac5a4c72
+SHA512 (lldb-8.0.0.src.tar.xz) = 5192d6d6d1759db28569de929ba8db2a80283000f1bf8453d9cf172ac85574c8eacc13f9fe64ecabea0533bfc49c0f58ea8fb29b1f4d88c065d905d553f2e60c
+Size (lldb-8.0.0.src.tar.xz) = 19602332 bytes
+SHA1 (patch-cmake_modules_LLDBStandalone.cmake) = 7d079e2fc74f7419a833c79ec39c51c18792443f
SHA1 (patch-scripts_Python_modules_readline_readline.cpp) = 4a030226c47cf7d54ebc727e92e278c163e48bf5
-SHA1 (patch-source_API_CMakeLists.txt) = 5e78d7cc8a669cb4c5ece2479894bb18ca3cf282
+SHA1 (patch-source_API_CMakeLists.txt) = 47213a9f674c8afc03a0baecb26ef7bb0cb68925
SHA1 (patch-source_Host_CMakeLists.txt) = 5c7ae7b896aa110fe7ab21ed3616350e0958bc2a
diff --git a/devel/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake b/devel/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake
index 5a52273f0f3..8792ce4df0f 100644
--- a/devel/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake
+++ b/devel/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake
@@ -1,10 +1,10 @@
-$NetBSD: patch-cmake_modules_LLDBStandalone.cmake,v 1.2 2016/11/14 20:15:33 ryoon Exp $
+$NetBSD: patch-cmake_modules_LLDBStandalone.cmake,v 1.3 2019/06/02 08:35:55 adam Exp $
---- cmake/modules/LLDBStandalone.cmake.orig 2016-07-15 22:46:15.000000000 +0000
+--- cmake/modules/LLDBStandalone.cmake.orig 2019-01-29 14:23:34.000000000 +0000
+++ cmake/modules/LLDBStandalone.cmake
-@@ -86,7 +86,6 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
-
+@@ -85,7 +85,6 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
include(AddLLVM)
+ include(TableGen)
include(HandleLLVMOptions)
- include(CheckAtomic)
diff --git a/devel/lldb/patches/patch-source_API_CMakeLists.txt b/devel/lldb/patches/patch-source_API_CMakeLists.txt
index d5711a7f703..4207be30d68 100644
--- a/devel/lldb/patches/patch-source_API_CMakeLists.txt
+++ b/devel/lldb/patches/patch-source_API_CMakeLists.txt
@@ -1,14 +1,14 @@
-$NetBSD: patch-source_API_CMakeLists.txt,v 1.1 2018/12/23 00:14:08 adam Exp $
+$NetBSD: patch-source_API_CMakeLists.txt,v 1.2 2019/06/02 08:35:55 adam Exp $
Fix finding libxml2's includes.
---- source/API/CMakeLists.txt.orig 2018-12-22 21:06:11.000000000 +0000
+--- source/API/CMakeLists.txt.orig 2019-01-04 12:47:02.000000000 +0000
+++ source/API/CMakeLists.txt
-@@ -4,6 +4,10 @@ endif()
+@@ -9,6 +9,10 @@ if(NOT LLDB_DISABLE_PYTHON)
+ set(lldb_python_wrapper ${lldb_scripts_dir}/LLDBWrapPython.cpp)
+ endif()
- get_property(LLDB_ALL_PLUGINS GLOBAL PROPERTY LLDB_PLUGINS)
-
-+if (LIBXML2_FOUND)
++if(LIBXML2_FOUND)
+ include_directories(SYSTEM ${LIBXML2_INCLUDE_DIR})
+endif()
+
diff --git a/devel/polly/Makefile b/devel/polly/Makefile
index 7944f7f86ac..1359bbc5ca8 100644
--- a/devel/polly/Makefile
+++ b/devel/polly/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.12 2018/12/23 00:11:40 adam Exp $
+# $NetBSD: Makefile,v 1.13 2019/06/02 08:35:55 adam Exp $
-DISTNAME= polly-7.0.1.src
+DISTNAME= polly-8.0.0.src
PKGNAME= ${DISTNAME:S/.src//}
CATEGORIES= devel
MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/
diff --git a/devel/polly/buildlink3.mk b/devel/polly/buildlink3.mk
index 92b8fac5c46..67a3fa45449 100644
--- a/devel/polly/buildlink3.mk
+++ b/devel/polly/buildlink3.mk
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.4 2018/12/09 20:04:39 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2019/06/02 08:35:55 adam Exp $
BUILDLINK_TREE+= polly
.if !defined(POLLY_BUILDLINK3_MK)
POLLY_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.polly+= polly>=7.0.0
+BUILDLINK_API_DEPENDS.polly+= polly>=8.0.0
BUILDLINK_PKGSRCDIR.polly?= ../../devel/polly
.include "../../lang/llvm/buildlink3.mk"
diff --git a/devel/polly/distinfo b/devel/polly/distinfo
index 8f436bc1ed6..17196df56f4 100644
--- a/devel/polly/distinfo
+++ b/devel/polly/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.12 2018/12/23 00:11:40 adam Exp $
+$NetBSD: distinfo,v 1.13 2019/06/02 08:35:55 adam Exp $
-SHA1 (polly-7.0.1.src.tar.xz) = 7c750261090168a4a219ab823cfbe76f0938850f
-RMD160 (polly-7.0.1.src.tar.xz) = f1968870c6069bdc22b660eac4a1de4ca580cddd
-SHA512 (polly-7.0.1.src.tar.xz) = 3cfdbf6109f25319a7389ab2530b5cd5b884c02ca9d28d390be2ceed9d0ed155d66812662b123b36bbec0627ce90e8e38956bc3b2be915e7c05ee5355deadd73
-Size (polly-7.0.1.src.tar.xz) = 8755168 bytes
+SHA1 (polly-8.0.0.src.tar.xz) = ca34b2be7c362844db089f0114af11333c2ebfcb
+RMD160 (polly-8.0.0.src.tar.xz) = ed2a61a4cf5431792b0b02d31cc973bdb0fcb676
+SHA512 (polly-8.0.0.src.tar.xz) = f16bc2303467fdd2ec84f7953c18d9123b95ec7882d9e9a419179421ef52f17ad93a58edff58d20251bac09dbf2bf22a996bf18e3d8bf21d5b603ff9f4d80508
+Size (polly-8.0.0.src.tar.xz) = 8706068 bytes
SHA1 (patch-CMakeLists.txt) = 8138e11f858f23e0069c8fa0c07eff2b7aaf8c43
SHA1 (patch-lib_External_isl_configure) = 97c83ab1d2f83e60ab39b41cf055c18074167e66
diff --git a/lang/compiler-rt/Makefile b/lang/compiler-rt/Makefile
index 64cd2b12f8a..ee17a72b8a4 100644
--- a/lang/compiler-rt/Makefile
+++ b/lang/compiler-rt/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2019/04/25 07:33:02 maya Exp $
+# $NetBSD: Makefile,v 1.10 2019/06/02 08:35:56 adam Exp $
-DISTNAME= compiler-rt-7.0.1.src
-PKGREVISION= 2
+DISTNAME= compiler-rt-8.0.0.src
PKGNAME= ${DISTNAME:S/.src//}
CATEGORIES= lang devel
MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/
diff --git a/lang/compiler-rt/PLIST.Darwin b/lang/compiler-rt/PLIST.Darwin
index 83d12bbc090..d656ae7aa46 100644
--- a/lang/compiler-rt/PLIST.Darwin
+++ b/lang/compiler-rt/PLIST.Darwin
@@ -1,5 +1,4 @@
-@comment $NetBSD: PLIST.Darwin,v 1.2 2019/01/31 06:55:37 adam Exp $
-lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.10.4.a
+@comment $NetBSD: PLIST.Darwin,v 1.3 2019/06/02 08:35:56 adam Exp $
lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.asan_osx_dynamic.dylib
lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.cc_kext.a
lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.fuzzer_no_main_osx.a
@@ -7,7 +6,6 @@ lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.fuzzer_osx.a
lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.lsan_osx_dynamic.dylib
lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.osx.a
lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.profile_osx.a
-lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.safestack_osx.a
lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.stats_client_osx.a
lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.stats_osx_dynamic.dylib
lib/clang/${PKGVERSION}/lib/${COMPILER_RT_OS_DIR}/libclang_rt.tsan_osx_dynamic.dylib
diff --git a/lang/compiler-rt/PLIST.NetBSD b/lang/compiler-rt/PLIST.NetBSD
index ff58de5b6aa..5a65e28ec24 100644
--- a/lang/compiler-rt/PLIST.NetBSD
+++ b/lang/compiler-rt/PLIST.NetBSD
@@ -1,36 +1,36 @@
-@comment $NetBSD: PLIST.NetBSD,v 1.1 2018/12/09 20:04:40 adam Exp $
-lib/clang/${PKGVERSION}/lib/libclang_rt.asan-preinit-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.asan-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.asan-${MACHINE_ARCH}.a.syms
-lib/clang/${PKGVERSION}/lib/libclang_rt.asan-${MACHINE_ARCH}.so
-lib/clang/${PKGVERSION}/lib/libclang_rt.asan_cxx-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.asan_cxx-${MACHINE_ARCH}.a.syms
-lib/clang/${PKGVERSION}/lib/libclang_rt.builtins-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.dd-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.dyndd-${MACHINE_ARCH}.so
-lib/clang/${PKGVERSION}/lib/libclang_rt.fuzzer-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.fuzzer_no_main-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.lsan-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.msan-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.msan-${MACHINE_ARCH}.a.syms
-lib/clang/${PKGVERSION}/lib/libclang_rt.msan_cxx-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.msan_cxx-${MACHINE_ARCH}.a.syms
-lib/clang/${PKGVERSION}/lib/libclang_rt.safestack-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.stats-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.stats_client-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.tsan-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.tsan-${MACHINE_ARCH}.a.syms
-lib/clang/${PKGVERSION}/lib/libclang_rt.tsan_cxx-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.tsan_cxx-${MACHINE_ARCH}.a.syms
-lib/clang/${PKGVERSION}/lib/libclang_rt.ubsan_minimal-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.ubsan_minimal-${MACHINE_ARCH}.a.syms
-lib/clang/${PKGVERSION}/lib/libclang_rt.ubsan_minimal-${MACHINE_ARCH}.so
-lib/clang/${PKGVERSION}/lib/libclang_rt.ubsan_standalone-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.ubsan_standalone-${MACHINE_ARCH}.a.syms
-lib/clang/${PKGVERSION}/lib/libclang_rt.ubsan_standalone-${MACHINE_ARCH}.so
-lib/clang/${PKGVERSION}/lib/libclang_rt.ubsan_standalone_cxx-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.ubsan_standalone_cxx-${MACHINE_ARCH}.a.syms
-lib/clang/${PKGVERSION}/lib/libclang_rt.xray-basic-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.xray-fdr-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.xray-profiling-${MACHINE_ARCH}.a
-lib/clang/${PKGVERSION}/lib/libclang_rt.xray-${MACHINE_ARCH}.a
+@comment $NetBSD: PLIST.NetBSD,v 1.2 2019/06/02 08:35:56 adam Exp $
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.asan-preinit-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.asan-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.asan-${MACHINE_ARCH}.a.syms
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.asan-${MACHINE_ARCH}.so
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.asan_cxx-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.asan_cxx-${MACHINE_ARCH}.a.syms
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.builtins-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.dd-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.dyndd-${MACHINE_ARCH}.so
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.fuzzer-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.fuzzer_no_main-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.lsan-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.msan-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.msan-${MACHINE_ARCH}.a.syms
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.msan_cxx-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.msan_cxx-${MACHINE_ARCH}.a.syms
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.safestack-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.stats-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.stats_client-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.tsan-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.tsan-${MACHINE_ARCH}.a.syms
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.tsan_cxx-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.tsan_cxx-${MACHINE_ARCH}.a.syms
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.ubsan_minimal-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.ubsan_minimal-${MACHINE_ARCH}.a.syms
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.ubsan_minimal-${MACHINE_ARCH}.so
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.ubsan_standalone-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.ubsan_standalone-${MACHINE_ARCH}.a.syms
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.ubsan_standalone-${MACHINE_ARCH}.so
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.ubsan_standalone_cxx-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.ubsan_standalone_cxx-${MACHINE_ARCH}.a.syms
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.xray-basic-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.xray-fdr-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.xray-profiling-${MACHINE_ARCH}.a
+lib/clang/${PKGVERSION}/lib/netbsd/libclang_rt.xray-${MACHINE_ARCH}.a
diff --git a/lang/compiler-rt/buildlink3.mk b/lang/compiler-rt/buildlink3.mk
index cea68200fdf..c1d6241c1e6 100644
--- a/lang/compiler-rt/buildlink3.mk
+++ b/lang/compiler-rt/buildlink3.mk
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.1 2018/08/09 13:40:34 jperkin Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2019/06/02 08:35:56 adam Exp $
BUILDLINK_TREE+= compiler-rt
.if !defined(COMPILER_RT_BUILDLINK3_MK)
COMPILER_RT_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.compiler-rt+= compiler-rt>=6.0.1
+BUILDLINK_API_DEPENDS.compiler-rt+= compiler-rt>=8.0.0
BUILDLINK_PKGSRCDIR.compiler-rt?= ../../lang/compiler-rt
.include "../../lang/llvm/buildlink3.mk"
diff --git a/lang/compiler-rt/distinfo b/lang/compiler-rt/distinfo
index 7716ef257ed..303701685c4 100644
--- a/lang/compiler-rt/distinfo
+++ b/lang/compiler-rt/distinfo
@@ -1,10 +1,8 @@
-$NetBSD: distinfo,v 1.3 2018/12/23 00:11:39 adam Exp $
+$NetBSD: distinfo,v 1.4 2019/06/02 08:35:56 adam Exp $
-SHA1 (compiler-rt-7.0.1.src.tar.xz) = 5ac063b474abe730b551477cdc02db789228f9c7
-RMD160 (compiler-rt-7.0.1.src.tar.xz) = ddc0a23cc2f05e44e0bf1b542688968a8126ee0d
-SHA512 (compiler-rt-7.0.1.src.tar.xz) = b94a2a1fb9a6d587cef59b04b951628747bb35bdbcb67de8825aad402a2ba875916a347eef7a9575ac27264e8372e2d67cd477fe2d750c0ed3ce7d67bbbc7dba
-Size (compiler-rt-7.0.1.src.tar.xz) = 1864520 bytes
-SHA1 (patch-cmake_config-ix.cmake) = 4d49d83015a2e88d79dfae54eedef400ef28702d
+SHA1 (compiler-rt-8.0.0.src.tar.xz) = 5af387779120bb2a9fad5d6fff1a3d6f4fa6c352
+RMD160 (compiler-rt-8.0.0.src.tar.xz) = f86ba4b009bef2c95727ced20ea44afef6650ae2
+SHA512 (compiler-rt-8.0.0.src.tar.xz) = fe9f69fe2269fa3d560ae97fdacd462f855fb0b7a5f647f5b8595206ff7febca6496725adc953de411a827c761e2b3ca11a2149f25707d6c62af0722b68ba913
+Size (compiler-rt-8.0.0.src.tar.xz) = 1903020 bytes
+SHA1 (patch-cmake_config-ix.cmake) = e950d8781f00638310b523b6933889a9d15611c5
SHA1 (patch-lib_sanitizer__common_sanitizer__linux__libcdep.cc) = 5acf50111dcbd8458c33453d32d597ea57be3880
-SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cc) = 256e2613f222c69cd591c02071482e594af5d066
-SHA1 (patch-lib_tsan_CMakeLists.txt) = 6c05aa7b4adddc28364950b782a365ecebe1886a
diff --git a/lang/compiler-rt/patches/patch-cmake_config-ix.cmake b/lang/compiler-rt/patches/patch-cmake_config-ix.cmake
index 692d3abd23b..58da815eb75 100644
--- a/lang/compiler-rt/patches/patch-cmake_config-ix.cmake
+++ b/lang/compiler-rt/patches/patch-cmake_config-ix.cmake
@@ -1,19 +1,19 @@
-$NetBSD: patch-cmake_config-ix.cmake,v 1.2 2018/12/09 20:04:40 adam Exp $
+$NetBSD: patch-cmake_config-ix.cmake,v 1.3 2019/06/02 08:35:56 adam Exp $
Disable components that aren't ready for SunOS yet.
---- cmake/config-ix.cmake.orig 2018-07-25 03:01:35.000000000 +0000
+--- cmake/config-ix.cmake.orig 2019-01-25 22:55:41.000000000 +0000
+++ cmake/config-ix.cmake
-@@ -500,7 +500,7 @@ set(COMPILER_RT_SANITIZERS_TO_BUILD all
+@@ -529,7 +529,7 @@ set(COMPILER_RT_SANITIZERS_TO_BUILD all
list_replace(COMPILER_RT_SANITIZERS_TO_BUILD all "${ALL_SANITIZERS}")
if (SANITIZER_COMMON_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND
- (OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD|NetBSD|OpenBSD|Fuchsia|SunOS" OR
+ (OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD|NetBSD|OpenBSD|Fuchsia" OR
- (OS_NAME MATCHES "Windows" AND (NOT MINGW AND NOT CYGWIN))))
+ (OS_NAME MATCHES "Windows" AND NOT CYGWIN AND
+ (NOT MINGW OR CMAKE_CXX_COMPILER_ID MATCHES "Clang"))))
set(COMPILER_RT_HAS_SANITIZER_COMMON TRUE)
- else()
-@@ -520,7 +520,7 @@ else()
+@@ -550,7 +550,7 @@ else()
set(COMPILER_RT_HAS_ASAN FALSE)
endif()
@@ -22,16 +22,16 @@ Disable components that aren't ready for SunOS yet.
set(COMPILER_RT_ASAN_HAS_STATIC_RUNTIME TRUE)
else()
set(COMPILER_RT_ASAN_HAS_STATIC_RUNTIME FALSE)
-@@ -557,7 +557,7 @@ else()
+@@ -587,7 +587,7 @@ else()
endif()
if (PROFILE_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND
-- OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android|Fuchsia|SunOS")
-+ OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android|Fuchsia")
+- OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android|Fuchsia|SunOS|NetBSD")
++ OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android|Fuchsia|NetBSD")
set(COMPILER_RT_HAS_PROFILE TRUE)
else()
set(COMPILER_RT_HAS_PROFILE FALSE)
-@@ -571,7 +571,7 @@ else()
+@@ -601,7 +601,7 @@ else()
endif()
if (COMPILER_RT_HAS_SANITIZER_COMMON AND UBSAN_SUPPORTED_ARCH AND
diff --git a/lang/compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cc b/lang/compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cc
deleted file mode 100644
index 25feafdc1d0..00000000000
--- a/lang/compiler-rt/patches/patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cc
+++ /dev/null
@@ -1,74 +0,0 @@
-$NetBSD: patch-lib_sanitizer__common_sanitizer__platform__limits__netbsd.cc,v 1.1 2018/12/09 20:04:40 adam Exp $
-
-Network ATM has been removed from NetBSD.
-
---- lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc.orig 2018-10-07 11:20:49.808236967 +0000
-+++ lib/sanitizer_common/sanitizer_platform_limits_netbsd.cc
-@@ -116,7 +116,9 @@
- #include <dev/wscons/wsconsio.h>
- #include <dev/wscons/wsdisplay_usl_io.h>
- #include <net/bpf.h>
-+#if __NetBSD_Version__ < 899000000
- #include <net/if_atm.h>
-+#endif
- #include <net/if_gre.h>
- #include <net/if_ppp.h>
- #include <net/if_pppoe.h>
-@@ -132,7 +134,9 @@
- #include <netinet/ip_proxy.h>
- #include <netinet6/in6_var.h>
- #include <netinet6/nd6.h>
-+#if __NetBSD_Version__ < 899000000
- #include <netnatm/natm.h>
-+#endif
- #include <netsmb/smb_dev.h>
- #include <soundcard.h>
- #include <sys/agpio.h>
-@@ -349,8 +353,10 @@ unsigned struct_apm_power_info_sz = size
- unsigned struct_atabusiodetach_args_sz = sizeof(atabusiodetach_args);
- unsigned struct_atabusioscan_args_sz = sizeof(atabusioscan_args);
- unsigned struct_ath_diag_sz = sizeof(ath_diag);
-+#if __NetBSD_Version__ < 899000000
- unsigned struct_atm_flowmap_sz = sizeof(atm_flowmap);
- unsigned struct_atm_pseudoioctl_sz = sizeof(atm_pseudoioctl);
-+#endif
- unsigned struct_audio_buf_info_sz = sizeof(audio_buf_info);
- unsigned struct_audio_device_sz = sizeof(audio_device);
- unsigned struct_audio_encoding_sz = sizeof(audio_encoding);
-@@ -596,7 +602,9 @@ unsigned struct_priq_delete_filter_sz =
- unsigned struct_priq_interface_sz = sizeof(priq_interface);
- unsigned struct_priq_modify_class_sz = sizeof(priq_modify_class);
- unsigned struct_ptmget_sz = sizeof(ptmget);
-+#if __NetBSD_Version__ < 899000000
- unsigned struct_pvctxreq_sz = sizeof(pvctxreq);
-+#endif
- unsigned struct_radio_info_sz = sizeof(radio_info);
- unsigned struct_red_conf_sz = sizeof(red_conf);
- unsigned struct_red_interface_sz = sizeof(red_interface);
-@@ -1414,6 +1422,7 @@ unsigned IOCTL_BIOCSRTIMEOUT = BIOCSRTIM
- unsigned IOCTL_BIOCGRTIMEOUT = BIOCGRTIMEOUT;
- unsigned IOCTL_BIOCGFEEDBACK = BIOCGFEEDBACK;
- unsigned IOCTL_BIOCSFEEDBACK = BIOCSFEEDBACK;
-+#if __NetBSD_Version__ < 899000000
- unsigned IOCTL_SIOCRAWATM = SIOCRAWATM;
- unsigned IOCTL_SIOCATMENA = SIOCATMENA;
- unsigned IOCTL_SIOCATMDIS = SIOCATMDIS;
-@@ -1421,6 +1430,7 @@ unsigned IOCTL_SIOCSPVCTX = SIOCSPVCTX;
- unsigned IOCTL_SIOCGPVCTX = SIOCGPVCTX;
- unsigned IOCTL_SIOCSPVCSIF = SIOCSPVCSIF;
- unsigned IOCTL_SIOCGPVCSIF = SIOCGPVCSIF;
-+#endif
- unsigned IOCTL_GRESADDRS = GRESADDRS;
- unsigned IOCTL_GRESADDRD = GRESADDRD;
- unsigned IOCTL_GREGADDRS = GREGADDRS;
-@@ -1804,8 +1814,10 @@ unsigned IOCTL_MTIOCSLOCATE = MTIOCSLOCA
- unsigned IOCTL_MTIOCHLOCATE = MTIOCHLOCATE;
- unsigned IOCTL_POWER_EVENT_RECVDICT = POWER_EVENT_RECVDICT;
- unsigned IOCTL_POWER_IOC_GET_TYPE = POWER_IOC_GET_TYPE;
-+#if __NetBSD_Version__ < 899000000
- unsigned IOCTL_POWER_IOC_GET_TYPE_WITH_LOSSAGE =
- POWER_IOC_GET_TYPE_WITH_LOSSAGE;
-+#endif
- unsigned IOCTL_RIOCGINFO = RIOCGINFO;
- unsigned IOCTL_RIOCSINFO = RIOCSINFO;
- unsigned IOCTL_RIOCSSRCH = RIOCSSRCH;
diff --git a/lang/compiler-rt/patches/patch-lib_tsan_CMakeLists.txt b/lang/compiler-rt/patches/patch-lib_tsan_CMakeLists.txt
deleted file mode 100644
index 5dcf9d30fb2..00000000000
--- a/lang/compiler-rt/patches/patch-lib_tsan_CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-lib_tsan_CMakeLists.txt,v 1.1 2018/12/09 20:04:40 adam Exp $
-
-https://bugs.llvm.org/show_bug.cgi?id=26651
-
---- lib/tsan/CMakeLists.txt.orig 2018-10-07 11:42:29.392328489 +0000
-+++ lib/tsan/CMakeLists.txt
-@@ -215,7 +215,7 @@ endif()
- # in the base system due to incompatibilities between FreeBSD's and Clang's
- # versions. As a workaround do not use --sysroot=. on FreeBSD until this is
- # addressed.
--if(COMPILER_RT_HAS_SYSROOT_FLAG AND NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
-+if(COMPILER_RT_HAS_SYSROOT_FLAG AND NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD" AND NOT CMAKE_SYSTEM_NAME MATCHES "NetBSD")
- file(GLOB _tsan_generic_sources rtl/tsan*)
- file(GLOB _tsan_platform_sources rtl/tsan*posix* rtl/tsan*mac*
- rtl/tsan*linux*)
diff --git a/lang/libunwind/Makefile b/lang/libunwind/Makefile
index d773ba43324..cbf2d7ad2b9 100644
--- a/lang/libunwind/Makefile
+++ b/lang/libunwind/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.16 2018/12/23 00:11:39 adam Exp $
+# $NetBSD: Makefile,v 1.17 2019/06/02 08:35:56 adam Exp $
-DISTNAME= libunwind-7.0.1.src
+DISTNAME= libunwind-8.0.0.src
PKGNAME= ${DISTNAME:S/.src//}
CATEGORIES= lang devel
MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/
diff --git a/lang/libunwind/buildlink3.mk b/lang/libunwind/buildlink3.mk
index 03fae2a464a..5626f61beb4 100644
--- a/lang/libunwind/buildlink3.mk
+++ b/lang/libunwind/buildlink3.mk
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.5 2018/12/09 20:04:39 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.6 2019/06/02 08:35:56 adam Exp $
BUILDLINK_TREE+= libunwind
.if !defined(LIBUNWIND_BUILDLINK3_MK)
LIBUNWIND_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.libunwind+= libunwind>=7.0.0
+BUILDLINK_API_DEPENDS.libunwind+= libunwind>=8.0.0
BUILDLINK_PKGSRCDIR.libunwind?= ../../lang/libunwind
.include "../../lang/llvm/buildlink3.mk"
diff --git a/lang/libunwind/distinfo b/lang/libunwind/distinfo
index 998eed5394c..e5da4d9df44 100644
--- a/lang/libunwind/distinfo
+++ b/lang/libunwind/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.12 2018/12/23 00:11:39 adam Exp $
+$NetBSD: distinfo,v 1.13 2019/06/02 08:35:56 adam Exp $
-SHA1 (libunwind-7.0.1.src.tar.xz) = 6f6e060026559f3d009cadddbd35a7c8839eda05
-RMD160 (libunwind-7.0.1.src.tar.xz) = 3e786a4838a7f1da9f52865c865b7a094277a64c
-SHA512 (libunwind-7.0.1.src.tar.xz) = e6203e77691c7039496da09e55d27a994a0e273ab0ef10df2f0b9345fead11d855413342a7ccc7b641c3f06053210a8822ba39e9f5b8624384bf1fa456deb969
-Size (libunwind-7.0.1.src.tar.xz) = 79784 bytes
+SHA1 (libunwind-8.0.0.src.tar.xz) = b34682d855c42ae77ada8e9b62af133386855412
+RMD160 (libunwind-8.0.0.src.tar.xz) = 071e95c05207e34b6569725d0d98de6a06cfba82
+SHA512 (libunwind-8.0.0.src.tar.xz) = 8c10e986b4123b6db9f010f053d9c67786fd739d0990146c481f7eaf69ae44fdbcb99dfad9b240b369c3f93be05dfeaf0bd977685360be94e2872ddb04019380
+Size (libunwind-8.0.0.src.tar.xz) = 86484 bytes
diff --git a/lang/llvm/Makefile b/lang/llvm/Makefile
index 0a4ed8d0025..4da991c39f2 100644
--- a/lang/llvm/Makefile
+++ b/lang/llvm/Makefile
@@ -1,11 +1,13 @@
-# $NetBSD: Makefile,v 1.38 2019/04/25 07:33:02 maya Exp $
+# $NetBSD: Makefile,v 1.39 2019/06/02 08:35:55 adam Exp $
#
# when updating this, please also update:
# devel/include-what-you-use
+# devel/lld
# devel/lldb
# devel/polly
# lang/clang
# lang/clang-static-analyzer
+# lang/clang-tools-extra
# lang/compiler-rt
# lang/libcxx
# lang/libcxxabi
@@ -19,9 +21,8 @@
# Always update all */buildlink3.mk to require the latest stable release
# version in BUILDLINK_API_DEPENDS, as there is no backwards compatibility
-DISTNAME= llvm-7.0.1.src
+DISTNAME= llvm-8.0.0.src
PKGNAME= ${DISTNAME:S/.src//}
-PKGREVISION= 2
CATEGORIES= lang devel
MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/
EXTRACT_SUFX= .tar.xz
@@ -44,6 +45,7 @@ CMAKE_ARGS+= -DCMAKE_C_COMPILER=${CC:Q}
CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=${CXX:Q}
CMAKE_ARGS+= -DCMAKE_CXX_LINK_FLAGS=${LDFLAGS:Q}
CMAKE_ARGS+= -DLLVM_BUILD_LLVM_DYLIB=ON
+CMAKE_ARGS+= -DLLVM_INCLUDE_BENCHMARKS=OFF
CMAKE_ARGS+= -DLLVM_INSTALL_UTILS=ON
CMAKE_ARGS+= -DLLVM_LINK_LLVM_DYLIB=ON
diff --git a/lang/llvm/PLIST b/lang/llvm/PLIST
index 86c9dd83894..83ca1a5bf26 100644
--- a/lang/llvm/PLIST
+++ b/lang/llvm/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.10 2019/01/27 06:43:21 maya Exp $
+@comment $NetBSD: PLIST,v 1.11 2019/06/02 08:35:55 adam Exp $
bin/FileCheck
bin/bugpoint
bin/count
@@ -18,11 +18,13 @@ bin/llvm-cov
bin/llvm-cvtres
bin/llvm-cxxdump
bin/llvm-cxxfilt
+bin/llvm-cxxmap
bin/llvm-diff
bin/llvm-dis
bin/llvm-dlltool
bin/llvm-dwarfdump
bin/llvm-dwp
+bin/llvm-elfabi
bin/llvm-exegesis
bin/llvm-extract
bin/llvm-lib
@@ -70,6 +72,7 @@ include/llvm-c/DataTypes.h
include/llvm-c/DebugInfo.h
include/llvm-c/Disassembler.h
include/llvm-c/DisassemblerTypes.h
+include/llvm-c/Error.h
include/llvm-c/ErrorHandling.h
include/llvm-c/ExecutionEngine.h
include/llvm-c/IRReader.h
@@ -77,10 +80,13 @@ include/llvm-c/Initialization.h
include/llvm-c/LinkTimeOptimizer.h
include/llvm-c/Linker.h
include/llvm-c/Object.h
+include/llvm-c/OptRemarks.h
include/llvm-c/OrcBindings.h
include/llvm-c/Support.h
include/llvm-c/Target.h
include/llvm-c/TargetMachine.h
+include/llvm-c/Transforms/AggressiveInstCombine.h
+include/llvm-c/Transforms/Coroutines.h
include/llvm-c/Transforms/IPO.h
include/llvm-c/Transforms/InstCombine.h
include/llvm-c/Transforms/PassManagerBuilder.h
@@ -155,6 +161,7 @@ include/llvm/ADT/Triple.h
include/llvm/ADT/Twine.h
include/llvm/ADT/UniqueVector.h
include/llvm/ADT/VariadicFunction.h
+include/llvm/ADT/bit.h
include/llvm/ADT/edit_distance.h
include/llvm/ADT/ilist.h
include/llvm/ADT/ilist_base.h
@@ -195,10 +202,13 @@ include/llvm/Analysis/DominanceFrontier.h
include/llvm/Analysis/DominanceFrontierImpl.h
include/llvm/Analysis/EHPersonalities.h
include/llvm/Analysis/GlobalsModRef.h
+include/llvm/Analysis/GuardUtils.h
+include/llvm/Analysis/IVDescriptors.h
include/llvm/Analysis/IVUsers.h
include/llvm/Analysis/IndirectCallPromotionAnalysis.h
-include/llvm/Analysis/IndirectCallSiteVisitor.h
+include/llvm/Analysis/IndirectCallVisitor.h
include/llvm/Analysis/InlineCost.h
+include/llvm/Analysis/InstructionPrecedenceTracking.h
include/llvm/Analysis/InstructionSimplify.h
include/llvm/Analysis/Interval.h
include/llvm/Analysis/IntervalIterator.h
@@ -208,6 +218,7 @@ include/llvm/Analysis/LazyBlockFrequencyInfo.h
include/llvm/Analysis/LazyBranchProbabilityInfo.h
include/llvm/Analysis/LazyCallGraph.h
include/llvm/Analysis/LazyValueInfo.h
+include/llvm/Analysis/LegacyDivergenceAnalysis.h
include/llvm/Analysis/Lint.h
include/llvm/Analysis/Loads.h
include/llvm/Analysis/LoopAccessAnalysis.h
@@ -229,6 +240,7 @@ include/llvm/Analysis/ObjCARCAnalysisUtils.h
include/llvm/Analysis/ObjCARCInstKind.h
include/llvm/Analysis/OptimizationRemarkEmitter.h
include/llvm/Analysis/OrderedBasicBlock.h
+include/llvm/Analysis/OrderedInstructions.h
include/llvm/Analysis/PHITransAddr.h
include/llvm/Analysis/Passes.h
include/llvm/Analysis/PhiValues.h
@@ -247,6 +259,8 @@ include/llvm/Analysis/ScalarEvolutionExpressions.h
include/llvm/Analysis/ScalarEvolutionNormalization.h
include/llvm/Analysis/ScopedNoAliasAA.h
include/llvm/Analysis/SparsePropagation.h
+include/llvm/Analysis/StackSafetyAnalysis.h
+include/llvm/Analysis/SyncDependenceAnalysis.h
include/llvm/Analysis/SyntheticCountsUtils.h
include/llvm/Analysis/TargetFolder.h
include/llvm/Analysis/TargetLibraryInfo.def
@@ -263,6 +277,7 @@ include/llvm/Analysis/ValueTracking.h
include/llvm/Analysis/VectorUtils.h
include/llvm/AsmParser/Parser.h
include/llvm/AsmParser/SlotMapping.h
+include/llvm/BinaryFormat/AMDGPUMetadataVerifier.h
include/llvm/BinaryFormat/COFF.h
include/llvm/BinaryFormat/Dwarf.def
include/llvm/BinaryFormat/Dwarf.h
@@ -276,6 +291,7 @@ include/llvm/BinaryFormat/ELFRelocs/AVR.def
include/llvm/BinaryFormat/ELFRelocs/BPF.def
include/llvm/BinaryFormat/ELFRelocs/Hexagon.def
include/llvm/BinaryFormat/ELFRelocs/Lanai.def
+include/llvm/BinaryFormat/ELFRelocs/MSP430.def
include/llvm/BinaryFormat/ELFRelocs/Mips.def
include/llvm/BinaryFormat/ELFRelocs/PowerPC.def
include/llvm/BinaryFormat/ELFRelocs/PowerPC64.def
@@ -287,6 +303,11 @@ include/llvm/BinaryFormat/ELFRelocs/x86_64.def
include/llvm/BinaryFormat/MachO.def
include/llvm/BinaryFormat/MachO.h
include/llvm/BinaryFormat/Magic.h
+include/llvm/BinaryFormat/MsgPack.def
+include/llvm/BinaryFormat/MsgPack.h
+include/llvm/BinaryFormat/MsgPackReader.h
+include/llvm/BinaryFormat/MsgPackTypes.h
+include/llvm/BinaryFormat/MsgPackWriter.h
include/llvm/BinaryFormat/Wasm.h
include/llvm/BinaryFormat/WasmRelocs.def
include/llvm/Bitcode/BitCodes.h
@@ -299,8 +320,10 @@ include/llvm/Bitcode/LLVMBitCodes.h
include/llvm/CodeGen/AccelTable.h
include/llvm/CodeGen/Analysis.h
include/llvm/CodeGen/AsmPrinter.h
+include/llvm/CodeGen/AsmPrinterHandler.h
include/llvm/CodeGen/AtomicExpandUtils.h
include/llvm/CodeGen/BasicTTIImpl.h
+include/llvm/CodeGen/BuiltinGCs.h
include/llvm/CodeGen/CalcSpillWeights.h
include/llvm/CodeGen/CallingConvLower.h
include/llvm/CodeGen/CommandFlags.inc
@@ -309,6 +332,8 @@ include/llvm/CodeGen/DAGCombine.h
include/llvm/CodeGen/DFAPacketizer.h
include/llvm/CodeGen/DIE.h
include/llvm/CodeGen/DIEValue.def
+include/llvm/CodeGen/DbgEntityHistoryCalculator.h
+include/llvm/CodeGen/DebugHandlerBase.h
include/llvm/CodeGen/DwarfStringPoolEntry.h
include/llvm/CodeGen/EdgeBundles.h
include/llvm/CodeGen/ExecutionDomainFix.h
@@ -319,12 +344,14 @@ include/llvm/CodeGen/FunctionLoweringInfo.h
include/llvm/CodeGen/GCMetadata.h
include/llvm/CodeGen/GCMetadataPrinter.h
include/llvm/CodeGen/GCStrategy.h
-include/llvm/CodeGen/GCs.h
+include/llvm/CodeGen/GlobalISel/CSEInfo.h
+include/llvm/CodeGen/GlobalISel/CSEMIRBuilder.h
include/llvm/CodeGen/GlobalISel/CallLowering.h
include/llvm/CodeGen/GlobalISel/Combiner.h
include/llvm/CodeGen/GlobalISel/CombinerHelper.h
include/llvm/CodeGen/GlobalISel/CombinerInfo.h
include/llvm/CodeGen/GlobalISel/ConstantFoldingMIRBuilder.h
+include/llvm/CodeGen/GlobalISel/GISelChangeObserver.h
include/llvm/CodeGen/GlobalISel/GISelWorkList.h
include/llvm/CodeGen/GlobalISel/IRTranslator.h
include/llvm/CodeGen/GlobalISel/InstructionSelect.h
@@ -387,6 +414,7 @@ include/llvm/CodeGen/MachineOperand.h
include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h
include/llvm/CodeGen/MachineOutliner.h
include/llvm/CodeGen/MachinePassRegistry.h
+include/llvm/CodeGen/MachinePipeliner.h
include/llvm/CodeGen/MachinePostDominators.h
include/llvm/CodeGen/MachineRegionInfo.h
include/llvm/CodeGen/MachineRegisterInfo.h
@@ -492,6 +520,7 @@ include/llvm/DebugInfo/CodeView/SymbolDeserializer.h
include/llvm/DebugInfo/CodeView/SymbolDumpDelegate.h
include/llvm/DebugInfo/CodeView/SymbolDumper.h
include/llvm/DebugInfo/CodeView/SymbolRecord.h
+include/llvm/DebugInfo/CodeView/SymbolRecordHelpers.h
include/llvm/DebugInfo/CodeView/SymbolRecordMapping.h
include/llvm/DebugInfo/CodeView/SymbolSerializer.h
include/llvm/DebugInfo/CodeView/SymbolVisitorCallbackPipeline.h
@@ -504,6 +533,7 @@ include/llvm/DebugInfo/CodeView/TypeHashing.h
include/llvm/DebugInfo/CodeView/TypeIndex.h
include/llvm/DebugInfo/CodeView/TypeIndexDiscovery.h
include/llvm/DebugInfo/CodeView/TypeRecord.h
+include/llvm/DebugInfo/CodeView/TypeRecordHelpers.h
include/llvm/DebugInfo/CodeView/TypeRecordMapping.h
include/llvm/DebugInfo/CodeView/TypeStreamMerger.h
include/llvm/DebugInfo/CodeView/TypeSymbolEmitter.h
@@ -550,6 +580,7 @@ include/llvm/DebugInfo/MSF/MappedBlockStream.h
include/llvm/DebugInfo/PDB/ConcreteSymbolEnumerator.h
include/llvm/DebugInfo/PDB/DIA/DIADataStream.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumDebugStreams.h
+include/llvm/DebugInfo/PDB/DIA/DIAEnumFrameData.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumInjectedSources.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumLineNumbers.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumSectionContribs.h
@@ -557,6 +588,7 @@ include/llvm/DebugInfo/PDB/DIA/DIAEnumSourceFiles.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h
include/llvm/DebugInfo/PDB/DIA/DIAEnumTables.h
include/llvm/DebugInfo/PDB/DIA/DIAError.h
+include/llvm/DebugInfo/PDB/DIA/DIAFrameData.h
include/llvm/DebugInfo/PDB/DIA/DIAInjectedSource.h
include/llvm/DebugInfo/PDB/DIA/DIALineNumber.h
include/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h
@@ -569,6 +601,7 @@ include/llvm/DebugInfo/PDB/DIA/DIAUtils.h
include/llvm/DebugInfo/PDB/GenericError.h
include/llvm/DebugInfo/PDB/IPDBDataStream.h
include/llvm/DebugInfo/PDB/IPDBEnumChildren.h
+include/llvm/DebugInfo/PDB/IPDBFrameData.h
include/llvm/DebugInfo/PDB/IPDBInjectedSource.h
include/llvm/DebugInfo/PDB/IPDBLineNumber.h
include/llvm/DebugInfo/PDB/IPDBRawSymbol.h
@@ -592,14 +625,22 @@ include/llvm/DebugInfo/PDB/Native/InfoStream.h
include/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h
include/llvm/DebugInfo/PDB/Native/ModuleDebugStream.h
include/llvm/DebugInfo/PDB/Native/NamedStreamMap.h
-include/llvm/DebugInfo/PDB/Native/NativeBuiltinSymbol.h
include/llvm/DebugInfo/PDB/Native/NativeCompilandSymbol.h
+include/llvm/DebugInfo/PDB/Native/NativeEnumGlobals.h
include/llvm/DebugInfo/PDB/Native/NativeEnumModules.h
-include/llvm/DebugInfo/PDB/Native/NativeEnumSymbol.h
include/llvm/DebugInfo/PDB/Native/NativeEnumTypes.h
include/llvm/DebugInfo/PDB/Native/NativeExeSymbol.h
include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h
include/llvm/DebugInfo/PDB/Native/NativeSession.h
+include/llvm/DebugInfo/PDB/Native/NativeSymbolEnumerator.h
+include/llvm/DebugInfo/PDB/Native/NativeTypeArray.h
+include/llvm/DebugInfo/PDB/Native/NativeTypeBuiltin.h
+include/llvm/DebugInfo/PDB/Native/NativeTypeEnum.h
+include/llvm/DebugInfo/PDB/Native/NativeTypeFunctionSig.h
+include/llvm/DebugInfo/PDB/Native/NativeTypePointer.h
+include/llvm/DebugInfo/PDB/Native/NativeTypeTypedef.h
+include/llvm/DebugInfo/PDB/Native/NativeTypeUDT.h
+include/llvm/DebugInfo/PDB/Native/NativeTypeVTShape.h
include/llvm/DebugInfo/PDB/Native/PDBFile.h
include/llvm/DebugInfo/PDB/Native/PDBFileBuilder.h
include/llvm/DebugInfo/PDB/Native/PDBStringTable.h
@@ -608,6 +649,7 @@ include/llvm/DebugInfo/PDB/Native/PublicsStream.h
include/llvm/DebugInfo/PDB/Native/RawConstants.h
include/llvm/DebugInfo/PDB/Native/RawError.h
include/llvm/DebugInfo/PDB/Native/RawTypes.h
+include/llvm/DebugInfo/PDB/Native/SymbolCache.h
include/llvm/DebugInfo/PDB/Native/SymbolStream.h
include/llvm/DebugInfo/PDB/Native/TpiHashing.h
include/llvm/DebugInfo/PDB/Native/TpiStream.h
@@ -653,7 +695,13 @@ include/llvm/DebugInfo/PDB/UDTLayout.h
include/llvm/DebugInfo/Symbolize/DIPrinter.h
include/llvm/DebugInfo/Symbolize/SymbolizableModule.h
include/llvm/DebugInfo/Symbolize/Symbolize.h
+include/llvm/Demangle/Compiler.h
include/llvm/Demangle/Demangle.h
+include/llvm/Demangle/ItaniumDemangle.h
+include/llvm/Demangle/MicrosoftDemangle.h
+include/llvm/Demangle/MicrosoftDemangleNodes.h
+include/llvm/Demangle/StringView.h
+include/llvm/Demangle/Utility.h
include/llvm/ExecutionEngine/ExecutionEngine.h
include/llvm/ExecutionEngine/GenericValue.h
include/llvm/ExecutionEngine/Interpreter.h
@@ -670,10 +718,12 @@ include/llvm/ExecutionEngine/Orc/GlobalMappingLayer.h
include/llvm/ExecutionEngine/Orc/IRCompileLayer.h
include/llvm/ExecutionEngine/Orc/IRTransformLayer.h
include/llvm/ExecutionEngine/Orc/IndirectionUtils.h
+include/llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h
include/llvm/ExecutionEngine/Orc/LLJIT.h
include/llvm/ExecutionEngine/Orc/LambdaResolver.h
include/llvm/ExecutionEngine/Orc/Layer.h
include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h
+include/llvm/ExecutionEngine/Orc/LazyReexports.h
include/llvm/ExecutionEngine/Orc/Legacy.h
include/llvm/ExecutionEngine/Orc/NullResolver.h
include/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h
@@ -688,6 +738,7 @@ include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h
include/llvm/ExecutionEngine/Orc/RawByteChannel.h
include/llvm/ExecutionEngine/Orc/RemoteObjectLayer.h
include/llvm/ExecutionEngine/Orc/SymbolStringPool.h
+include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h
include/llvm/ExecutionEngine/OrcMCJITReplacement.h
include/llvm/ExecutionEngine/RTDyldMemoryManager.h
include/llvm/ExecutionEngine/RuntimeDyld.h
@@ -707,6 +758,7 @@ include/llvm/IR/Attributes.td
include/llvm/IR/AutoUpgrade.h
include/llvm/IR/BasicBlock.h
include/llvm/IR/CFG.h
+include/llvm/IR/CFGDiff.h
include/llvm/IR/CallSite.h
include/llvm/IR/CallingConv.h
include/llvm/IR/Comdat.h
@@ -758,6 +810,7 @@ include/llvm/IR/IntrinsicsHexagon.td
include/llvm/IR/IntrinsicsMips.td
include/llvm/IR/IntrinsicsNVVM.td
include/llvm/IR/IntrinsicsPowerPC.td
+include/llvm/IR/IntrinsicsRISCV.td
include/llvm/IR/IntrinsicsSystemZ.td
include/llvm/IR/IntrinsicsWebAssembly.td
include/llvm/IR/IntrinsicsX86.td
@@ -778,8 +831,10 @@ include/llvm/IR/NoFolder.h
include/llvm/IR/OperandTraits.h
include/llvm/IR/Operator.h
include/llvm/IR/OptBisect.h
+include/llvm/IR/PassInstrumentation.h
include/llvm/IR/PassManager.h
include/llvm/IR/PassManagerInternal.h
+include/llvm/IR/PassTimingInfo.h
include/llvm/IR/PatternMatch.h
include/llvm/IR/PredIteratorCache.h
include/llvm/IR/ProfileSummary.h
@@ -789,7 +844,6 @@ include/llvm/IR/Statepoint.h
include/llvm/IR/SymbolTableListTraits.h
include/llvm/IR/TrackingMDRef.h
include/llvm/IR/Type.h
-include/llvm/IR/TypeBuilder.h
include/llvm/IR/TypeFinder.h
include/llvm/IR/Use.h
include/llvm/IR/UseListOrder.h
@@ -806,6 +860,7 @@ include/llvm/LTO/Caching.h
include/llvm/LTO/Config.h
include/llvm/LTO/LTO.h
include/llvm/LTO/LTOBackend.h
+include/llvm/LTO/SummaryBasedOptimizations.h
include/llvm/LTO/legacy/LTOCodeGenerator.h
include/llvm/LTO/legacy/LTOModule.h
include/llvm/LTO/legacy/ThinLTOCodeGenerator.h
@@ -891,6 +946,25 @@ include/llvm/MC/MachineLocation.h
include/llvm/MC/SectionKind.h
include/llvm/MC/StringTableBuilder.h
include/llvm/MC/SubtargetFeature.h
+include/llvm/MCA/Context.h
+include/llvm/MCA/HWEventListener.h
+include/llvm/MCA/HardwareUnits/HardwareUnit.h
+include/llvm/MCA/HardwareUnits/LSUnit.h
+include/llvm/MCA/HardwareUnits/RegisterFile.h
+include/llvm/MCA/HardwareUnits/ResourceManager.h
+include/llvm/MCA/HardwareUnits/RetireControlUnit.h
+include/llvm/MCA/HardwareUnits/Scheduler.h
+include/llvm/MCA/InstrBuilder.h
+include/llvm/MCA/Instruction.h
+include/llvm/MCA/Pipeline.h
+include/llvm/MCA/SourceMgr.h
+include/llvm/MCA/Stages/DispatchStage.h
+include/llvm/MCA/Stages/EntryStage.h
+include/llvm/MCA/Stages/ExecuteStage.h
+include/llvm/MCA/Stages/InstructionTables.h
+include/llvm/MCA/Stages/RetireStage.h
+include/llvm/MCA/Stages/Stage.h
+include/llvm/MCA/Support.h
include/llvm/Object/Archive.h
include/llvm/Object/ArchiveWriter.h
include/llvm/Object/Binary.h
@@ -941,6 +1015,7 @@ include/llvm/PassRegistry.h
include/llvm/PassSupport.h
include/llvm/Passes/PassBuilder.h
include/llvm/Passes/PassPlugin.h
+include/llvm/Passes/StandardInstrumentations.h
include/llvm/ProfileData/Coverage/CoverageMapping.h
include/llvm/ProfileData/Coverage/CoverageMappingReader.h
include/llvm/ProfileData/Coverage/CoverageMappingWriter.h
@@ -954,12 +1029,14 @@ include/llvm/ProfileData/SampleProf.h
include/llvm/ProfileData/SampleProfReader.h
include/llvm/ProfileData/SampleProfWriter.h
include/llvm/Support/AArch64TargetParser.def
+include/llvm/Support/AArch64TargetParser.h
include/llvm/Support/AMDGPUMetadata.h
include/llvm/Support/AMDHSAKernelDescriptor.h
include/llvm/Support/ARMAttributeParser.h
include/llvm/Support/ARMBuildAttributes.h
include/llvm/Support/ARMEHABI.h
include/llvm/Support/ARMTargetParser.def
+include/llvm/Support/ARMTargetParser.h
include/llvm/Support/ARMWinEH.h
include/llvm/Support/AlignOf.h
include/llvm/Support/Allocator.h
@@ -976,7 +1053,9 @@ include/llvm/Support/BinaryStreamRef.h
include/llvm/Support/BinaryStreamWriter.h
include/llvm/Support/BlockFrequency.h
include/llvm/Support/BranchProbability.h
+include/llvm/Support/BuryPointer.h
include/llvm/Support/CBindingWrapping.h
+include/llvm/Support/CFGUpdate.h
include/llvm/Support/COM.h
include/llvm/Support/CachePruning.h
include/llvm/Support/Capacity.h
@@ -1004,6 +1083,7 @@ include/llvm/Support/Errno.h
include/llvm/Support/Error.h
include/llvm/Support/ErrorHandling.h
include/llvm/Support/ErrorOr.h
+include/llvm/Support/FileCheck.h
include/llvm/Support/FileOutputBuffer.h
include/llvm/Support/FileSystem.h
include/llvm/Support/FileUtilities.h
@@ -1020,6 +1100,7 @@ include/llvm/Support/GlobPattern.h
include/llvm/Support/GraphWriter.h
include/llvm/Support/Host.h
include/llvm/Support/InitLLVM.h
+include/llvm/Support/ItaniumManglingCanonicalizer.h
include/llvm/Support/JSON.h
include/llvm/Support/JamCRC.h
include/llvm/Support/KnownBits.h
@@ -1030,6 +1111,7 @@ include/llvm/Support/Locale.h
include/llvm/Support/LockFileManager.h
include/llvm/Support/LowLevelTypeImpl.h
include/llvm/Support/MD5.h
+include/llvm/Support/MSVCErrorWorkarounds.h
include/llvm/Support/MachineValueType.h
include/llvm/Support/ManagedStatic.h
include/llvm/Support/MathExtras.h
@@ -1070,6 +1152,7 @@ include/llvm/Support/SpecialCaseList.h
include/llvm/Support/StringPool.h
include/llvm/Support/StringSaver.h
include/llvm/Support/SwapByteOrder.h
+include/llvm/Support/SymbolRemappingReader.h
include/llvm/Support/SystemUtils.h
include/llvm/Support/TarWriter.h
include/llvm/Support/TargetOpcodes.def
@@ -1091,6 +1174,7 @@ include/llvm/Support/UniqueLock.h
include/llvm/Support/VCSRevision.h
include/llvm/Support/Valgrind.h
include/llvm/Support/VersionTuple.h
+include/llvm/Support/VirtualFileSystem.h
include/llvm/Support/Watchdog.h
include/llvm/Support/Win64EH.h
include/llvm/Support/WindowsError.h
@@ -1127,10 +1211,13 @@ include/llvm/Target/TargetItinerary.td
include/llvm/Target/TargetLoweringObjectFile.h
include/llvm/Target/TargetMachine.h
include/llvm/Target/TargetOptions.h
+include/llvm/Target/TargetPfmCounters.td
include/llvm/Target/TargetSchedule.td
include/llvm/Target/TargetSelectionDAG.td
include/llvm/Testing/Support/Error.h
include/llvm/Testing/Support/SupportHelpers.h
+include/llvm/TextAPI/ELF/ELFStub.h
+include/llvm/TextAPI/ELF/TBEHandler.h
include/llvm/ToolDrivers/llvm-dlltool/DlltoolDriver.h
include/llvm/ToolDrivers/llvm-lib/LibDriver.h
include/llvm/Transforms/AggressiveInstCombine/AggressiveInstCombine.h
@@ -1149,6 +1236,7 @@ include/llvm/Transforms/IPO/FunctionImport.h
include/llvm/Transforms/IPO/GlobalDCE.h
include/llvm/Transforms/IPO/GlobalOpt.h
include/llvm/Transforms/IPO/GlobalSplit.h
+include/llvm/Transforms/IPO/HotColdSplitting.h
include/llvm/Transforms/IPO/InferFunctionAttrs.h
include/llvm/Transforms/IPO/Inliner.h
include/llvm/Transforms/IPO/Internalize.h
@@ -1166,9 +1254,12 @@ include/llvm/Transforms/InstCombine/InstCombineWorklist.h
include/llvm/Transforms/Instrumentation.h
include/llvm/Transforms/Instrumentation/BoundsChecking.h
include/llvm/Transforms/Instrumentation/CGProfile.h
+include/llvm/Transforms/Instrumentation/ControlHeightReduction.h
include/llvm/Transforms/Instrumentation/GCOVProfiler.h
include/llvm/Transforms/Instrumentation/InstrProfiling.h
+include/llvm/Transforms/Instrumentation/MemorySanitizer.h
include/llvm/Transforms/Instrumentation/PGOInstrumentation.h
+include/llvm/Transforms/Instrumentation/ThreadSanitizer.h
include/llvm/Transforms/ObjCARC.h
include/llvm/Transforms/Scalar.h
include/llvm/Transforms/Scalar/ADCE.h
@@ -1209,6 +1300,7 @@ include/llvm/Transforms/Scalar/LoopUnrollPass.h
include/llvm/Transforms/Scalar/LowerAtomic.h
include/llvm/Transforms/Scalar/LowerExpectIntrinsic.h
include/llvm/Transforms/Scalar/LowerGuardIntrinsic.h
+include/llvm/Transforms/Scalar/MakeGuardsExplicit.h
include/llvm/Transforms/Scalar/MemCpyOptimizer.h
include/llvm/Transforms/Scalar/MergedLoadStoreMotion.h
include/llvm/Transforms/Scalar/NaryReassociate.h
@@ -1218,12 +1310,14 @@ include/llvm/Transforms/Scalar/Reassociate.h
include/llvm/Transforms/Scalar/RewriteStatepointsForGC.h
include/llvm/Transforms/Scalar/SCCP.h
include/llvm/Transforms/Scalar/SROA.h
+include/llvm/Transforms/Scalar/Scalarizer.h
include/llvm/Transforms/Scalar/SimpleLoopUnswitch.h
include/llvm/Transforms/Scalar/SimplifyCFG.h
include/llvm/Transforms/Scalar/Sink.h
include/llvm/Transforms/Scalar/SpeculateAroundPHIs.h
include/llvm/Transforms/Scalar/SpeculativeExecution.h
include/llvm/Transforms/Scalar/TailRecursionElimination.h
+include/llvm/Transforms/Scalar/WarnMissedTransforms.h
include/llvm/Transforms/Utils.h
include/llvm/Transforms/Utils/ASanStackFrameLayout.h
include/llvm/Transforms/Utils/AddDiscriminators.h
@@ -1232,6 +1326,7 @@ include/llvm/Transforms/Utils/BreakCriticalEdges.h
include/llvm/Transforms/Utils/BuildLibCalls.h
include/llvm/Transforms/Utils/BypassSlowDivision.h
include/llvm/Transforms/Utils/CallPromotionUtils.h
+include/llvm/Transforms/Utils/CanonicalizeAliases.h
include/llvm/Transforms/Utils/Cloning.h
include/llvm/Transforms/Utils/CodeExtractor.h
include/llvm/Transforms/Utils/CtorUtils.h
@@ -1241,6 +1336,7 @@ include/llvm/Transforms/Utils/Evaluator.h
include/llvm/Transforms/Utils/FunctionComparator.h
include/llvm/Transforms/Utils/FunctionImportUtils.h
include/llvm/Transforms/Utils/GlobalStatus.h
+include/llvm/Transforms/Utils/GuardUtils.h
include/llvm/Transforms/Utils/ImportedFunctionsInliningStatistics.h
include/llvm/Transforms/Utils/IntegerDivision.h
include/llvm/Transforms/Utils/LCSSA.h
@@ -1255,7 +1351,6 @@ include/llvm/Transforms/Utils/LowerMemIntrinsics.h
include/llvm/Transforms/Utils/Mem2Reg.h
include/llvm/Transforms/Utils/ModuleUtils.h
include/llvm/Transforms/Utils/NameAnonGlobals.h
-include/llvm/Transforms/Utils/OrderedInstructions.h
include/llvm/Transforms/Utils/PredicateInfo.h
include/llvm/Transforms/Utils/PromoteMemToReg.h
include/llvm/Transforms/Utils/SSAUpdater.h
@@ -1271,6 +1366,7 @@ include/llvm/Transforms/Utils/UnrollLoop.h
include/llvm/Transforms/Utils/VNCoercion.h
include/llvm/Transforms/Utils/ValueMapper.h
include/llvm/Transforms/Vectorize.h
+include/llvm/Transforms/Vectorize/LoadStoreVectorizer.h
include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
include/llvm/Transforms/Vectorize/LoopVectorize.h
include/llvm/Transforms/Vectorize/SLPVectorizer.h
@@ -1278,14 +1374,23 @@ include/llvm/WindowsManifest/WindowsManifestMerger.h
include/llvm/WindowsResource/ResourceProcessor.h
include/llvm/WindowsResource/ResourceScriptToken.h
include/llvm/WindowsResource/ResourceScriptTokenList.h
+include/llvm/XRay/BlockIndexer.h
+include/llvm/XRay/BlockPrinter.h
+include/llvm/XRay/BlockVerifier.h
+include/llvm/XRay/FDRLogBuilder.h
+include/llvm/XRay/FDRRecordConsumer.h
+include/llvm/XRay/FDRRecordProducer.h
+include/llvm/XRay/FDRRecords.h
+include/llvm/XRay/FDRTraceExpander.h
+include/llvm/XRay/FDRTraceWriter.h
+include/llvm/XRay/FileHeaderReader.h
include/llvm/XRay/Graph.h
include/llvm/XRay/InstrumentationMap.h
+include/llvm/XRay/Profile.h
+include/llvm/XRay/RecordPrinter.h
include/llvm/XRay/Trace.h
include/llvm/XRay/XRayRecord.h
include/llvm/XRay/YAMLXRayRecord.h
-lib/BugpointPasses.${SOEXT}
-lib/LLVMHello.${SOEXT}
-lib/TestPlugin.${SOEXT}
lib/cmake/llvm/AddLLVM.cmake
lib/cmake/llvm/AddLLVMDefinitions.cmake
lib/cmake/llvm/AddOCaml.cmake
@@ -1314,7 +1419,7 @@ lib/cmake/llvm/LLVMProcessSources.cmake
lib/cmake/llvm/TableGen.cmake
lib/cmake/llvm/VersionFromVCS.cmake
lib/libLLVM-${PKGVERSION}.${SOEXT}
-lib/libLLVM-7.${SOEXT}
+lib/libLLVM-8.${SOEXT}
lib/libLLVM.${SOEXT}
${PLIST.AArch64}lib/libLLVMAArch64AsmParser.a
${PLIST.AArch64}lib/libLLVMAArch64AsmPrinter.a
@@ -1373,23 +1478,26 @@ lib/libLLVMInstCombine.a
lib/libLLVMInstrumentation.a
lib/libLLVMInterpreter.a
lib/libLLVMLTO.a
+${PLIST.Lanai}lib/libLLVMLanaiAsmParser.a
+${PLIST.Lanai}lib/libLLVMLanaiAsmPrinter.a
+${PLIST.Lanai}lib/libLLVMLanaiCodeGen.a
+${PLIST.Lanai}lib/libLLVMLanaiDesc.a
+${PLIST.Lanai}lib/libLLVMLanaiDisassembler.a
+${PLIST.Lanai}lib/libLLVMLanaiInfo.a
lib/libLLVMLibDriver.a
lib/libLLVMLineEditor.a
lib/libLLVMLinker.a
lib/libLLVMMC.a
+lib/libLLVMMCA.a
lib/libLLVMMCDisassembler.a
lib/libLLVMMCJIT.a
lib/libLLVMMCParser.a
lib/libLLVMMIRParser.a
-${PLIST.Lanai}lib/libLLVMLanaiAsmParser.a
-${PLIST.Lanai}lib/libLLVMLanaiAsmPrinter.a
-${PLIST.Lanai}lib/libLLVMLanaiCodeGen.a
-${PLIST.Lanai}lib/libLLVMLanaiDesc.a
-${PLIST.Lanai}lib/libLLVMLanaiDisassembler.a
-${PLIST.Lanai}lib/libLLVMLanaiInfo.a
+${PLIST.MSP430}lib/libLLVMMSP430AsmParser.a
${PLIST.MSP430}lib/libLLVMMSP430AsmPrinter.a
${PLIST.MSP430}lib/libLLVMMSP430CodeGen.a
${PLIST.MSP430}lib/libLLVMMSP430Desc.a
+${PLIST.MSP430}lib/libLLVMMSP430Disassembler.a
${PLIST.MSP430}lib/libLLVMMSP430Info.a
${PLIST.Mips}lib/libLLVMMipsAsmParser.a
${PLIST.Mips}lib/libLLVMMipsAsmPrinter.a
@@ -1404,6 +1512,7 @@ ${PLIST.NVPTX}lib/libLLVMNVPTXInfo.a
lib/libLLVMObjCARCOpts.a
lib/libLLVMObject.a
lib/libLLVMObjectYAML.a
+lib/libLLVMOptRemarks.a
lib/libLLVMOption.a
lib/libLLVMOrcJIT.a
lib/libLLVMPasses.a
@@ -1433,6 +1542,7 @@ ${PLIST.SystemZ}lib/libLLVMSystemZDisassembler.a
${PLIST.SystemZ}lib/libLLVMSystemZInfo.a
lib/libLLVMTableGen.a
lib/libLLVMTarget.a
+lib/libLLVMTextAPI.a
lib/libLLVMTransformUtils.a
lib/libLLVMVectorize.a
lib/libLLVMWindowsManifest.a
@@ -1451,7 +1561,9 @@ ${PLIST.XCore}lib/libLLVMXCoreInfo.a
lib/libLLVMXRay.a
lib/libLLVMipo.a
lib/libLTO.${SOEXT}
-${PLIST.notdylib}lib/libLTO.${SOEXT}.7
+${PLIST.notdylib}lib/libLTO.${SOEXT}.8
+lib/libOptRemarks.so
+${PLIST.notdylib}lib/libOptRemarks.${SOEXT}.8
share/opt-viewer/opt-diff.py
share/opt-viewer/opt-stats.py
share/opt-viewer/opt-viewer.py
diff --git a/lang/llvm/buildlink3.mk b/lang/llvm/buildlink3.mk
index d9f8d4aa9d5..455055f86f2 100644
--- a/lang/llvm/buildlink3.mk
+++ b/lang/llvm/buildlink3.mk
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.7 2018/12/09 20:04:38 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.8 2019/06/02 08:35:55 adam Exp $
BUILDLINK_TREE+= llvm
.if !defined(LLVM_BUILDLINK3_MK)
LLVM_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.llvm+= llvm>=7.0.0
+BUILDLINK_API_DEPENDS.llvm+= llvm>=8.0.0
BUILDLINK_PKGSRCDIR.llvm?= ../../lang/llvm
LLVM_CONFIG_PATH?= ${BUILDLINK_PREFIX.llvm}/bin/llvm-config
diff --git a/lang/llvm/distinfo b/lang/llvm/distinfo
index 3304f90cc15..990ea789f01 100644
--- a/lang/llvm/distinfo
+++ b/lang/llvm/distinfo
@@ -1,14 +1,14 @@
-$NetBSD: distinfo,v 1.19 2018/12/23 00:11:39 adam Exp $
+$NetBSD: distinfo,v 1.20 2019/06/02 08:35:55 adam Exp $
-SHA1 (llvm-7.0.1.src.tar.xz) = f97632fcc3186eb0d396492ef8acfc807648580f
-RMD160 (llvm-7.0.1.src.tar.xz) = dae96c6f85afb60e73564dc40d02171d01ffdb8f
-SHA512 (llvm-7.0.1.src.tar.xz) = ac43a3cb71a53deb55e3693653847cf20bf6f5d9056f224e6956c96d63bc59ebee9404f088eec9cabe65337b4607a905ef931354b373cf64e0004c6905a6b5df
-Size (llvm-7.0.1.src.tar.xz) = 28311056 bytes
+SHA1 (llvm-8.0.0.src.tar.xz) = 0689345d73911e24a07b24cc82dab4fb46b8c323
+RMD160 (llvm-8.0.0.src.tar.xz) = a0740d83ae981506ddb7cfd389cafc52b7f317b2
+SHA512 (llvm-8.0.0.src.tar.xz) = 1602343b451b964f5d8c2d6b0654d89384c80d45883498c5f0e2f4196168dd4a1ed2a4dadb752076020243df42ffe46cb31d82ffc145d8e5874163cbb9686a1f
+Size (llvm-8.0.0.src.tar.xz) = 30503732 bytes
SHA1 (patch-CMakeLists.txt) = 78e2dab2bf73f7e466ca2788fe6444e39b4ebd80
-SHA1 (patch-cmake_config-ix.cmake) = a345420169e4066e22d28ca6ad10840e83ccfa76
+SHA1 (patch-cmake_config-ix.cmake) = 61967c51d724a76867e1c59f721d1ac0e4815023
SHA1 (patch-cmake_modules_AddLLVM.cmake) = 31d4f47f03bef021a24d53147c1b66abd64e1d87
SHA1 (patch-cmake_modules_CheckAtomic.cmake) = 51e4fdf3bc24b50fc4d4bfa1ec5ba6c82ef946b4
-SHA1 (patch-cmake_modules_HandleLLVMOptions.cmake) = 271e6f5a8cebf8162c4e3b758e96f451b434269b
+SHA1 (patch-cmake_modules_HandleLLVMOptions.cmake) = e6cb9bed8bc3e3793824b65291fd18827b4ffa63
SHA1 (patch-include_llvm-c_DataTypes.h) = 025c035e0e10871727391bd58936bd67b3e58244
SHA1 (patch-include_llvm_Analysis_ConstantFolding.h) = 56b9374da236c346565897977040255b9766cab8
-SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 45278d8acc6daa3d36a1a7b15e2e3b9a75a218e6
+SHA1 (patch-tools_llvm-shlib_CMakeLists.txt) = 6c74713de3f953cbe323b3a83ca8e8d66f76f6e8
diff --git a/lang/llvm/patches/patch-cmake_config-ix.cmake b/lang/llvm/patches/patch-cmake_config-ix.cmake
index b256675c2fe..a34e3686a95 100644
--- a/lang/llvm/patches/patch-cmake_config-ix.cmake
+++ b/lang/llvm/patches/patch-cmake_config-ix.cmake
@@ -1,14 +1,14 @@
-$NetBSD: patch-cmake_config-ix.cmake,v 1.3 2018/08/07 10:44:50 adam Exp $
+$NetBSD: patch-cmake_config-ix.cmake,v 1.4 2019/06/02 08:35:55 adam Exp $
Do not generate invalid llvm-config in pkgsrc.
---- cmake/config-ix.cmake.orig 2018-01-02 17:53:08.000000000 +0000
+--- cmake/config-ix.cmake.orig 2018-11-26 00:03:39.000000000 +0000
+++ cmake/config-ix.cmake
-@@ -153,7 +153,7 @@ if(NOT LLVM_USE_SANITIZER MATCHES "Memor
+@@ -129,7 +129,7 @@ if(NOT LLVM_USE_SANITIZER MATCHES "Memor
endif()
if(LLVM_ENABLE_TERMINFO)
set(HAVE_TERMINFO 0)
-- foreach(library tinfo terminfo curses ncurses ncursesw)
+- foreach(library terminfo tinfo curses ncurses ncursesw)
+ foreach(library terminfo curses ncurses ncursesw tinfo)
string(TOUPPER ${library} library_suffix)
check_library_exists(${library} setupterm "" HAVE_TERMINFO_${library_suffix})
diff --git a/lang/llvm/patches/patch-cmake_modules_HandleLLVMOptions.cmake b/lang/llvm/patches/patch-cmake_modules_HandleLLVMOptions.cmake
index c36ab0c0abf..e0cb09f90ad 100644
--- a/lang/llvm/patches/patch-cmake_modules_HandleLLVMOptions.cmake
+++ b/lang/llvm/patches/patch-cmake_modules_HandleLLVMOptions.cmake
@@ -1,14 +1,14 @@
-$NetBSD: patch-cmake_modules_HandleLLVMOptions.cmake,v 1.1 2017/03/19 19:01:48 adam Exp $
+$NetBSD: patch-cmake_modules_HandleLLVMOptions.cmake,v 1.2 2019/06/02 08:35:55 adam Exp $
DragonflyBSD support
---- cmake/modules/HandleLLVMOptions.cmake.orig 2016-01-06 19:05:19.000000000 +0000
+--- cmake/modules/HandleLLVMOptions.cmake.orig 2018-12-19 18:01:42.000000000 +0000
+++ cmake/modules/HandleLLVMOptions.cmake
-@@ -132,6 +132,7 @@ endif()
+@@ -137,6 +137,7 @@ endif()
# Pass -Wl,-z,defs. This makes sure all symbols are defined. Otherwise a DSO
# build might work on ELF but fail on MachO/COFF.
if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32 OR CYGWIN OR
+ ${CMAKE_SYSTEM_NAME} MATCHES "DragonFly" OR
${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR
- ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") AND
- NOT LLVM_USE_SANITIZER)
+ ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD" OR
+ ${CMAKE_SYSTEM_NAME} MATCHES "DragonFly") AND
diff --git a/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt b/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt
index f832df68c3d..e4263461e54 100644
--- a/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt
+++ b/lang/llvm/patches/patch-tools_llvm-shlib_CMakeLists.txt
@@ -1,33 +1,34 @@
-$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.4 2018/12/09 20:04:38 adam Exp $
+$NetBSD: patch-tools_llvm-shlib_CMakeLists.txt,v 1.5 2019/06/02 08:35:55 adam Exp $
Use the Linux style linking everywhere except Darwin and SunOS.
---- tools/llvm-shlib/CMakeLists.txt.orig 2018-08-03 10:15:36.000000000 +0000
+--- tools/llvm-shlib/CMakeLists.txt.orig 2018-10-18 20:07:44.000000000 +0000
+++ tools/llvm-shlib/CMakeLists.txt
-@@ -37,12 +37,11 @@ endif()
- add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${SOURCES})
+@@ -42,13 +42,11 @@ if(LLVM_BUILD_LLVM_DYLIB)
+ add_llvm_library(LLVM SHARED DISABLE_LLVM_LINK_LLVM_DYLIB SONAME ${SOURCES})
- list(REMOVE_DUPLICATES LIB_NAMES)
--if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR (MINGW) OR (HAIKU)
-- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
-- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD")
-- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
-- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "DragonFly")
-- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")) # FIXME: It should be "GNU ld for elf"
-+if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
-+ set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
-+elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")
-+ set(LIB_NAMES -Wl,-Bsymbolic -Wl,-z -Wl,allextract ${LIB_NAMES} -Wl,-z -Wl,defaultextract)
-+else()
- configure_file(
- ${CMAKE_CURRENT_SOURCE_DIR}/simple_version_script.map.in
- ${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map)
-@@ -53,8 +52,6 @@ if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Lin
- # Solaris ld does not accept global: *; so there is no way to version *all* global symbols
- set(LIB_NAMES -Wl,--version-script,${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map ${LIB_NAMES})
+ list(REMOVE_DUPLICATES LIB_NAMES)
+- if(("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") OR (MINGW) OR (HAIKU)
+- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
+- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "GNU")
+- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD")
+- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
+- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "DragonFly")
+- OR ("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")) # FIXME: It should be "GNU ld for elf"
++ if("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")
++ set(LIB_NAMES -Wl,-Bsymbolic -Wl,-z -Wl,allextract ${LIB_NAMES} -Wl,-z -Wl,defaultextract)
++ elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
++ set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
++ else()
+ configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/simple_version_script.map.in
+ ${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map)
+@@ -59,8 +57,6 @@ if(LLVM_BUILD_LLVM_DYLIB)
+ # Solaris ld does not accept global: *; so there is no way to version *all* global symbols
+ set(LIB_NAMES -Wl,--version-script,${LLVM_LIBRARY_DIR}/tools/llvm-shlib/simple_version_script.map ${LIB_NAMES})
+ endif()
+- elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
+- set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
endif()
--elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
-- set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
- endif()
- target_link_libraries(LLVM PRIVATE ${LIB_NAMES})
+ target_link_libraries(LLVM PRIVATE ${LIB_NAMES})