FreeBSD/src e375421. ObsoleteFiles.inc

Remove obsolete clang18 files for aarch64

This fixes a warning from "make delete-old" about a non-empty directory
on aarch64.

Reviewed by:    dim
Approved by:    re (cperciva)
Fixes:          0fca6ea1d4ee
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D48904

(cherry picked from commit 09b435d3dc2a591fba08be04d5659d03cce08285)
(cherry picked from commit 9370c2c331255beac5e451c7841e68b2302ebf91)
DeltaFile
+2-0ObsoleteFiles.inc
+2-01 files

FreeBSD/src 9370c2c. ObsoleteFiles.inc

Remove obsolete clang18 files for aarch64

This fixes a warning from "make delete-old" about a non-empty directory
on aarch64.

Reviewed by:    dim
Fixes:          0fca6ea1d4ee
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D48904

(cherry picked from commit 09b435d3dc2a591fba08be04d5659d03cce08285)
DeltaFile
+2-0ObsoleteFiles.inc
+2-01 files

FreeBSD/src f564bcc. ObsoleteFiles.inc

Remove obsolete clang18 files for aarch64

This fixes a warning from "make delete-old" about a non-empty directory
on aarch64.

Reviewed by:    dim
Fixes:          0fca6ea1d4ee
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D48904

(cherry picked from commit 09b435d3dc2a591fba08be04d5659d03cce08285)
DeltaFile
+2-0ObsoleteFiles.inc
+2-01 files

FreeBSD/src 09b435d. ObsoleteFiles.inc

Remove obsolete clang18 files for aarch64

This fixes a warning from "make delete-old" about a non-empty directory
on aarch64.

Reviewed by:    dim
Fixes:          0fca6ea1d4ee
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D48904
DeltaFile
+2-0ObsoleteFiles.inc
+2-01 files

FreeBSD/src 32a711eclang/include/clang/Basic BuiltinsX86.td, clang/lib/AST/ByteCode Compiler.cpp

Vendor import of llvm-project main llvmorg-20-init-19504-g8c2574832ed2,
the last commit before the upstream release/20.x branch was created.
DeltaFile
+5,377-2,555llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+6,675-0clang/lib/AST/ByteCode/Compiler.cpp
+5,834-0libcxx/include/__cxx03/regex
+3,255-2,523llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+0-5,599clang/lib/AST/Interp/Compiler.cpp
+5,506-0clang/include/clang/Basic/BuiltinsX86.td
+26,647-10,6778,114 files not shown
+693,057-245,0608,120 files

FreeBSD/src 2611baecontrib/llvm-project/llvm/lib/CodeGen/SelectionDAG LegalizeVectorTypes.cpp, contrib/llvm-project/llvm/lib/MC WasmObjectWriter.cpp

Merge llvm-project release/19.x llvmorg-19.1.7-0-gcd708029e0b2

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.7-0-gcd708029e0b2,
a.k.a. 19.1.7 release.

PR:             280562
MFC after:      3 days

(cherry picked from commit 6c05f3a74f30934ee60919cc97e16ec69b542b06)
DeltaFile
+67-44contrib/llvm-project/llvm/lib/MC/WasmObjectWriter.cpp
+8-9contrib/llvm-project/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+7-4contrib/llvm-project/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+6-2contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+7-0contrib/llvm-project/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
+3-3lib/clang/include/lldb/Version/Version.inc
+98-6219 files not shown
+138-8725 files

FreeBSD/src dc3f24econtrib/llvm-project/llvm/lib/CodeGen/SelectionDAG LegalizeVectorTypes.cpp, contrib/llvm-project/llvm/lib/MC WasmObjectWriter.cpp

Merge llvm-project release/19.x llvmorg-19.1.7-0-gcd708029e0b2

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.7-0-gcd708029e0b2,
a.k.a. 19.1.7 release.

PR:             280562
MFC after:      3 days

(cherry picked from commit 6c05f3a74f30934ee60919cc97e16ec69b542b06)
DeltaFile
+67-44contrib/llvm-project/llvm/lib/MC/WasmObjectWriter.cpp
+8-9contrib/llvm-project/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+7-4contrib/llvm-project/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+6-2contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+7-0contrib/llvm-project/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
+3-3lib/clang/include/lldb/Version/Version.inc
+98-6219 files not shown
+138-8725 files

