LLVM/project c351078llvm/test/FileCheck/match-time-error-propagation invalid-excluded-pattern.txt matched-excluded-pattern.txt

[FileCheck] Resurrect overflow tests (#198136)

D150880 (landed as 0726cb004718) uses `APInt` to eliminate most integer
overflow issues from FileCheck numeric variables. It also removes the 4
tests in `llvm/test/FileCheck/match-time-error-propagation`.

While the elimination of overflow issues reduces the importance of those
tests, the tests still seem worthwhile. Without them, I see no test that
exercises the "unable to substitute variable or numeric expression:
overflow error" diagnostic in FileCheck input dumps.

This patch resurrects those tests and updates them to exercise the
remaining unsigned underflow case.
DeltaFile
+68-0llvm/test/FileCheck/match-time-error-propagation/invalid-excluded-pattern.txt
+63-0llvm/test/FileCheck/match-time-error-propagation/matched-excluded-pattern.txt
+58-0llvm/test/FileCheck/match-time-error-propagation/matched-expected-pattern.txt
+55-0llvm/test/FileCheck/match-time-error-propagation/invalid-expected-pattern.txt
+244-04 files

LLVM/project c575d13llvm/docs LangRef.rst

[𝘀𝗽𝗿] initial version

Created using spr 1.3.6-beta.1
DeltaFile
+6-6llvm/docs/LangRef.rst
+6-61 files

LLVM/project b9eb0ballvm/include/llvm/IR DIBuilder.h, llvm/lib/IR DIBuilder.cpp

[NFC][DebugInfo] Add Annotations parameter to DIBuilder::createStructType (#197331)

DICompositeType already has an "Annotations" ivar. This simply adds a
way to set it from the "createStructType" function.
DeltaFile
+62-0llvm/unittests/IR/DebugInfoTest.cpp
+19-9llvm/include/llvm/IR/DIBuilder.h
+11-8llvm/lib/IR/DIBuilder.cpp
+92-173 files

LLVM/project d2b4dacllvm/lib/DebugInfo/DWARF DWARFVerifier.cpp, llvm/test/tools/llvm-dwarfdump/X86 debug-names-verify-completeness-llvm-annotation.ll

[DWARFVerifier] Skip DW_TAG_LLVM_annotation in DWARFVerifier (#198867)

Annotations are not indexed, so we need to skip them on the verifier.

Assisted by: claude
DeltaFile
+37-0llvm/test/tools/llvm-dwarfdump/X86/debug-names-verify-completeness-llvm-annotation.ll
+6-0llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
+43-02 files

LLVM/project 287bc01llvm/lib/Transforms/Vectorize VectorCombine.cpp, llvm/test/Transforms/PhaseOrdering/X86 vector-reductions-logical.ll

[VectorCombine] foldShuffleChainsToReduce - fold at equal costs (#199242)

Similar to other VectorCombine folds, in case of OldCost == NewCost, use
the reduction if at least the root BinOp is removed as well as the
ExtractElement.

Noticed while triaging codegen for #199208
DeltaFile
+8-12llvm/test/Transforms/PhaseOrdering/X86/vector-reductions-logical.ll
+2-6llvm/test/Transforms/VectorCombine/X86/extract-cmp-binop.ll
+2-3llvm/test/Transforms/VectorCombine/AArch64/partial-reduce-crash.ll
+1-1llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+13-224 files

FreeBSD/ports 29a1179math/R-cran-lazyeval distinfo Makefile

math/R-cran-lazyeval: Update to 0.2.3

The previous version (0.2.2) failed to build against math/R 4.6.0.
PRENV, PREXPR, and Rf_findVar are non-API entry points whose
declarations are no longer available in R 4.6.0's installed headers.

Version 0.2.3 rewrites the C implementation on top of the rlang C
library to comply with R's public C API.

Release notes:  https://github.com/hadley/lazyeval/releases/tag/v0.2.3
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D56904
DeltaFile
+3-3math/R-cran-lazyeval/distinfo
+3-2math/R-cran-lazyeval/Makefile
+6-52 files

LLVM/project df7948elldb/source/Plugins/Platform/MacOSX PlatformDarwin.cpp PlatformAppleSimulator.cpp

[LLDB] Refactor SDK-related functions in Platform (#199141)

There are a lot of similar and repetetive variants of SDK lookups in the
Apple platform plugins. This commit unifies the implementations, error
handling and progress reporting.

Assisted-by: claude
DeltaFile
+37-60lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
+8-12lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp
+5-11lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp
+3-0lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h
+1-1lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.h
+54-845 files

FreeBSD/src 70739f3contrib/ldns/ldns config.h util.h

ldns: Regenerate configuration after update

MFC after:      1 week
Fixes:          d44c9549ef31 ("ldns: Update to 1.8.4")
Fixes:          9ed998a81bab ("ldns: Update to 1.9.0")
DeltaFile
+38-9contrib/ldns/ldns/config.h
+24-2contrib/ldns/ldns/util.h
+1-2contrib/ldns/ldns/net.h
+63-133 files

LLVM/project 6484f87clang-tools-extra/clang-doc YAMLGenerator.cpp

[clang-doc][nfc] Use static declarations to enforce internal linkage
DeltaFile
+4-4clang-tools-extra/clang-doc/YAMLGenerator.cpp
+4-41 files

LLVM/project 4d71176clang-tools-extra/clang-doc Serialize.cpp

[clang-doc][nfc] Silence tidy warning about anonymous namespace

clang-tidy complains that we should prefer static over the anonymous
namespace, despite the API being static in addition to being in the
anonymous namespace. We can silence the diagnostic by simply removing
the namespace declaration.
DeltaFile
+0-2clang-tools-extra/clang-doc/Serialize.cpp
+0-21 files

LLVM/project 031a54fflang-rt/cmake/modules AddFlangRT.cmake, flang-rt/lib/runtime CMakeLists.txt main.cpp

[flang-rt] Remove fallback if RPC headers not found (#199211)

Summary:
These are stored in the libc/shared and have a unified CMake helper to
find them. Likely these will be a more core dependency as LLVM uses them
for constexpr math, libcxx uses it, and compiler-rt will probably use
bits of it.

The original intention was to allow building flang-rt with a partial
checkout, but i don't think this is a reasonable use-case and I do not
think this exists in practice.
DeltaFile
+1-5flang-rt/lib/runtime/CMakeLists.txt
+1-3flang-rt/cmake/modules/AddFlangRT.cmake
+0-3flang-rt/lib/runtime/main.cpp
+2-113 files

LLVM/project 29b1417clang/test/Driver riscv-cpus.c, clang/test/Driver/print-enabled-extensions riscv-sifive-p870-d.c riscv-sifive-p870.c

[RISCV] Rename sifive-p870 -> sifive-p870-d (#199077)

This matches the name on SiFive's website.
DeltaFile
+82-0clang/test/Driver/print-enabled-extensions/riscv-sifive-p870-d.c
+0-82clang/test/Driver/print-enabled-extensions/riscv-sifive-p870.c
+23-23llvm/lib/Target/RISCV/RISCVProcessors.td
+4-4clang/test/Driver/riscv-cpus.c
+2-2clang/test/Misc/target-invalid-cpu-note/riscv.c
+1-1llvm/test/tools/llvm-mca/RISCV/SiFiveP800/rvv/comparison.test
+112-11237 files not shown
+149-14843 files

FreeBSD/src af7e160share/man/man4 crypto.4 qat_c2xxx.4

crypto driver manuals: Add crypto to search index

While here, tag spdx and sync the drivers in crypto(4)/SEE ALSO.

MFC after:              2 days (added back hifn)
Differential Revision:  https://reviews.freebsd.org/D57060

(cherry picked from commit 9096a8b1c89c7e98df0d5a27cf1a5f4c6e8ddf19)
DeltaFile
+10-1share/man/man4/crypto.4
+5-3share/man/man4/qat_c2xxx.4
+5-2share/man/man4/padlock.4
+5-2share/man/man4/aesni.4
+3-3share/man/man4/qat.4
+28-115 files

FreeBSD/src 9b21cf7share/man/man5 style.mdoc.5

style.mdoc: Explain why not to abuse Nm

MFC after:              3 days
Reviewed by:            0mp
Differential Revision:  https://reviews.freebsd.org/D55299

(cherry picked from commit bcd50fe5c3c6e70c710e13378999814e9df43d3c)
DeltaFile
+6-0share/man/man5/style.mdoc.5
+6-01 files

OpenBSD/ports 7nnVEgqmail/mboxgrep Makefile, mail/mboxgrep/patches patch-src_wrap_c patch-src_wrap_h

   mboxgrep: fix build with llvm22

   gzFile is a pointer type, so it should be used, not gzFile *. It is also
   not equivalent to FILE *, so undo some incorrect fixes from prior compiler
   updates.
VersionDeltaFile
1.1+15-0mail/mboxgrep/patches/patch-src_wrap_c
1.1+12-0mail/mboxgrep/patches/patch-src_wrap_h
1.4+0-12mail/mboxgrep/patches/patch-src_main_c
1.1+12-0mail/mboxgrep/patches/patch-src_scan_c
1.19+1-1mail/mboxgrep/Makefile
+40-135 files

FreeNAS/freenas ae5f053src/middlewared/middlewared/plugins dlm.py, src/middlewared/middlewared/plugins/iscsi_ alua.py scst.py

Release parked async LUN-replace cleanup after DLM peer eviction

scst.async_lun_replace=1 now also tells the kernel to park the deferred
cleanup of old tgt_devs from each LUN replace until the flag is cleared.
This avoids stalling become_active on scst_dlm_lock_wait inside
scst_clear_reservation while the dead peer is still a DLM lockspace
member.

Add iscsi.scst.disable_async_lun_replace and call it from the end of
iscsi.alua.reset_active, after dlm.reset_active (which evicts the peer)
completes.

(cherry picked from commit b89dec23e5eb9f9ddfe3efb8b6849833fbed7deb)
DeltaFile
+24-2src/middlewared/middlewared/plugins/iscsi_/alua.py
+20-1src/middlewared/middlewared/plugins/iscsi_/scst.py
+0-5src/middlewared/middlewared/plugins/dlm.py
+44-83 files

FreeNAS/freenas 80e445ftests/sharing_protocols/iscsi test_262_iscsi_alua.py

iSCSI ALUA: regression test for failover LUN-replace stall

Add an extended test that builds 2 targets (25 + 10 LUNs), opens an
iSCSI session to the standby on the 25-LUN target so the kernel has
tgt_devs to clean up during become_active, then triggers an ungraceful
failover via poweroff_vm. Asserts:

  - /var/log/failover.log on the new master does not contain
    'Failed to restart service "iscsitarget" after 15 seconds',
    which would indicate the LUN-replace loop stalled.
  - /sys/kernel/scst_tgt/async_lun_replace reads 0 after failover,
    confirming reset_active released the parked cleanup work.
  - All LUNs are reachable on the new master.

A function-scoped fixture handles recovery (start_vm, wait_for_backup,
wait_for_settle) so the cluster is restored to a clean two-node state
even if an assertion above failed.

Uses the dataset() asset helper rather than zvol() for lower

    [3 lines not shown]
DeltaFile
+251-2tests/sharing_protocols/iscsi/test_262_iscsi_alua.py
+251-21 files

FreeNAS/freenas fc31cc5src/middlewared/middlewared/plugins dlm.py, src/middlewared/middlewared/plugins/iscsi_ alua.py scst.py

Release parked async LUN-replace cleanup after DLM peer eviction

scst.async_lun_replace=1 now also tells the kernel to park the deferred
cleanup of old tgt_devs from each LUN replace until the flag is cleared.
This avoids stalling become_active on scst_dlm_lock_wait inside
scst_clear_reservation while the dead peer is still a DLM lockspace
member.

Add iscsi.scst.disable_async_lun_replace and call it from the end of
iscsi.alua.reset_active, after dlm.reset_active (which evicts the peer)
completes.

(cherry picked from commit b89dec23e5eb9f9ddfe3efb8b6849833fbed7deb)
DeltaFile
+24-2src/middlewared/middlewared/plugins/iscsi_/alua.py
+20-1src/middlewared/middlewared/plugins/iscsi_/scst.py
+0-5src/middlewared/middlewared/plugins/dlm.py
+44-83 files

FreeNAS/freenas c2653c5tests/sharing_protocols/iscsi test_262_iscsi_alua.py

iSCSI ALUA: regression test for failover LUN-replace stall

Add an extended test that builds 2 targets (25 + 10 LUNs), opens an
iSCSI session to the standby on the 25-LUN target so the kernel has
tgt_devs to clean up during become_active, then triggers an ungraceful
failover via poweroff_vm. Asserts:

  - /var/log/failover.log on the new master does not contain
    'Failed to restart service "iscsitarget" after 15 seconds',
    which would indicate the LUN-replace loop stalled.
  - /sys/kernel/scst_tgt/async_lun_replace reads 0 after failover,
    confirming reset_active released the parked cleanup work.
  - All LUNs are reachable on the new master.

A function-scoped fixture handles recovery (start_vm, wait_for_backup,
wait_for_settle) so the cluster is restored to a clean two-node state
even if an assertion above failed.

Uses the dataset() asset helper rather than zvol() for lower

    [3 lines not shown]
DeltaFile
+251-2tests/sharing_protocols/iscsi/test_262_iscsi_alua.py
+251-21 files

FreeNAS/freenas 80f49a4src/middlewared/middlewared/plugins dlm.py, src/middlewared/middlewared/plugins/iscsi_ alua.py scst.py

Release parked async LUN-replace cleanup after DLM peer eviction

scst.async_lun_replace=1 now also tells the kernel to park the deferred
cleanup of old tgt_devs from each LUN replace until the flag is cleared.
This avoids stalling become_active on scst_dlm_lock_wait inside
scst_clear_reservation while the dead peer is still a DLM lockspace
member.

Add iscsi.scst.disable_async_lun_replace and call it from the end of
iscsi.alua.reset_active, after dlm.reset_active (which evicts the peer)
completes.

(cherry picked from commit b89dec23e5eb9f9ddfe3efb8b6849833fbed7deb)
DeltaFile
+24-2src/middlewared/middlewared/plugins/iscsi_/alua.py
+20-1src/middlewared/middlewared/plugins/iscsi_/scst.py
+0-5src/middlewared/middlewared/plugins/dlm.py
+44-83 files

LLVM/project cde86c0llvm/lib/IR Verifier.cpp, llvm/lib/Transforms/InstCombine InstCombineCalls.cpp

[LLVM] Handle zero first-arg-index in modular-format (#199118)

Relax modular-format attribute validation in the Verifier to allow a
first-arg-index of 0 (meaning no variadic arguments, e.g. for v-family
functions like vsnprintf).

Guard InstCombine's optimizeModularFormat against zero index.

Generated by Gemini, reviewed by dthorn
DeltaFile
+14-0llvm/test/Transforms/InstCombine/modular-format.ll
+5-5llvm/test/Verifier/modular-format.ll
+1-1llvm/lib/IR/Verifier.cpp
+2-0llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+22-64 files

FreeNAS/freenas c5591a1src/middlewared/middlewared/plugins dlm.py, src/middlewared/middlewared/plugins/iscsi_ alua.py scst.py

NAS-140948 / 27.0.0-BETA.1 / Avoid LUN-replace stall and slow HA-session cleanup at failover (#18920)

Avoid LUN-replace stall and slow HA-session cleanup at failover

Three small middleware changes that together address a failover
LUN-replace stall and the long cleanup path it sits behind:

* iscsi.scst: add disable_async_lun_replace, the matching companion to
enable_async_lun_replace. Writing 0 to async_lun_replace tells the
kernel to release the parked LUN-replace cleanup that was deferred while
the flag was set. This requires a corresponding SCST PR.

* iscsi.alua.reset_active: call disable_async_lun_replace from a finally
block, after dlm.reset_active. The peer is already evicted from the DLM
lockspaces by then (eject_peer is its first step), so releasing the
parked work is safe.

* iscsi.target.login_ha_targets: lower the per-session
replacement_timeout on freshly-logged-in HA sessions from the 120s

    [3 lines not shown]
DeltaFile
+251-2tests/sharing_protocols/iscsi/test_262_iscsi_alua.py
+24-2src/middlewared/middlewared/plugins/iscsi_/alua.py
+20-1src/middlewared/middlewared/plugins/iscsi_/scst.py
+0-5src/middlewared/middlewared/plugins/dlm.py
+295-104 files

LLVM/project 4ab9924flang/lib/Lower/OpenMP DataSharingProcessor.cpp

Remove unnecessary symbol flag check
DeltaFile
+0-5flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
+0-51 files

OpenBSD/ports wXtu1Whx11/stumpwm Makefile

   bump x11/stumpwm after lang/sbcl update
VersionDeltaFile
1.42+1-1x11/stumpwm/Makefile
+1-11 files

OpenBSD/ports na3I6bRx11/xli Makefile, x11/xli/patches patch-pcd_c

   xli: fix build with llvm22: bfill() is a memset wrapper using (char *)
VersionDeltaFile
1.1+12-0x11/xli/patches/patch-pcd_c
1.6+1-1x11/xli/Makefile
+13-12 files

LLVM/project 33f8e83llvm/test/Transforms/SLPVectorizer/RISCV fmuladd_width_prop.ll

[SLP] Add test for fmuladd bit width propogation (#199128)

Not profitable with VF=4, but we only we try smaller VFs if the load can
fit in a single vector register found by BoUpSLP::getVectorElementSize().
Requires proprogation of bit widths through the fmuladd intrinsic to vectorize
at VF=2. This is from the hot block in `538.imagick_r` which fails to vectorize
when vectorization is removed from pre-LTO, see
https://github.com/llvm/llvm-project/pull/195886#issuecomment-4486422243.
DeltaFile
+71-0llvm/test/Transforms/SLPVectorizer/RISCV/fmuladd_width_prop.ll
+71-01 files

OpenBSD/ports bmAKI00lang/sbcl Makefile distinfo, lang/sbcl/patches patch-src_runtime_os-common_c

   update lang/sbcl to 2.6.4

   Release notes: https://sbcl.org/news.html#2.6.4
VersionDeltaFile
1.89+2-2lang/sbcl/Makefile
1.53+2-2lang/sbcl/distinfo
1.2+1-1lang/sbcl/patches/patch-src_runtime_os-common_c
+5-53 files

FreeBSD/src 76c3387libexec/tftpd tftp-io.c

tftpd: Simplify packet drop macro

The first argument is always the function name, for which we can simply
use __func__.  This leaves only the optional return value, so we can use
a single variadic macro instead of two nearly-identical copies.

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D57076
DeltaFile
+23-28libexec/tftpd/tftp-io.c
+23-281 files

FreeBSD/src 9338937libexec/tftpd tftp-io.c

tftpd: Add missing bounds checks

In send_[rw]rq(), we were using strlcpy() to avoid overflowing our
packet buffer, then failing to check the result and blithely advancing
our pointer by the full length.

Luckily, this code is only ever used by tftp(1), not tftpd(8).

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D57075
DeltaFile
+32-26libexec/tftpd/tftp-io.c
+32-261 files

FreeBSD/src b94689dusr.bin/tftp/tests tftp_test.sh

tftp: Add test case with over-long URL

This adds a test case that passes a very long URL on the command line,
which would previously have resulted in a benign buffer overflow in
urihandling(), detectable only by compiling tftp with ASAN enabled.

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D57074
DeltaFile
+24-0usr.bin/tftp/tests/tftp_test.sh
+24-01 files