Here is an update to LLVM 8.0.1.
Index: lang/clang/clang.port.mk
===================================================================
RCS file: /home/cvs/ports/lang/clang/clang.port.mk,v
retrieving revision 1.33
diff -u -p -u -p -r1.33 clang.port.mk
--- lang/clang/clang.port.mk 6 Jul 2019 15:06:37 -0000 1.33
+++ lang/clang/clang.port.mk 22 Jul 2019 00:16:36 -0000
@@ -1,6 +1,6 @@
# $OpenBSD: clang.port.mk,v 1.33 2019/07/06 15:06:37 jca Exp $
-MODCLANG_VERSION= 8.0.0
+MODCLANG_VERSION= 8.0.1
MODCLANG_ARCHS ?= ${LLVM_ARCHS}
MODCLANG_LANGS ?=
Index: devel/llvm/Makefile
===================================================================
RCS file: /home/cvs/ports/devel/llvm/Makefile,v
retrieving revision 1.232
diff -u -p -u -p -r1.232 Makefile
--- devel/llvm/Makefile 10 Aug 2019 19:41:07 -0000 1.232
+++ devel/llvm/Makefile 2 Sep 2019 21:42:02 -0000
@@ -11,15 +11,13 @@ COMMENT-python = Python bindings for Cla
# XXX: Remember to bump MODCLANG_VERSION in lang/clang/clang.port.mk when
# updating this port.
-LLVM_V = 8.0.0
+LLVM_V = 8.0.1
DISTNAME = llvm-${LLVM_V}.src
PKGNAME = llvm-${LLVM_V}
PKGSPEC-main = llvm-=${LLVM_V}
PKGNAME-main = llvm-${LLVM_V}
PKGNAME-python = py-llvm-${LLVM_V}
PKGNAME-lldb = lldb-${LLVM_V}
-REVISION = 1
-REVISION-main = 3
CATEGORIES = devel
@@ -36,7 +34,7 @@ MAINTAINER= Jeremie Courreges-Anglas <jc
# BSD
PERMIT_PACKAGE = Yes
-MASTER_SITES = https://releases.llvm.org/${LLVM_V}/
+MASTER_SITES =
https://github.com/llvm/llvm-project/releases/download/llvmorg-${LLVM_V}/
EXTRACT_SUFX = .tar.xz
DISTFILES = llvm-${LLVM_V}.src${EXTRACT_SUFX} \
cfe-${LLVM_V}.src${EXTRACT_SUFX} \
Index: devel/llvm/distinfo
===================================================================
RCS file: /home/cvs/ports/devel/llvm/distinfo,v
retrieving revision 1.33
diff -u -p -u -p -r1.33 distinfo
--- devel/llvm/distinfo 6 Jul 2019 15:06:36 -0000 1.33
+++ devel/llvm/distinfo 21 Jul 2019 23:05:50 -0000
@@ -1,8 +1,8 @@
-SHA256 (cfe-8.0.0.src.tar.xz) = CEwRWqsAhOY7I+7owjOrtnOcOZ4plm6uzPxuCI4Lc2s=
-SHA256 (lld-8.0.0.src.tar.xz) = nK7I7JIuMv+hMPD7COTFokLX5oznV2MeQl6eui4abjc=
-SHA256 (lldb-8.0.0.src.tar.xz) = SZGLnwmBZVSiCsRMX4WjLcCnoAdZsyWeeAZNZ06sA3M=
-SHA256 (llvm-8.0.0.src.tar.xz) = iHK+GxLGFFDKzIKz0VPqsCviVG7zT6NYDtFBN7smIkw=
-SIZE (cfe-8.0.0.src.tar.xz) = 12868468
-SIZE (lld-8.0.0.src.tar.xz) = 999864
-SIZE (lldb-8.0.0.src.tar.xz) = 19602332
-SIZE (llvm-8.0.0.src.tar.xz) = 30503732
+SHA256 (cfe-8.0.1.src.tar.xz) = cO/9afeoqySfZrCmirqLCK9Sqiq3EN+4oPuhAmhbFkY=
+SHA256 (lld-8.0.1.src.tar.xz) = n7oelCSb15E+imw6rcswi3bIw9g8XONsmcPzTXOHPYg=
+SHA256 (lldb-8.0.1.src.tar.xz) = 6Kebqm0R3QZQq0obR59pnfrYKvYny7zUn6by3BThMdc=
+SHA256 (llvm-8.0.1.src.tar.xz) = RHh6bQL3FA8UXiJQ1WyfhJM04R+a43mCdRDtcvErdec=
+SIZE (cfe-8.0.1.src.tar.xz) = 12810056
+SIZE (lld-8.0.1.src.tar.xz) = 996440
+SIZE (lldb-8.0.1.src.tar.xz) = 19586288
+SIZE (llvm-8.0.1.src.tar.xz) = 30477608
Index:
devel/llvm/patches/patch-lib_Target_Mips_MCTargetDesc_MipsTargetStreamer_cpp
===================================================================
RCS file:
/home/cvs/ports/devel/llvm/patches/patch-lib_Target_Mips_MCTargetDesc_MipsTargetStreamer_cpp,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-lib_Target_Mips_MCTargetDesc_MipsTargetStreamer_cpp
---
devel/llvm/patches/patch-lib_Target_Mips_MCTargetDesc_MipsTargetStreamer_cpp
9 Jul 2019 13:21:37 -0000 1.1
+++
devel/llvm/patches/patch-lib_Target_Mips_MCTargetDesc_MipsTargetStreamer_cpp
10 Jul 2019 00:21:49 -0000
@@ -23,7 +23,7 @@ Index: lib/Target/Mips/MCTargetDesc/Mips
}
/// Emit a store instruction with an immediate offset.
-@@ -1133,7 +1133,7 @@ void MipsTargetELFStreamer::emitDirectiveCpLoad(unsign
+@@ -1136,7 +1136,7 @@ void MipsTargetELFStreamer::emitDirectiveCpLoad(unsign
MCInst TmpInst;
TmpInst.setOpcode(Mips::LUi);
@@ -32,7 +32,7 @@ Index: lib/Target/Mips/MCTargetDesc/Mips
const MCExpr *HiSym = MipsMCExpr::create(
MipsMCExpr::MEK_HI,
MCSymbolRefExpr::create("_gp_disp", MCSymbolRefExpr::VK_None,
-@@ -1145,8 +1145,8 @@ void MipsTargetELFStreamer::emitDirectiveCpLoad(unsign
+@@ -1148,8 +1148,8 @@ void MipsTargetELFStreamer::emitDirectiveCpLoad(unsign
TmpInst.clear();
TmpInst.setOpcode(Mips::ADDiu);
@@ -43,7 +43,7 @@ Index: lib/Target/Mips/MCTargetDesc/Mips
const MCExpr *LoSym = MipsMCExpr::create(
MipsMCExpr::MEK_LO,
MCSymbolRefExpr::create("_gp_disp", MCSymbolRefExpr::VK_None,
-@@ -1158,8 +1158,8 @@ void MipsTargetELFStreamer::emitDirectiveCpLoad(unsign
+@@ -1161,8 +1161,8 @@ void MipsTargetELFStreamer::emitDirectiveCpLoad(unsign
TmpInst.clear();
TmpInst.setOpcode(Mips::ADDu);
@@ -54,7 +54,7 @@ Index: lib/Target/Mips/MCTargetDesc/Mips
TmpInst.addOperand(MCOperand::createReg(RegNo));
getStreamer().EmitInstruction(TmpInst, STI);
-@@ -1182,7 +1182,7 @@ bool MipsTargetELFStreamer::emitDirectiveCpRestore(
+@@ -1185,7 +1185,7 @@ bool MipsTargetELFStreamer::emitDirectiveCpRestore(
return true;
// Store the $gp on the stack.
@@ -63,7 +63,7 @@ Index: lib/Target/Mips/MCTargetDesc/Mips
STI);
return true;
}
-@@ -1203,10 +1203,10 @@ void MipsTargetELFStreamer::emitDirectiveCpsetup(unsig
+@@ -1206,10 +1206,10 @@ void MipsTargetELFStreamer::emitDirectiveCpsetup(unsig
// Either store the old $gp in a register or on the stack
if (IsReg) {
// move $save, $gpreg
@@ -76,7 +76,7 @@ Index: lib/Target/Mips/MCTargetDesc/Mips
}
if (getABI().IsN32()) {
-@@ -1219,10 +1219,10 @@ void MipsTargetELFStreamer::emitDirectiveCpsetup(unsig
+@@ -1222,10 +1222,10 @@ void MipsTargetELFStreamer::emitDirectiveCpsetup(unsig
MCA.getContext());
// lui $gp, %hi(__gnu_local_gp)
@@ -89,7 +89,7 @@ Index: lib/Target/Mips/MCTargetDesc/Mips
SMLoc(), &STI);
return;
-@@ -1236,14 +1236,14 @@ void MipsTargetELFStreamer::emitDirectiveCpsetup(unsig
+@@ -1239,14 +1239,14 @@ void MipsTargetELFStreamer::emitDirectiveCpsetup(unsig
MCA.getContext());
// lui $gp, %hi(%neg(%gp_rel(funcSym)))
@@ -107,7 +107,7 @@ Index: lib/Target/Mips/MCTargetDesc/Mips
}
void MipsTargetELFStreamer::emitDirectiveCpreturn(unsigned SaveLocation,
-@@ -1256,12 +1256,12 @@ void MipsTargetELFStreamer::emitDirectiveCpreturn(unsi
+@@ -1259,12 +1259,12 @@ void MipsTargetELFStreamer::emitDirectiveCpreturn(unsi
// Either restore the old $gp from a register or on the stack
if (SaveLocationIsRegister) {
Inst.setOpcode(Mips::OR);
Index: devel/llvm/patches/patch-lib_Target_X86_X86TargetMachine_cpp
===================================================================
RCS file:
/home/cvs/ports/devel/llvm/patches/patch-lib_Target_X86_X86TargetMachine_cpp,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 patch-lib_Target_X86_X86TargetMachine_cpp
--- devel/llvm/patches/patch-lib_Target_X86_X86TargetMachine_cpp 6 Jul
2019 15:06:36 -0000 1.3
+++ devel/llvm/patches/patch-lib_Target_X86_X86TargetMachine_cpp 10 Jul
2019 00:21:38 -0000
@@ -9,7 +9,7 @@ this framework.
Index: lib/Target/X86/X86TargetMachine.cpp
--- lib/Target/X86/X86TargetMachine.cpp.orig
+++ lib/Target/X86/X86TargetMachine.cpp
-@@ -504,6 +504,7 @@ void X86PassConfig::addPreEmitPass() {
+@@ -505,6 +505,7 @@ void X86PassConfig::addPreEmitPass() {
}
addPass(createX86DiscriminateMemOpsPass());
addPass(createX86InsertPrefetchPass());
Index: devel/llvm/patches/patch-tools_clang_lib_Driver_ToolChains_Clang_cpp
===================================================================
RCS file:
/home/cvs/ports/devel/llvm/patches/patch-tools_clang_lib_Driver_ToolChains_Clang_cpp,v
retrieving revision 1.9
diff -u -p -u -p -r1.9 patch-tools_clang_lib_Driver_ToolChains_Clang_cpp
--- devel/llvm/patches/patch-tools_clang_lib_Driver_ToolChains_Clang_cpp
6 Jul 2019 15:06:36 -0000 1.9
+++ devel/llvm/patches/patch-tools_clang_lib_Driver_ToolChains_Clang_cpp
10 Jul 2019 00:21:38 -0000
@@ -32,7 +32,7 @@ $OpenBSD: patch-tools_clang_lib_Driver_T
Index: tools/clang/lib/Driver/ToolChains/Clang.cpp
--- tools/clang/lib/Driver/ToolChains/Clang.cpp.orig
+++ tools/clang/lib/Driver/ToolChains/Clang.cpp
-@@ -3893,9 +3893,12 @@ void Clang::ConstructJob(Compilation &C, const JobActi
+@@ -3899,9 +3899,12 @@ void Clang::ConstructJob(Compilation &C, const JobActi
OFastEnabled ? options::OPT_Ofast : options::OPT_fstrict_aliasing;
// We turn strict aliasing off by default if we're in CL mode, since MSVC
// doesn't do any TBAA.
@@ -47,7 +47,7 @@ Index: tools/clang/lib/Driver/ToolChains
CmdArgs.push_back("-relaxed-aliasing");
if (!Args.hasFlag(options::OPT_fstruct_path_tbaa,
options::OPT_fno_struct_path_tbaa))
-@@ -4521,7 +4524,8 @@ void Clang::ConstructJob(Compilation &C, const JobActi
+@@ -4527,7 +4530,8 @@ void Clang::ConstructJob(Compilation &C, const JobActi
options::OPT_fno_strict_overflow)) {
if (A->getOption().matches(options::OPT_fno_strict_overflow))
CmdArgs.push_back("-fwrapv");
@@ -57,7 +57,7 @@ Index: tools/clang/lib/Driver/ToolChains
if (Arg *A = Args.getLastArg(options::OPT_freroll_loops,
options::OPT_fno_reroll_loops))
-@@ -4538,9 +4542,44 @@ void Clang::ConstructJob(Compilation &C, const JobActi
+@@ -4544,9 +4548,44 @@ void Clang::ConstructJob(Compilation &C, const JobActi
false))
CmdArgs.push_back(Args.MakeArgString("-mspeculative-load-hardening"));
@@ -103,7 +103,7 @@ Index: tools/clang/lib/Driver/ToolChains
// Translate -mstackrealign
if (Args.hasFlag(options::OPT_mstackrealign, options::OPT_mno_stackrealign,
false))
-@@ -5023,6 +5062,18 @@ void Clang::ConstructJob(Compilation &C, const JobActi
+@@ -5029,6 +5068,18 @@ void Clang::ConstructJob(Compilation &C, const JobActi
options::OPT_fno_rewrite_imports, false);
if (RewriteImports)
CmdArgs.push_back("-frewrite-imports");
Index: devel/llvm/patches/patch-tools_lld_ELF_SyntheticSections_cpp
===================================================================
RCS file:
/home/cvs/ports/devel/llvm/patches/patch-tools_lld_ELF_SyntheticSections_cpp,v
retrieving revision 1.12
diff -u -p -u -p -r1.12 patch-tools_lld_ELF_SyntheticSections_cpp
--- devel/llvm/patches/patch-tools_lld_ELF_SyntheticSections_cpp 9 Jul
2019 13:21:37 -0000 1.12
+++ devel/llvm/patches/patch-tools_lld_ELF_SyntheticSections_cpp 10 Jul
2019 00:21:38 -0000
@@ -10,7 +10,7 @@ $OpenBSD: patch-tools_lld_ELF_SyntheticS
Index: tools/lld/ELF/SyntheticSections.cpp
--- tools/lld/ELF/SyntheticSections.cpp.orig
+++ tools/lld/ELF/SyntheticSections.cpp
-@@ -2996,7 +2996,9 @@ void elf::mergeSections() {
+@@ -3001,7 +3001,9 @@ void elf::mergeSections() {
}
StringRef OutsecName = getOutputSectionName(MS);
Index: devel/llvm/patches/patch-tools_lld_ELF_Writer_cpp
===================================================================
RCS file: /home/cvs/ports/devel/llvm/patches/patch-tools_lld_ELF_Writer_cpp,v
retrieving revision 1.11
diff -u -p -u -p -r1.11 patch-tools_lld_ELF_Writer_cpp
--- devel/llvm/patches/patch-tools_lld_ELF_Writer_cpp 6 Jul 2019 15:06:36
-0000 1.11
+++ devel/llvm/patches/patch-tools_lld_ELF_Writer_cpp 10 Jul 2019 00:21:38
-0000
@@ -28,7 +28,7 @@ Index: tools/lld/ELF/Writer.cpp
ElfSym::End1 = Add("end", -1);
ElfSym::End2 = Add("_end", -1);
ElfSym::Etext1 = Add("etext", -1);
-@@ -703,7 +705,11 @@ static bool isRelroSection(const OutputSection *Sec) {
+@@ -708,7 +710,11 @@ static bool isRelroSection(const OutputSection *Sec) {
// However, if "-z now" is given, the lazy symbol resolution is
// disabled, which enables us to put it into RELRO.
if (Sec == In.GotPlt->getParent())
@@ -40,7 +40,7 @@ Index: tools/lld/ELF/Writer.cpp
// .dynamic section contains data for the dynamic linker, and
// there's no need to write to it at runtime, so it's better to put
-@@ -1006,6 +1012,9 @@ template <class ELFT> void Writer<ELFT>::setReservedSy
+@@ -1011,6 +1017,9 @@ template <class ELFT> void Writer<ELFT>::setReservedSy
if (ElfSym::Bss)
ElfSym::Bss->Section = findSection(".bss");
@@ -50,7 +50,7 @@ Index: tools/lld/ELF/Writer.cpp
// Setup MIPS _gp_disp/__gnu_local_gp symbols which should
// be equal to the _gp symbol's value.
if (ElfSym::MipsGp) {
-@@ -2042,6 +2051,23 @@ template <class ELFT> void Writer<ELFT>::fixSectionAli
+@@ -2047,6 +2056,23 @@ template <class ELFT> void Writer<ELFT>::fixSectionAli
return alignTo(Script->getDot(), Config->MaxPageSize);
};
};
Index: devel/llvm/pkg/PFRAG.no-powerpc-main
===================================================================
RCS file: /home/cvs/ports/devel/llvm/pkg/PFRAG.no-powerpc-main,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 PFRAG.no-powerpc-main
--- devel/llvm/pkg/PFRAG.no-powerpc-main 6 Jul 2019 15:06:36 -0000
1.3
+++ devel/llvm/pkg/PFRAG.no-powerpc-main 10 Jul 2019 03:19:30 -0000
@@ -65,6 +65,12 @@ lib/libLLVMSystemZCodeGen.a
lib/libLLVMSystemZDesc.a
lib/libLLVMSystemZDisassembler.a
lib/libLLVMSystemZInfo.a
+lib/libLLVMWebAssemblyAsmParser.a
+lib/libLLVMWebAssemblyAsmPrinter.a
+lib/libLLVMWebAssemblyCodeGen.a
+lib/libLLVMWebAssemblyDesc.a
+lib/libLLVMWebAssemblyDisassembler.a
+lib/libLLVMWebAssemblyInfo.a
lib/libLLVMX86AsmParser.a
lib/libLLVMX86AsmPrinter.a
lib/libLLVMX86CodeGen.a
@@ -77,9 +83,3 @@ lib/libLLVMXCoreCodeGen.a
lib/libLLVMXCoreDesc.a
lib/libLLVMXCoreDisassembler.a
lib/libLLVMXCoreInfo.a
-lib/libLLVMWebAssemblyAsmParser.a
-lib/libLLVMWebAssemblyAsmPrinter.a
-lib/libLLVMWebAssemblyCodeGen.a
-lib/libLLVMWebAssemblyDesc.a
-lib/libLLVMWebAssemblyDisassembler.a
-lib/libLLVMWebAssemblyInfo.a