FreeBSD/src 6c05f3acontrib/llvm-project/llvm/lib/CodeGen/SelectionDAG LegalizeVectorTypes.cpp, contrib/llvm-project/llvm/lib/MC WasmObjectWriter.cpp

Merge llvm-project release/19.x llvmorg-19.1.7-0-gcd708029e0b2

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.7-0-gcd708029e0b2,
a.k.a. 19.1.7 release.

PR:             280562
MFC after:      3 days
DeltaFile
+67-44contrib/llvm-project/llvm/lib/MC/WasmObjectWriter.cpp
+8-9contrib/llvm-project/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+7-4contrib/llvm-project/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+6-2contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+7-0contrib/llvm-project/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
+3-3lib/clang/include/lldb/Version/Version.inc
+98-6219 files not shown
+138-8725 files

FreeBSD/src a51c056llvm/lib/CodeGen/SelectionDAG LegalizeVectorTypes.cpp, llvm/lib/MC WasmObjectWriter.cpp

Vendor import of llvm-project branch release/19.x llvmorg-19.1.7-0-gcd708029e0b2, a.k.a. 19.1.7 release.
DeltaFile
+67-44llvm/lib/MC/WasmObjectWriter.cpp
+8-9llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+7-4llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+6-2llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+7-0llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
+4-1llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+99-6012 files not shown
+123-7218 files

FreeBSD/src 014064blib/libgcc_s/arm Symbol.map

Revert "Export additional __aeabi_ symbols from arm's libgcc_s"

This reverts commit caab831338f4eeaa7455e981478be9fd414b7969, because
some new unresolved issues came up in bug 271087:

  Some programs depend on these symbols, when they are compiled for armv6
  or armv7. Closes #1560 (slightly changed due to sorting of the symbols).

PR:             271087
Reported by:    mmel
MFC after:      immediately

(cherry picked from commit b662ca1d6cd82044c6cb79075e1830b97594bef3)
DeltaFile
+1-26lib/libgcc_s/arm/Symbol.map
+1-261 files

FreeBSD/src 589cf0flib/libgcc_s/arm Symbol.map

Revert "Export additional __aeabi_ symbols from arm's libgcc_s"

This reverts commit caab831338f4eeaa7455e981478be9fd414b7969, because
some new unresolved issues came up in bug 271087:

  Some programs depend on these symbols, when they are compiled for armv6
  or armv7. Closes #1560 (slightly changed due to sorting of the symbols).

PR:             271087
Reported by:    mmel
MFC after:      immediately

(cherry picked from commit b662ca1d6cd82044c6cb79075e1830b97594bef3)
DeltaFile
+1-26lib/libgcc_s/arm/Symbol.map
+1-261 files

FreeBSD/src b662ca1lib/libgcc_s/arm Symbol.map

Revert "Export additional __aeabi_ symbols from arm's libgcc_s"

This reverts commit caab831338f4eeaa7455e981478be9fd414b7969, because
some new unresolved issues came up in bug 271087:

  Some programs depend on these symbols, when they are compiled for armv6
  or armv7. Closes #1560 (slightly changed due to sorting of the symbols).

PR:             271087
Reported by:    mmel
MFC after:      immediately
DeltaFile
+1-26lib/libgcc_s/arm/Symbol.map
+1-261 files

FreeBSD/src a0da8a5lib/libgcc_s/arm Symbol.map

Export additional __aeabi_ symbols from arm's libgcc_s

Some programs depend on these symbols, when they are compiled for armv6
or armv7. Closes #1560 (slightly changed due to sorting of the symbols).

PR:             271087
Reported by:    fuz
Submitted by:   jfc at mit.edu
MFC after:      1 week

(cherry picked from commit caab831338f4eeaa7455e981478be9fd414b7969)
DeltaFile
+26-1lib/libgcc_s/arm/Symbol.map
+26-11 files

FreeBSD/src f27d1eclib/libgcc_s/arm Symbol.map

Export additional __aeabi_ symbols from arm's libgcc_s

