From nobody Sat Apr 06 20:18:55 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VBmsG6xZCz5HH1Y; Sat, 6 Apr 2024 20:18:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VBmsG5JMMz4MDx; Sat, 6 Apr 2024 20:18:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712434738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sj0n+HFJN5PzR8XDstWfDkOIJNSqs2FbhpSDdVaKyJw=; b=pmbUXgUYW4YZ+uRZbsSsG1nSBBMwM744Xy+v3pBc4+nvdNql3qKva1YETLH3Px0kKRF092 9oi5yM/vDIkvYJUdRgOvDEryaSuCoYssr9C4khQ71goU20mgQkqiECLEDaCqhWFX9kt8r/ Yp8uMoenPzoXO7rmjthRp78A/sqjUnZbYaW2RhlB2YRW0He7uwLasQXUD55FKExtup/R2c v2LxfpyAdVESo/4pKuIJT0n7fEYw+mKB7DEJVPMn9IGwJJ3f/npeomlhuEqhQPBNPhyD9S cUjilz5L58a8mnBVGXV62xPx8pguWwNJE2JBznTwQolOBm3hUZ1RkcV+ivHLDw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712434738; a=rsa-sha256; cv=none; b=ZT4MgYip8HP34W3IAqPFU8Fh9FOk4gK/vT9deeusk4xLsSEgDFXyNbvLhzYn6VG4SAuQlD FeJ6lO3G6iLDEsyiauwcUNY7wclivcUc51qD/k4n6HIzXCWl186fEtejzbcCs0ujtV843D 3Uf5OCjjbzRrBhBq4Vxl6dHsdAIijFRMmeO0XfuXfyaHzwdmeaV2B5TQUDeDarFGOk9d5w 5tAFES1l87XfiEfo3iBmqnagxhyeZjmx9l0+cfhod91+MMbHbbIU+nO8xy1bVGsvuzGiyH jv0SYIQovVuc/Y7YSJ399qrqtXFZbtwmPU9eiUguSFjcBkLOHcth6N9tri4WGg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712434738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sj0n+HFJN5PzR8XDstWfDkOIJNSqs2FbhpSDdVaKyJw=; b=c4+7UE5qGkN5TNJifW2EmLJIDQZsfqtnxtnYofPuDbVuvP3JukNMn9L0pUmeLZqPu6P+2L Wb1GxhAfc/56v96NGBRUH7ic9VZaUzatoM/9eJ3LdVgHBnJl+m86NGUmZbPGvh5Y3G/D5b 1mG3cne05S5T5Ea9EiVBGi4oFZijWFRbZq6YgWAUiaMZc7zR8a9R4fitb2pc+bGsOfnk2y iDqFgIuYdftBIMOnAiowD3YnrwMY0ISHCEkxMQiE94pdB3EV4ld1qNPXRJQbwY9y3E3Ulv FdQ5civY9qMoiOtK0BKFw8QtSDilusJQnKGn94T2KZoWS4+VMU3vm2nRh9V26A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VBmsG4BPNzxcs; Sat, 6 Apr 2024 20:18:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 436KIwGU030189; Sat, 6 Apr 2024 20:18:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 436KItB9030185; Sat, 6 Apr 2024 20:18:55 GMT (envelope-from git) Date: Sat, 6 Apr 2024 20:18:55 GMT Message-Id: <202404062018.436KItB9030185@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 74626c16ff48 - main - Merge llvm-project release/18.x llvmorg-18.1.0-rc2-53-gc7b0a6ecd442 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 74626c16ff489c0d64cf2843dfd522e7c544f3ce Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=74626c16ff489c0d64cf2843dfd522e7c544f3ce commit 74626c16ff489c0d64cf2843dfd522e7c544f3ce Merge: b3edf4467982 e15a4f0a320e Author: Dimitry Andric AuthorDate: 2024-02-20 18:57:23 +0000 Commit: Dimitry Andric CommitDate: 2024-04-06 20:14:13 +0000 Merge llvm-project release/18.x llvmorg-18.1.0-rc2-53-gc7b0a6ecd442 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.0-rc2-53-gc7b0a6ecd442. PR: 276104 MFC after: 1 month .../clang/include/clang/Basic/arm_sme.td | 28 +- .../clang/include/clang/Driver/Options.td | 12 + .../clang/lib/Basic/Targets/AArch64.cpp | 9 +- .../clang/lib/Driver/ToolChains/Arch/Sparc.cpp | 81 +++ .../clang/lib/Format/UnwrappedLineParser.cpp | 2 +- contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp | 2 +- .../clang/tools/clang-format/ClangFormat.cpp | 49 +- .../compiler-rt/lib/dfsan/dfsan_custom.cpp | 203 ++----- .../compiler-rt/lib/dfsan/done_abilist.txt | 6 + .../lib/dfsan/libc_ubuntu1404_abilist.txt | 5 + .../lib/profile/InstrProfilingPlatformAIX.c | 4 +- contrib/llvm-project/libcxx/include/print | 14 +- .../llvm-project/libcxx/modules/CMakeLists.txt.in | 88 +++ .../llvm-project/libcxx/modules/std/ostream.inc | 4 +- contrib/llvm-project/libcxx/src/print.cpp | 25 +- contrib/llvm-project/lld/COFF/Driver.cpp | 10 +- contrib/llvm-project/lld/ELF/Arch/LoongArch.cpp | 156 +++++- contrib/llvm-project/lld/ELF/Arch/RISCV.cpp | 29 +- contrib/llvm-project/lld/ELF/Arch/SystemZ.cpp | 607 +++++++++++++++++++++ contrib/llvm-project/lld/ELF/Driver.cpp | 3 +- contrib/llvm-project/lld/ELF/InputFiles.cpp | 2 + contrib/llvm-project/lld/ELF/InputSection.cpp | 14 +- contrib/llvm-project/lld/ELF/InputSection.h | 24 +- contrib/llvm-project/lld/ELF/Relocations.cpp | 27 +- contrib/llvm-project/lld/ELF/Relocations.h | 3 + contrib/llvm-project/lld/ELF/ScriptParser.cpp | 1 + contrib/llvm-project/lld/ELF/SyntheticSections.cpp | 3 + contrib/llvm-project/lld/ELF/Target.cpp | 2 + contrib/llvm-project/lld/ELF/Target.h | 4 + contrib/llvm-project/lld/ELF/Writer.cpp | 4 +- contrib/llvm-project/lld/docs/ReleaseNotes.rst | 53 +- .../llvm/include/llvm/BinaryFormat/ELF.h | 1 + .../llvm/lib/Analysis/ValueTracking.cpp | 7 +- .../lib/CodeGen/GlobalISel/LegalizerHelper.cpp | 2 + .../llvm/lib/CodeGen/RegisterCoalescer.cpp | 27 +- .../llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 +- .../lib/Target/AArch64/AArch64ISelLowering.cpp | 11 +- .../lib/Target/AArch64/AArch64RegisterInfo.cpp | 4 + .../Target/AArch64/GISel/AArch64LegalizerInfo.cpp | 5 +- .../lib/Target/Mips/AsmParser/MipsAsmParser.cpp | 7 +- .../llvm/lib/Target/RISCV/RISCVISelLowering.cpp | 98 ++-- .../llvm/lib/Target/RISCV/RISCVInstrInfo.cpp | 3 +- .../llvm-project/llvm/lib/Target/Sparc/Sparc.td | 14 + .../llvm/lib/Target/Sparc/SparcISelLowering.cpp | 43 ++ .../llvm/lib/Target/Sparc/SparcRegisterInfo.cpp | 14 +- .../llvm/lib/Target/Sparc/SparcRegisterInfo.h | 1 + .../llvm/lib/Target/Sparc/SparcRegisterInfo.td | 4 + .../llvm/lib/Target/Sparc/SparcSubtarget.cpp | 1 + .../llvm/lib/Target/Sparc/SparcSubtarget.h | 10 + .../llvm/lib/Target/X86/X86ISelLowering.cpp | 10 +- .../llvm/lib/Transforms/IPO/LowerTypeTests.cpp | 28 +- .../lib/Transforms/Vectorize/SLPVectorizer.cpp | 14 +- contrib/llvm-project/openmp/runtime/src/kmp.h | 7 +- .../openmp/runtime/src/kmp_csupport.cpp | 5 +- .../openmp/runtime/src/kmp_gsupport.cpp | 2 +- .../llvm-project/openmp/runtime/src/kmp_lock.cpp | 6 +- contrib/llvm-project/openmp/runtime/src/kmp_lock.h | 17 +- .../openmp/runtime/src/kmp_settings.cpp | 5 + lib/clang/include/VCSVersion.inc | 6 +- lib/clang/include/lld/Common/Version.inc | 2 +- lib/clang/include/llvm/Support/VCSRevision.h | 2 +- usr.bin/clang/lld/Makefile | 1 + 62 files changed, 1481 insertions(+), 352 deletions(-) diff --cc contrib/llvm-project/libcxx/modules/CMakeLists.txt.in index 000000000000,e332d70cc163..e332d70cc163 mode 000000,100644..100644 --- a/contrib/llvm-project/libcxx/modules/CMakeLists.txt.in +++ b/contrib/llvm-project/libcxx/modules/CMakeLists.txt.in diff --cc contrib/llvm-project/lld/ELF/Arch/SystemZ.cpp index 000000000000,d37db6877559..d37db6877559 mode 000000,100644..100644 --- a/contrib/llvm-project/lld/ELF/Arch/SystemZ.cpp +++ b/contrib/llvm-project/lld/ELF/Arch/SystemZ.cpp diff --cc lib/clang/include/VCSVersion.inc index 78d32ba9f856,000000000000..fd0a56bce1b7 mode 100644,000000..100644 --- a/lib/clang/include/VCSVersion.inc +++ b/lib/clang/include/VCSVersion.inc @@@ -1,8 -1,0 +1,8 @@@ - #define LLVM_REVISION "llvmorg-18.1.0-rc2-0-gc6c86965d967" ++#define LLVM_REVISION "llvmorg-18.1.0-rc2-53-gc7b0a6ecd442" +#define LLVM_REPOSITORY "https://github.com/llvm/llvm-project.git" + - #define CLANG_REVISION "llvmorg-18.1.0-rc2-0-gc6c86965d967" ++#define CLANG_REVISION "llvmorg-18.1.0-rc2-53-gc7b0a6ecd442" +#define CLANG_REPOSITORY "https://github.com/llvm/llvm-project.git" + - #define LLDB_REVISION "llvmorg-18.1.0-rc2-0-gc6c86965d967" ++#define LLDB_REVISION "llvmorg-18.1.0-rc2-53-gc7b0a6ecd442" +#define LLDB_REPOSITORY "https://github.com/llvm/llvm-project.git" diff --cc lib/clang/include/lld/Common/Version.inc index 10c2eab8fae5,000000000000..87eb422879b9 mode 100644,000000..100644 --- a/lib/clang/include/lld/Common/Version.inc +++ b/lib/clang/include/lld/Common/Version.inc @@@ -1,4 -1,0 +1,4 @@@ +// Local identifier in __FreeBSD_version style +#define LLD_FREEBSD_VERSION 1500000 + - #define LLD_VERSION_STRING "18.1.0 (FreeBSD llvmorg-18.1.0-rc2-0-gc6c86965d967-" __XSTRING(LLD_FREEBSD_VERSION) ")" ++#define LLD_VERSION_STRING "18.1.0 (FreeBSD llvmorg-18.1.0-rc2-53-gc7b0a6ecd442-" __XSTRING(LLD_FREEBSD_VERSION) ")" diff --cc lib/clang/include/llvm/Support/VCSRevision.h index 261c83737634,000000000000..d06ac507357e mode 100644,000000..100644 --- a/lib/clang/include/llvm/Support/VCSRevision.h +++ b/lib/clang/include/llvm/Support/VCSRevision.h @@@ -1,2 -1,0 +1,2 @@@ - #define LLVM_REVISION "llvmorg-18.1.0-rc2-0-gc6c86965d967" ++#define LLVM_REVISION "llvmorg-18.1.0-rc2-53-gc7b0a6ecd442" +#define LLVM_REPOSITORY "https://github.com/llvm/llvm-project.git" diff --cc usr.bin/clang/lld/Makefile index e68a1f803cf4,000000000000..8fbc41ee992a mode 100644,000000..100644 --- a/usr.bin/clang/lld/Makefile +++ b/usr.bin/clang/lld/Makefile @@@ -1,109 -1,0 +1,110 @@@ + +.include + +LLVM_BASE= ${SRCTOP}/contrib/llvm-project +LLVM_SRCS= ${LLVM_BASE}/llvm +LLD_SRCS= ${LLVM_BASE}/lld + +PACKAGE= lld +PROG_CXX= ld.lld +# Man page directory +.PATH: ${LLD_SRCS}/docs +.if !defined(TOOLS_PREFIX) || \ + (defined(TOOLS_PREFIX) && ${MK_LLD_BOOTSTRAP} != "no") +SYMLINKS= ${PROG_CXX} ${BINDIR}/ld +MLINKS= ld.lld.1 ld.1 +.endif + +.include "${SRCTOP}/lib/clang/llvm.pre.mk" + +CFLAGS+= -I${LLD_SRCS}/ELF +CFLAGS+= -I${LLD_SRCS}/include +CFLAGS+= -I${.OBJDIR} +CFLAGS+= -I${OBJTOP}/lib/clang/libllvm +CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/lib + +SRCDIR= lld +SRCS+= Common/Args.cpp +SRCS+= Common/CommonLinkerContext.cpp +SRCS+= Common/DWARF.cpp +SRCS+= Common/DriverDispatcher.cpp +SRCS+= Common/ErrorHandler.cpp +SRCS+= Common/Filesystem.cpp +SRCS+= Common/Memory.cpp +SRCS+= Common/Reproduce.cpp +SRCS+= Common/Strings.cpp +SRCS+= Common/TargetOptionsCommandFlags.cpp +SRCS+= Common/Version.cpp +SRCS+= ELF/AArch64ErrataFix.cpp +SRCS+= ELF/ARMErrataFix.cpp +SRCS+= ELF/Arch/AArch64.cpp +SRCS+= ELF/Arch/AMDGPU.cpp +SRCS+= ELF/Arch/ARM.cpp +SRCS+= ELF/Arch/AVR.cpp +SRCS+= ELF/Arch/Hexagon.cpp +SRCS+= ELF/Arch/LoongArch.cpp +SRCS+= ELF/Arch/MSP430.cpp +SRCS+= ELF/Arch/Mips.cpp +SRCS+= ELF/Arch/MipsArchTree.cpp +SRCS+= ELF/Arch/PPC.cpp +SRCS+= ELF/Arch/PPC64.cpp +SRCS+= ELF/Arch/RISCV.cpp +SRCS+= ELF/Arch/SPARCV9.cpp ++SRCS+= ELF/Arch/SystemZ.cpp +SRCS+= ELF/Arch/X86.cpp +SRCS+= ELF/Arch/X86_64.cpp +SRCS+= ELF/CallGraphSort.cpp +SRCS+= ELF/DWARF.cpp +SRCS+= ELF/Driver.cpp +SRCS+= ELF/DriverUtils.cpp +SRCS+= ELF/EhFrame.cpp +SRCS+= ELF/ICF.cpp +SRCS+= ELF/InputFiles.cpp +SRCS+= ELF/InputSection.cpp +SRCS+= ELF/LTO.cpp +SRCS+= ELF/LinkerScript.cpp +SRCS+= ELF/MapFile.cpp +SRCS+= ELF/MarkLive.cpp +SRCS+= ELF/OutputSections.cpp +SRCS+= ELF/Relocations.cpp +SRCS+= ELF/ScriptLexer.cpp +SRCS+= ELF/ScriptParser.cpp +SRCS+= ELF/SymbolTable.cpp +SRCS+= ELF/Symbols.cpp +SRCS+= ELF/SyntheticSections.cpp +SRCS+= ELF/Target.cpp +SRCS+= ELF/Thunks.cpp +SRCS+= ELF/Writer.cpp +SRCS+= lld-driver.cpp +SRCS+= tools/lld/lld.cpp + +.include "${SRCTOP}/lib/clang/llvm.build.mk" + +LIBDEPS+= llvm + +.for lib in ${LIBDEPS} +DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a +LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a +.endfor + +INCFILE= Options.inc +TDFILE= ${LLD_SRCS}/ELF/Options.td +GENOPT= -gen-opt-parser-defs +${INCFILE}: ${TDFILE} + ${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \ + -o ${.TARGET} ${TDFILE} +TGHDRS+= ${INCFILE} + +DEPENDFILES+= ${TGHDRS:C/$/.d/} +DPSRCS+= ${TGHDRS} +CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} + +.if ${.MAKE.OS} == "FreeBSD" || !defined(BOOTSTRAPPING) +LIBADD+= execinfo +LIBADD+= tinfow +.endif +LIBADD+= pthread +LIBADD+= z +LIBADD+= zstd + +.include