pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

llvm-netbsd: Upgrade to 314651 & include kasan for NetBSD/amd64



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Mon Oct 2 13:18:25 2017 +0200
Changeset:	eae98e0036672c73453492f08fbea9f26ab297a6

Modified Files:
	llvm-netbsd/Makefile.common
	llvm-netbsd/PLIST
	llvm-netbsd/distinfo
Added Files:
	llvm-netbsd/patches/patch-lib_Transforms_Instrumentation_AddressSanitizer.cpp

Log Message:
llvm-netbsd: Upgrade to 314651 & include kasan for NetBSD/amd64

Sync PLIST.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=eae98e0036672c73453492f08fbea9f26ab297a6

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 llvm-netbsd/Makefile.common                        |  2 +-
 llvm-netbsd/PLIST                                  |  7 ++++++
 llvm-netbsd/distinfo                               |  1 +
 ...Transforms_Instrumentation_AddressSanitizer.cpp | 28 ++++++++++++++++++++++
 4 files changed, 37 insertions(+), 1 deletion(-)

diffs:
diff --git a/llvm-netbsd/Makefile.common b/llvm-netbsd/Makefile.common
index 0e5c20ee7f..1010ef1208 100644
--- a/llvm-netbsd/Makefile.common
+++ b/llvm-netbsd/Makefile.common
@@ -19,7 +19,7 @@ CATEGORIES=	lang devel
 
 SVN_REPOSITORIES=	llvm
 SVN_REPO.llvm=		http://llvm.org/svn/llvm-project/llvm/trunk
-SVN_REVISION.llvm=	312882
+SVN_REVISION.llvm=	314651
 
 WRKSRC=			${WRKDIR}/llvm
 
diff --git a/llvm-netbsd/PLIST b/llvm-netbsd/PLIST
index 01cd9995cd..5215802115 100644
--- a/llvm-netbsd/PLIST
+++ b/llvm-netbsd/PLIST
@@ -11,6 +11,7 @@ bin/llvm-as
 bin/llvm-bcanalyzer
 bin/llvm-c-test
 bin/llvm-cat
+bin/llvm-cfi-verify
 bin/llvm-config
 bin/llvm-cov
 bin/llvm-cvtres
@@ -242,6 +243,7 @@ include/llvm/Analysis/TargetTransformInfoImpl.h
 include/llvm/Analysis/Trace.h
 include/llvm/Analysis/TypeBasedAliasAnalysis.h
 include/llvm/Analysis/TypeMetadataUtils.h
+include/llvm/Analysis/ValueLattice.h
 include/llvm/Analysis/ValueTracking.h
 include/llvm/Analysis/VectorUtils.h
 include/llvm/AsmParser/Parser.h
@@ -252,6 +254,7 @@ include/llvm/BinaryFormat/Dwarf.h
 include/llvm/BinaryFormat/ELF.h
 include/llvm/BinaryFormat/ELFRelocs/AArch64.def
 include/llvm/BinaryFormat/ELFRelocs/AMDGPU.def
+include/llvm/BinaryFormat/ELFRelocs/ARC.def
 include/llvm/BinaryFormat/ELFRelocs/ARM.def
 include/llvm/BinaryFormat/ELFRelocs/AVR.def
 include/llvm/BinaryFormat/ELFRelocs/BPF.def
@@ -665,6 +668,7 @@ include/llvm/IR/DebugInfoMetadata.h
 include/llvm/IR/DebugLoc.h
 include/llvm/IR/DerivedTypes.h
 include/llvm/IR/DerivedUser.h
+include/llvm/IR/DiagnosticHandler.h
 include/llvm/IR/DiagnosticInfo.h
 include/llvm/IR/DiagnosticPrinter.h
 include/llvm/IR/Dominators.h
@@ -1185,6 +1189,9 @@ include/llvm/Transforms/Vectorize.h
 include/llvm/Transforms/Vectorize/LoopVectorize.h
 include/llvm/Transforms/Vectorize/SLPVectorizer.h
 include/llvm/WindowsManifest/WindowsManifestMerger.h