Some programs depend on these symbols, when they are compiled for armv6
or armv7. Closes #1560 (slightly changed due to sorting of the symbols).

PR:             271087
Reported by:    fuz
Submitted by:   jfc at mit.edu
MFC after:      1 week

(cherry picked from commit caab831338f4eeaa7455e981478be9fd414b7969)
DeltaFile
+26-1lib/libgcc_s/arm/Symbol.map
+26-11 files

FreeBSD/src 6258b5busr.sbin/bsdinstall/scripts zfsboot

bsdinstall zfsboot: Add an option to edit the ZFS pool creation options

This allows the default options (-O compress=lz4 -O atime=off) to be
overridden, before the ZFS boot pool is created. For example, to set the
compression algorithm to something different.

Reviewed by:    jhb, dim
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D47478

(cherry picked from commit ca7e12f7df222458ec5cac8009c5b0931fb4a95b)
DeltaFile
+12-0usr.sbin/bsdinstall/scripts/zfsboot
+12-01 files

FreeBSD/src 7d6ae58usr.sbin/bsdinstall/scripts zfsboot

bsdinstall zfsboot: Add an option to edit the ZFS pool creation options

This allows the default options (-O compress=lz4 -O atime=off) to be
overridden, before the ZFS boot pool is created. For example, to set the
compression algorithm to something different.

Reviewed by:    jhb, dim
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D47478

(cherry picked from commit ca7e12f7df222458ec5cac8009c5b0931fb4a95b)
DeltaFile
+12-0usr.sbin/bsdinstall/scripts/zfsboot
+12-01 files

FreeBSD/src caab831lib/libgcc_s/arm Symbol.map

Export additional __aeabi_ symbols from arm's libgcc_s

Some programs depend on these symbols, when they are compiled for armv6
or armv7. Closes #1560 (slightly changed due to sorting of the symbols).

PR:             271087
Reported by:    fuz
Submitted by:   jfc at mit.edu
MFC after:      1 week
DeltaFile
+26-1lib/libgcc_s/arm/Symbol.map
+26-11 files

FreeBSD/src ca7e12fusr.sbin/bsdinstall/scripts zfsboot

bsdinstall zfsboot: Add an option to edit the ZFS pool creation options

This allows the default options (-O compress=lz4 -O atime=off) to be
overridden, before the ZFS boot pool is created. For example, to set the
compression algorithm to something different.

Reviewed by:    jhb, dim
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D47478
DeltaFile
+12-0usr.sbin/bsdinstall/scripts/zfsboot
+12-01 files

FreeBSD/src a8e2256contrib/llvm-project/clang/lib/Interpreter Wasm.cpp, contrib/llvm-project/llvm/lib/Target/AArch64 AArch64FrameLowering.cpp AArch64ISelLowering.cpp

Merge llvm-project release/19.x llvmorg-19.1.5-0-gab4b5a2db582

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.5-0-gab4b5a2db582,
a.k.a. 19.1.5 release.

PR:             280562
MFC after:      3 days

(cherry picked from commit 71ac745d76c3ba442e753daff1870893f272b29d)
DeltaFile
+50-15contrib/llvm-project/clang/lib/Interpreter/Wasm.cpp
+21-38contrib/llvm-project/llvm/lib/Target/Mips/MipsMSAInstrInfo.td
+21-13contrib/llvm-project/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+11-8contrib/llvm-project/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+16-0contrib/llvm-project/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+8-5contrib/llvm-project/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+127-7930 files not shown
+225-11636 files

FreeBSD/src 4db4ed3contrib/llvm-project/clang/lib/Interpreter Wasm.cpp, contrib/llvm-project/llvm/lib/Target/AArch64 AArch64FrameLowering.cpp AArch64ISelLowering.cpp

Merge llvm-project release/19.x llvmorg-19.1.5-0-gab4b5a2db582

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.5-0-gab4b5a2db582,
a.k.a. 19.1.5 release.

PR:             280562
MFC after:      3 days

