FreeBSD/src 9c78088. README.md NEWS

atf: import atf-0.26

This change imports 0.26 release content from [upstream][1].

The atf-0.26 artifact was been verified by [SHA256 checksum][2].

This update pulls in a large number of memory management fixes, polished upstreamed
content from contrib/atf in FreeBSD (proper), etc.

Please note that this new version requires a C++-20 compatible toolchain
to build.

More information about the release (from a high level) can be found in
the [release notes][3].

Updated via [`update_atf.sh`][4] using `update_atf.sh 0.26 atf-0.26`.

1: https://github.com/freebsd/atf/releases/download/atf-0.26/atf-0.26.tar.gz
2: https://github.com/freebsd/atf/releases/download/atf-0.26/atf-0.26.tar.gz.sha256

    [2 lines not shown]
DeltaFile
+12-3NEWS
+1-1README.md
+13-42 files

OPNSense/core cc6419csrc/opnsense/mvc/app/models/OPNsense/Core/ACL ACL.xml

routing: fix ACL patterns for gateway groups (#10909)

Since the conversion in f10505148 the page lives at ui/routing/gateway_groups
and its API at api/routing/group_settings/*, so a user holding only this privilege
sees no Group entry under System: Gateways and receives 403 on every
group_settings call.
DeltaFile
+2-2src/opnsense/mvc/app/models/OPNsense/Core/ACL/ACL.xml
+2-21 files

LLVM/project 0c53ebfllvm/include/llvm/ABI TargetInfo.h, llvm/lib/ABI TargetInfo.cpp DefaultTargetInfo.cpp

[llvm][ABI] Make the _BitInt register threshold target-driven
DeltaFile
+29-1llvm/unittests/ABI/TargetInfoTest.cpp
+6-4llvm/lib/ABI/DefaultTargetInfo.cpp
+9-0llvm/include/llvm/ABI/TargetInfo.h
+4-0llvm/lib/ABI/TargetInfo.cpp
+48-54 files

LLVM/project 38001a2llvm/lib/Target/AMDGPU AMDGPUInstCombineIntrinsic.cpp, llvm/test/Transforms/InstCombine/AMDGPU llvm.amdgcn.dot.ll

[AMDGPU][InstCombine] Canonicalize dot constant operands

Move constant dot product source operands to the right hand side
and add tests for signed and unsigned dot intrinsics.
DeltaFile
+12-12llvm/test/Transforms/InstCombine/AMDGPU/llvm.amdgcn.dot.ll
+9-0llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+21-122 files

LLVM/project 6f511callvm/lib/Target/AMDGPU AMDGPUInstCombineIntrinsic.cpp, llvm/test/Transforms/InstCombine/AMDGPU llvm.amdgcn.dot.ll

[AMDGPU][InstCombine] Fold zero dot operands to accumulator

Fold AMDGPU dot intrinsics when either operand is zero.

`dot(a, 0) = 0` and `dot(0, b) = 0`, so replace the intrinsic with its accumulator.
This avoids unrelated clamp and add/sub reassociation cases.
DeltaFile
+15-30llvm/test/Transforms/InstCombine/AMDGPU/llvm.amdgcn.dot.ll
+3-0llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+18-302 files

LLVM/project d1af1cbllvm/lib/Target/AMDGPU AMDGPUInstCombineIntrinsic.cpp, llvm/test/Transforms/InstCombine/AMDGPU llvm.amdgcn.dot.ll

[AMDGPU][InstCombine] Fold constant add/sub into the dot accumulator

`amdgcn.{s,u}dot{2,4,8}(a, b, C) +/- K -> dot(a, b, C +/- K)` when both the
accumulator C and K are constants. The new constant is computed with
wrapping APInt arithmetic to match the non-clamping accumulate.

Only applies when clamp is false (the saturating accumulate does not
reassociate) and the dot has a single use. K - dot is left alone since it
would need the dot product negated.
DeltaFile
+33-66llvm/test/Transforms/InstCombine/AMDGPU/llvm.amdgcn.dot.ll
+38-0llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+71-662 files

FreeBSD/src 9def2eatests/sys/kern unix_stream.c

tests/sys/kern/unix_stream: fix bad assertion

kqueue returns a value != -1 on error. Test for that instead of any
non-zero value to confirm that success was achieved when calling
`kqueue`.

This issue exists with ATF 0.22+ [1].

MFC after:      2 weeks
Reported by:    clang (-Wparenthesis)

[1]: https://github.com/freebsd/atf/pull/72

(cherry picked from commit 4881c7a650571eeb4cd89b5af4c1d3e922a67706)
DeltaFile
+2-1tests/sys/kern/unix_stream.c
+2-11 files

FreeBSD/src c68b38flib/libarchive/tests Makefile

lib/libarchive/tests/Makefile: minor fixes

- Remove trailing whitespace
- Fix typo with variable referenced adding sources for `test_fuzz`.

MFC after:      2 weeks

(cherry picked from commit edbb2e9d7a9aba7194dd0f37cede7aea51408f74)
DeltaFile
+18-17lib/libarchive/tests/Makefile
+18-171 files

FreeBSD/src 0e0a2d2tests/sys/sys bitstring_test.c

tests/sys/sys/bitstring_test: fix build with ATF 0.22+

Do not assign `b` in the `ATF_REQUIRE` macro. Set and test `b`
separately to avoid the issue cited by clang++/g++ after
implementing the change referenced in [1].

MFC after:      2 weeks
Reported by:    clang (-Wparenthesis)
Reference:      https://github.com/freebsd/atf/pull/72

(cherry picked from commit 4ae95fe823c0ec8b0b93ed27192bfc91058d9a6b)
DeltaFile
+2-1tests/sys/sys/bitstring_test.c
+2-11 files

FreeBSD/src d1fb660tests/sys/kern ktls_test.c

tests/sys/kern/ktls_test: fix -Wsign-compare issue

Cast the size_t quantity used in a comparison to off_t to mute a
`-Wsign-compare` complaint that now occurs after ATF 0.22 [1].

MFC after:      2 weeks
Reported by:    clang
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D59285
[1]: https://github.com/freebsd/atf/pull/72

(cherry picked from commit 505103215ee2e3e31d233b952633e5697ac5da5f)
DeltaFile
+1-1tests/sys/kern/ktls_test.c
+1-11 files

FreeBSD/src 97ff0d6lib/libc/tests/stdlib qsort_bench.c

Assign and test `malloc` result separately

The previous pattern is cited as an issue with ATF 0.22+ when using
clang/gcc after [1].

MFC after:      2 weeks
Reported by:    clang (-Wparenthesis)
Differential Revision:  https://reviews.freebsd.org/D59274

[1]: https://github.com/freebsd/atf/pull/72

(cherry picked from commit 2561c468c11309fbc0a097d3f4fcf0bd3bf28b8f)
DeltaFile
+1-1lib/libc/tests/stdlib/qsort_bench.c
+1-11 files

FreeBSD/src 5936c0atests/sys/kern Makefile

tty_pts: reduce/correct libatf-c linkage

ATF_TESTS_C automatically adds the appropriate library to LDADD --
there's no need to manually append the same library.

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D59411

(cherry picked from commit 5b10c3c3e3d5125e09e35cd607d15a546d5ad581)
DeltaFile
+1-2tests/sys/kern/Makefile
+1-21 files

LLVM/project 851a76fllvm/docs AMDGPUMemoryModel.md AMDGPUUsage.rst

[AMDGPU][docs] Describe cluster broadcast using async loads

Assisted-By: AI Coding Assistant
DeltaFile
+46-3llvm/docs/AMDGPUDMAOperations.md
+46-0llvm/docs/AMDGPUUsage.rst
+1-1llvm/docs/AMDGPUMemoryModel.md
+93-43 files

LLVM/project 67f4a07cmake/Modules LLVMVersion.cmake, libcxx/include __config

Bump version to 23.1.3
DeltaFile
+1-1llvm/utils/mlgo-utils/mlgo/__init__.py
+1-1llvm/utils/lit/lit/__init__.py
+1-1llvm/utils/gn/secondary/llvm/version.gni
+1-1libcxx/include/__config
+1-1cmake/Modules/LLVMVersion.cmake
+5-55 files

FreeBSD/src f3cdf3dlib/libc/tests/stdlib qsort_bench.c

Assign and test `malloc` result separately

The previous pattern is cited as an issue with ATF 0.22+ when using
clang/gcc after [1].

MFC after:      2 weeks
Reported by:    clang (-Wparenthesis)
Differential Revision:  https://reviews.freebsd.org/D59274

[1]: https://github.com/freebsd/atf/pull/72

(cherry picked from commit 2561c468c11309fbc0a097d3f4fcf0bd3bf28b8f)
DeltaFile
+1-1lib/libc/tests/stdlib/qsort_bench.c
+1-11 files

FreeBSD/src f9c5a73tests/sys/kern ktls_test.c

tests/sys/kern/ktls_test: fix -Wsign-compare issue

Cast the size_t quantity used in a comparison to off_t to mute a
`-Wsign-compare` complaint that now occurs after ATF 0.22 [1].

MFC after:      2 weeks
Reported by:    clang
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D59285
[1]: https://github.com/freebsd/atf/pull/72

(cherry picked from commit 505103215ee2e3e31d233b952633e5697ac5da5f)
DeltaFile
+1-1tests/sys/kern/ktls_test.c
+1-11 files

FreeBSD/src a8b30aflib/libarchive/tests Makefile

lib/libarchive/tests/Makefile: minor fixes

- Remove trailing whitespace
- Fix typo with variable referenced adding sources for `test_fuzz`.

MFC after:      2 weeks

(cherry picked from commit edbb2e9d7a9aba7194dd0f37cede7aea51408f74)
DeltaFile
+18-17lib/libarchive/tests/Makefile
+18-171 files

FreeBSD/src 56b9c37tests/sys/sys bitstring_test.c

tests/sys/sys/bitstring_test: fix build with ATF 0.22+

Do not assign `b` in the `ATF_REQUIRE` macro. Set and test `b`
separately to avoid the issue cited by clang++/g++ after
implementing the change referenced in [1].

MFC after:      2 weeks
Reported by:    clang (-Wparenthesis)
Reference:      https://github.com/freebsd/atf/pull/72

(cherry picked from commit 4ae95fe823c0ec8b0b93ed27192bfc91058d9a6b)
DeltaFile
+2-1tests/sys/sys/bitstring_test.c
+2-11 files

FreeBSD/src 343618ctests/sys/kern Makefile

tty_pts: reduce/correct libatf-c linkage

ATF_TESTS_C automatically adds the appropriate library to LDADD --
there's no need to manually append the same library.

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D59411

(cherry picked from commit 5b10c3c3e3d5125e09e35cd607d15a546d5ad581)
DeltaFile
+1-2tests/sys/kern/Makefile
+1-21 files

LLVM/project d2d2885clang-tools-extra/clang-tidy/readability SimplifyBooleanExprCheck.cpp, clang-tools-extra/docs ReleaseNotes.md

[clang-tidy] Fix De Morgan for overloaded comparisons (#221432)

Before my patch:


(https://source.chromium.org/chromium/chromium/src/+/main:base/trace_event/memory_allocator_dump.cc;l=174)

```diff
-  if (!(name == rhs.name && units == rhs.units &&
-        entry_type == rhs.entry_type)) {
+  if (!name == rhs.name || !units == rhs.units ||
+        entry_type != rhs.entry_type) {
```

With the patch:

```diff
-  if (!(name == rhs.name && units == rhs.units &&
-        entry_type == rhs.entry_type)) {

    [4 lines not shown]
DeltaFile
+57-0clang-tools-extra/test/clang-tidy/checkers/readability/simplify-boolean-expr-demorgan.cpp
+23-0clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
+5-1clang-tools-extra/docs/ReleaseNotes.md
+85-13 files

LLVM/project 20b4d70flang/include/flang/Semantics openmp-utils.h, flang/lib/Semantics openmp-utils.cpp check-omp-variant.cpp

Share construct contexts for variant reachability

Use AppendDirectiveContextTraits when building reachable directive paths
so semantic checks and lowering apply the same construct-context rules.
This excludes informational directives such as ASSUME while retaining
executable loop transformations and the source order of combined constructs.

Make AppendConstructTraitsForDirective private again and add semantic
tests for TILE, UNROLL, ASSUME, and TEAMS DISTRIBUTE PARALLEL DO. These
complement the existing lowering tests. The ASSUME case detects the old
collector counting an extra position and skipping a required diagnostic.
DeltaFile
+71-0flang/test/Semantics/OpenMP/metadirective-construct-paths.f90
+2-23flang/lib/Semantics/check-omp-variant.cpp
+0-5flang/include/flang/Semantics/openmp-utils.h
+1-1flang/lib/Semantics/openmp-utils.cpp
+2-0flang/test/Driver/bbc-openmp-target-context.f90
+76-295 files

NetBSD/pkgsrc-wip f74dcccsftpgo Makefile go-modules.mk

sftpgo: update to 2.7.6
DeltaFile
+537-519sftpgo/distinfo
+178-172sftpgo/go-modules.mk
+1-1sftpgo/Makefile
+716-6923 files

LLVM/project d357463llvm/lib/Target/RISCV RISCVAsmPrinter.cpp, llvm/test/CodeGen/RISCV module-asm-features.ll riscv-func-target-feature.ll

[RISC-V] Update streamer ArchString in emitTargetFeaturePush()

Previously, RISCVAsmPrinter::emitTargetFeaturePush() only emitted `.option push`
and `.option arch` without updating the streamer's active ArchString. When
emitting an ELF object file directly (`-filetype=obj`),
RISCVTargetELFStreamer::emitDirectiveOptionArch() is a no-op while
emitTargetFeaturePop() resets ArchString back to the pushed ArchString, so
module-level inline assembly and functions with custom `target-features` failed
to emit updated `$x<arch>` mapping symbols.

Call RTS.setArchString() with the parsed ISA string in emitTargetFeaturePush()
so `-filetype=obj` records the active `$x<arch>` mapping symbol alongside
`.option arch`.

This commit was created with the help of AI tools
DeltaFile
+2-5llvm/test/CodeGen/RISCV/module-asm-features.ll
+4-3llvm/test/CodeGen/RISCV/riscv-func-target-feature.ll
+2-0llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
+8-83 files

LLVM/project e119b18llvm/lib/Target/RISCV/AsmParser RISCVAsmParser.cpp

rebase
DeltaFile
+5-20llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+5-201 files

LLVM/project a09b560cross-project-tests/riscv lto-inline-asm-abi.c, llvm/lib/LTO LTO.cpp

[LTO] Preserve module inline asm target properties for .lto_discard and symvers

Previously, LTO::addRegularLTO() and IRLinker::run() called
prependModuleInlineAsm() and appendModuleInlineAsm() with a plain string when
synthesizing `.lto_discard` and imported `.symver` directives, creating a new
GlobalAsmFragment with empty TargetCPU and TargetFeatures instead of preserving
the existing module inline asm's properties. Copy the front fragment's Props so
these synthesized directives are merged into the module's inline asm with the
same target features.

This commit was created with the help of AI tools
DeltaFile
+2-5cross-project-tests/riscv/lto-inline-asm-abi.c
+1-4llvm/test/LTO/RISCV/module-asm.ll
+2-1llvm/lib/Linker/IRMover.cpp
+1-1llvm/lib/LTO/LTO.cpp
+6-114 files

LLVM/project ea66d4fcross-project-tests/riscv lto-inline-asm-abi.c, llvm/test/CodeGen/RISCV module-asm-features.ll

reformat and fix tests after rebase
DeltaFile
+23-9cross-project-tests/riscv/lto-inline-asm-abi.c
+3-2llvm/test/CodeGen/RISCV/module-asm-features.ll
+26-112 files

LLVM/project 639d199llvm/lib/Analysis ConstantFolding.cpp, llvm/lib/Target/AMDGPU SIISelLowering.cpp

[AMDGPU] Constant folding for wave-reduce intrinsics (#212755)

Relates to: https://github.com/llvm/llvm-project/pull/193142
A missed optimization opportunity.
While most constants to `add`, `sub` and `xor` wave reductions
cannot be folded, some identity constants(0, 1) can do with
some special handling.
DeltaFile
+972-0llvm/test/CodeGen/AMDGPU/atomic_optimizations_mul_one.ll
+0-614llvm/test/CodeGen/AMDGPU/GlobalISel/atomic_optimizations_mul_one.ll
+41-2llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+10-0llvm/lib/Analysis/ConstantFolding.cpp
+1,023-6164 files

FreeBSD/ports 0450db5net/py-portend distinfo Makefile, net/py-portend/files patch-portend.py patch-pyproject.toml

net/py-portend: Update to 3.2.1 and fix checks on a wildcard address

PR:             298689
Approved by:    k at stereochro.me (maintainer)
DeltaFile
+19-0net/py-portend/files/patch-pyproject.toml
+6-9net/py-portend/Makefile
+11-0net/py-portend/files/patch-portend.py
+3-3net/py-portend/distinfo
+39-124 files

OPNSense/core 6b49577src/opnsense/mvc/app/controllers/OPNsense/Firewall/forms settings.xml

Cleanup: Move settings dialog around a bit and remove some headers
DeltaFile
+17-37src/opnsense/mvc/app/controllers/OPNsense/Firewall/forms/settings.xml
+17-371 files

OPNSense/core b837f60src/etc/inc interfaces.inc

interfaces: dhclient handles keywords case-insensitive so properly match all 'media' invokes

Reported by: @Alice-Sabrina-Ivy
DeltaFile
+3-1src/etc/inc/interfaces.inc
+3-11 files