+include/llvm/WindowsResource/ResourceProcessor.h
+include/llvm/WindowsResource/ResourceScriptToken.h
+include/llvm/WindowsResource/ResourceScriptTokenList.h
 include/llvm/XRay/Graph.h
 include/llvm/XRay/InstrumentationMap.h
 include/llvm/XRay/Trace.h
diff --git a/llvm-netbsd/distinfo b/llvm-netbsd/distinfo
index 2fb983d9ce..7a3dab088b 100644
--- a/llvm-netbsd/distinfo
+++ b/llvm-netbsd/distinfo
@@ -12,5 +12,6 @@ Size (libcxx-3.6.2.src.tar.xz) = 944020 bytes
 SHA1 (llvm-3.6.2.src.tar.xz) = 7a00257eb2bc9431e4c77c3a36b033072c54bc7e
 RMD160 (llvm-3.6.2.src.tar.xz) = 521cbc5fe2925ea3c6e90c7a31f752a04045c972
 Size (llvm-3.6.2.src.tar.xz) = 12802380 bytes
+SHA1 (patch-lib_Transforms_Instrumentation_AddressSanitizer.cpp) = ad230c1f0091f28451a29a11050588f412824e53
 SHA1 (patch-lib_Transforms_Instrumentation_InstrProfiling.cpp) = 871b474f415d9dc468cc07477101f88d7a20868b
 SHA1 (patch-lib_Transforms_Instrumentation_MemorySanitizer.cpp) = 64fdbb55c77d5f5f73152d2f8daa28adfc428e40
diff --git a/llvm-netbsd/patches/patch-lib_Transforms_Instrumentation_AddressSanitizer.cpp b/llvm-netbsd/patches/patch-lib_Transforms_Instrumentation_AddressSanitizer.cpp
new file mode 100644
index 0000000000..b4de11fd28
--- /dev/null
+++ b/llvm-netbsd/patches/patch-lib_Transforms_Instrumentation_AddressSanitizer.cpp
@@ -0,0 +1,28 @@
+$NetBSD$
+
+--- lib/Transforms/Instrumentation/AddressSanitizer.cpp.orig	2017-08-28 22:11:31.000000000 +0000
++++ lib/Transforms/Instrumentation/AddressSanitizer.cpp
+@@ -84,6 +84,7 @@ static const uint64_t kAArch64_ShadowOff
+ static const uint64_t kFreeBSD_ShadowOffset32 = 1ULL << 30;
+ static const uint64_t kFreeBSD_ShadowOffset64 = 1ULL << 46;
+ static const uint64_t kNetBSD_ShadowOffset64 = 1ULL << 46;
++static const uint64_t kNetBSDKasan_ShadowOffset64 = 0xdffffc0000000000;
+ static const uint64_t kPS4CPU_ShadowOffset64 = 1ULL << 40;
+ static const uint64_t kWindowsShadowOffset32 = 3ULL << 28;
+ // The shadow memory space is dynamically allocated.
+@@ -448,9 +449,12 @@ static ShadowMapping getShadowMapping(Tr
+       Mapping.Offset = kSystemZ_ShadowOffset64;
+     else if (IsFreeBSD)
+       Mapping.Offset = kFreeBSD_ShadowOffset64;
+-    else if (IsNetBSD)
+-      Mapping.Offset = kNetBSD_ShadowOffset64;
+-    else if (IsPS4CPU)
++    else if (IsNetBSD && IsX86_64) {
++      if (IsKasan)
++        Mapping.Offset = kNetBSDKasan_ShadowOffset64;
++      else
++        Mapping.Offset = kNetBSD_ShadowOffset64;
++    } else if (IsPS4CPU)
+       Mapping.Offset = kPS4CPU_ShadowOffset64;
+     else if (IsLinux && IsX86_64) {
+       if (IsKasan)


Home | Main Index | Thread Index | Old Index