(cherry picked from commit 71ac745d76c3ba442e753daff1870893f272b29d)
DeltaFile
+50-15contrib/llvm-project/clang/lib/Interpreter/Wasm.cpp
+21-38contrib/llvm-project/llvm/lib/Target/Mips/MipsMSAInstrInfo.td
+21-13contrib/llvm-project/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+11-8contrib/llvm-project/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+16-0contrib/llvm-project/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+8-5contrib/llvm-project/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+127-7930 files not shown
+225-11636 files

FreeBSD/src 210ff86tools/build depend-cleanup.sh

depend-cleanup: fix after 99b2ab71c5b6

After commit 99b2ab71c5b6 was merged, the stable/13 version of
depend-cleanup gives an error "run: not found". This is because the "dry
run" functionality from commit 1ec7cb1b5d18 was never merged.

Remove the "run" invocation to make the script correctly again, as
merging commit 1ec7cb1b5d18 results in many conflicts.

Direct commit to stable/13, since this does not apply to other branches.

Reported by:    des
Fixes:          99b2ab71c5b6
DeltaFile
+1-1tools/build/depend-cleanup.sh
+1-11 files

FreeBSD/src 71ac745contrib/llvm-project/clang/lib/Interpreter Wasm.cpp, contrib/llvm-project/llvm/lib/Analysis MemorySSAUpdater.cpp

Merge llvm-project release/19.x llvmorg-19.1.5-0-gab4b5a2db582

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.5-0-gab4b5a2db582,
a.k.a. 19.1.5 release.

PR:             280562
MFC after:      3 days
DeltaFile
+50-15contrib/llvm-project/clang/lib/Interpreter/Wasm.cpp
+21-38contrib/llvm-project/llvm/lib/Target/Mips/MipsMSAInstrInfo.td
+21-13contrib/llvm-project/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+11-8contrib/llvm-project/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+16-0contrib/llvm-project/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+11-2contrib/llvm-project/llvm/lib/Analysis/MemorySSAUpdater.cpp
+130-7630 files not shown
+225-11636 files

FreeBSD/src f56b67cclang/lib/Interpreter Wasm.cpp, llvm/lib/Analysis MemorySSAUpdater.cpp

Vendor import of llvm-project branch release/19.x llvmorg-19.1.5-0-gab4b5a2db582, a.k.a. 19.1.5 release.
DeltaFile
+50-15clang/lib/Interpreter/Wasm.cpp
+21-38llvm/lib/Target/Mips/MipsMSAInstrInfo.td
+21-13llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+11-8llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+16-0llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+11-2llvm/lib/Analysis/MemorySSAUpdater.cpp
+130-7623 files not shown
+210-10129 files

FreeBSD/src 99b2ab7tools/build depend-cleanup.sh

llvm19: permit incremental builds from llvm18

Detect and delete out of date clang-tblgen produced output.  I found it
sufficent for compilation to delete only arm_*.inc files, but it seems
safer to regenerate all output and a few extra clang-tblgen runs pales
in comparison to the full build we're doing at this point.

Reviewed by:    dim, emaste
Differential Revision:  https://reviews.freebsd.org/D47270

(cherry picked from commit 8b2e7da70855e48c0ba8c874fa528b599fb7c9a9)
DeltaFile
+10-0tools/build/depend-cleanup.sh
+10-01 files

FreeBSD/src 2d7d4c6tools/build depend-cleanup.sh

llvm19: permit incremental builds from llvm18

Detect and delete out of date clang-tblgen produced output.  I found it
sufficent for compilation to delete only arm_*.inc files, but it seems
safer to regenerate all output and a few extra clang-tblgen runs pales
in comparison to the full build we're doing at this point.

Reviewed by:    dim, emaste
Differential Revision:  https://reviews.freebsd.org/D47270

(cherry picked from commit 8b2e7da70855e48c0ba8c874fa528b599fb7c9a9)
DeltaFile
+10-0tools/build/depend-cleanup.sh
+10-01 files

FreeBSD/src b802ab1sys/sys param.h

Bump __FreeBSD_version for llvm 19.1.4 merge

PR:             280562
MFC after:      1 month

(cherry picked from commit f3dbef108212460489ae68b4c47e20b73984f433)
DeltaFile
+1-1sys/sys/param.h
+1-11 files

FreeBSD/src a58eb66cddl/lib/libzpool Makefile

libzpool: add workaround for MIPS-specific llvm bug compiling arc.c

This works around an assertion in llvm's shrink wrapping analysis pass,
when compiling arc.c for mips and mips64:

  Assertion failed: (PhysReg.isPhysical() && "Unallocated register?!"), function useOrDefCSROrFI, file /usr/src/contrib/llvm-project/llvm/lib/CodeGen/ShrinkWrap.cpp, line 341.

The bug will also be submitted upstream.

Direct commit to stable/13, since MIPS support was removed in 14.0.
DeltaFile
+8-0cddl/lib/libzpool/Makefile
+8-01 files

FreeBSD/src 5dc0616contrib/llvm-project/clang/include/clang/Basic BuiltinsLoongArchLASX.def BuiltinsLoongArchLSX.def, contrib/llvm-project/compiler-rt/lib/sanitizer_common sanitizer_linux.cpp

Merge llvm-project release/19.x llvmorg-19.1.4-0-gaadaa00de76e

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.4-0-gaadaa00de76e,
a.k.a. 19.1.4 release.

PR:             280562
MFC after:      1 month

(cherry picked from commit 415efcecd8b80f68e76376ef2b854cb6f5c84b5a)
DeltaFile
+73-73contrib/llvm-project/clang/include/clang/Basic/BuiltinsLoongArchLASX.def
+66-66contrib/llvm-project/clang/include/clang/Basic/BuiltinsLoongArchLSX.def
+39-16contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+8-45contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
+17-21contrib/llvm-project/llvm/lib/IR/Mangler.cpp
+31-3contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
+234-22429 files not shown
+371-26935 files

FreeBSD/src cdbdcbdcontrib/llvm-project/clang/include/clang/AST ExternalASTSource.h, contrib/llvm-project/clang/lib/CodeGen CGBuiltin.cpp

Merge llvm-project release/19.x llvmorg-19.1.3-0-gab51eccf88f5

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.3-0-gab51eccf88f5,
a.k.a. 19.1.3 release.

PR:             280562
MFC after:      1 month

(cherry picked from commit d686ce931cab72612a9e1ada9fe99d65e11a32a3)
DeltaFile
+35-13contrib/llvm-project/clang/include/clang/AST/ExternalASTSource.h
+20-25contrib/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp
+29-6contrib/llvm-project/llvm/include/llvm/TargetParser/Triple.h
+18-3contrib/llvm-project/clang/lib/Sema/SemaTemplateDeductionGuide.cpp
+7-5contrib/llvm-project/llvm/lib/Transforms/Utils/ModuleUtils.cpp
+4-8contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
+113-6031 files not shown
+203-9737 files

FreeBSD/src 7954b90contrib/llvm-project/libcxx/src expected.cpp, lib/libc++ Makefile

Fix buildworld with gcc 12 after llvm-19 import

Unfortunately gcc 12's is not yet capable of compiling all of libc++
19's C++23 code, which results in errors similar to:

  /usr/src/freebsd/src/contrib/llvm-project/libcxx/include/__algorithm/ranges_contains.h:41:3: error: 'static constexpr bool std::__1::ranges::__contains::__fn::operator()(_Iter, _Sent, const _Type&, _Proj)' must be a non-static member function
     41 |   operator()(_Iter __first, _Sent __last, const _Type& __value, _Proj __proj = {}) {
        |   ^~~~~~~~
  /usr/src/freebsd/src/contrib/llvm-project/libcxx/include/__algorithm/ranges_contains.h:48:3: error: 'static constexpr bool std::__1::ranges::__contains::__fn::operator()(_Range&&, const _Type&, _Proj)' must be a non-static member function
     48 |   operator()(_Range&& __range, const _Type& __value, _Proj __proj = {}) {
        |   ^~~~~~~~

Until we can get rid of gcc 12, work around this by making it compile
libc++ in C++20 mode instead.

NOTE: The resulting libc++ library will not be C++23 compatible! Please
try to avoid shipping it, and use gcc 13 instead, if you must use gcc.

PR:             280562

    [3 lines not shown]
DeltaFile
+8-0lib/libc++/Makefile
+2-0contrib/llvm-project/libcxx/src/expected.cpp
+10-02 files