NetBSD/pkgsrc-wip 0cae1ac — zig-git COMMIT_MSG Makefile

wip/zig-git to v.0.18.0-dev.1180+2e9bb03df, 20261116
DeltaFile
+1,044-855zig-git/PLIST
+2-2zig-git/Makefile
+1-1zig-git/COMMIT_MSG
+1,047-8583 files

LLVM/project afecd96 — llvm/include/llvm/Support Allocator.h, llvm/unittests/Support AllocatorTest.cpp

[Support] Grow bump allocator slabs faster (#243000)

Reduce the default slab growth delay from 128 to 8, retaining 4 KiB
initial slabs.

On CTMark (-march=rva23u64 -O3), median user CPU time drops by
0.11% and peak RSS geomean by 1.96%.

Assisted-by: TRAE CLI (GPT-6)
DeltaFile
+24-0llvm/unittests/Support/AllocatorTest.cpp
+1-1llvm/include/llvm/Support/Allocator.h
+25-12 files

LLVM/project eb805d5 — llvm/lib/Target/AMDGPU AMDGPUTargetTransformInfo.cpp, llvm/test/Analysis/CostModel/AMDGPU bitcast-int-fp.ll

[AMDGPU] Treat a bitcast between legal types or same-size scalars as free (#238412)

The generic cost model treats a bitcast as free only when both types are
integer types or both are not. AMDGPU keeps integer and floating-point
values in the same registers, so a bitcast between two legal types is a
no-op. A scalar bitcast from i32 to float cost 1, but the vector bitcast
from <2 x i32> to <2 x float> cost 0. The SLP vectorizer counted this
difference as a saving.

A bitcast between two scalars that are legalized to types of the same
size, such as i16 and half without 16-bit instructions, is free as well.
A bitcast that involves a legalized vector, such as a vector of i8,
keeps its cost, because the lanes may need repacking.

Assisted-by: Claude Opus
DeltaFile
+121-80llvm/test/Analysis/CostModel/AMDGPU/bitcast-int-fp.ll
+15-0llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
+4-3llvm/test/Transforms/SLPVectorizer/AMDGPU/bitcast-int-fp.ll
+140-833 files

LLVM/project 7978b78 — llvm/lib/Analysis ScalarEvolution.cpp

[SCEV] Look up loop guard rewrites in a single place (NFC). (#242875)

Look up rewrites for expressions once in ::visit, instead of duplicating
code in each visitor.

Currently still limited to set existing set of nodes. I am planning on
extending this to all expressions, but there are a few regressions I
still need to investigate.

PR: https://github.com/llvm/llvm-project/pull/242875
DeltaFile
+14-46llvm/lib/Analysis/ScalarEvolution.cpp
+14-461 files

LLVM/project ee89292 — flang/lib/Semantics expression.cpp, flang/test/Semantics numeric_storage_size_only.f90

[flang] Remove redundant parse tree walk for NUMERIC_STORAGE_SIZE warning (#241634)

PR #220779 made `ExpressionAnalyzer::Analyze(const parser::Expr &)` walk
the parse tree of an expression every time it returns a saved typed
expression, to repeat the NUMERIC_STORAGE_SIZE check on the names in it.
`IterativelyAnalyzeSubexpressions` analyzes a chain of operations from
the bottom up, and each operation then asks for its already analyzed
operands again, so each node was visited once per enclosing operation.
That is quadratic in the length of the chain: `-fsyntax-only` on an
assignment whose right-hand side adds 60,000 literal constants takes 27
s without this change and 0.4 s with it.

The walk is not needed when semantic analysis reports no error. The
analysis that saved a typed expression has already called `Analyze(const
parser::Name &)` for each name in it, and the warning is added to the
`SemanticsContext` message buffer directly, so contextual message
discarding does not affect it. This change removes the walk and its
visitor.


    [5 lines not shown]
DeltaFile
+4-25flang/lib/Semantics/expression.cpp
+14-0flang/test/Semantics/numeric_storage_size_only.f90
+18-252 files

FreeBSD/ports 23c7547 — databases/redis74 Makefile, databases/redis80 Makefile

Tcl/Tk: fix ports in preparation to bump default version to 9.x
DeltaFile
+1-1databases/speedtables/Makefile
+1-1databases/redis86/Makefile
+1-1databases/redis84/Makefile
+1-1databases/redis82/Makefile
+1-1databases/redis80/Makefile
+1-1databases/redis74/Makefile
+6-64 files not shown
+10-1010 files

FreeBSD/ports c00bd56 — databases/retcl Makefile distinfo

databases/retcl: update to 0.7.1

Release notes:
* https://github.com/gahr/retcl/releases/tag/0.7.0
* https://github.com/gahr/retcl/releases/tag/0.7.1
DeltaFile
+3-3databases/retcl/distinfo
+1-1databases/retcl/Makefile
+4-42 files

LLVM/project e0b4378 — flang/test/Lower select-case-statement.f90 unsigned-ops.f90

[flang] Add SELECT CASE lowering tests for INTEGER(16) ranges and UNSIGNED(16) (#242946)

The test added with the SELECT CASE INTEGER(16) fix (#240149) covers
only point case values. The same lowering path also builds the bounds of
ranges (`#fir.interval`, `#fir.lower`, `#fir.upper`) and the case values
of UNSIGNED(16) selectors, which no lowering test covered.

Add an INTEGER(16) range test to `select-case-statement.f90` and an
UNSIGNED(16) test to `unsigned-ops.f90`, with values on both sides of
`2**64` and of the signed maximum `2**127`. Also fix the indentation of
one `CHECK-LABEL`.

Assisted-by: AI
DeltaFile
+21-0flang/test/Lower/unsigned-ops.f90
+18-1flang/test/Lower/select-case-statement.f90
+39-12 files

FreeBSD/src 4a9770b — tests/sys/kern module_test.c

modstat: allow compat support to fail in tests

v1 and v2 versions of stuct module_stat are now gated by COMPAT_ ifdefs
so allow the otherwise valid query to fail with EINVAL.

Effort:         CHERI upstreaming
Reviewed by:    markj
Reported by:    llm-postcr
Sponsored by:   Innovate UK
Fixes:          1ebf46ecb627 ("modstat: don't copyout while holding a lock")
Differential Revision:  https://reviews.freebsd.org/D61460

(cherry picked from commit ef726c645300870b6bdf3573079b1f89f3b45c74)
DeltaFile
+16-8tests/sys/kern/module_test.c
+16-81 files

FreeBSD/src 044b90b — sys/kern kern_module.c

modstat: don't copyout while holding a lock

If a user arranges for a page fault to never be filled (e.g., via a
FUSE file system), this can hold the shared lock forever.

To make this all work, refactor kern_modstat and freebsd32_modstat to
malloc a temporary buffer and fill it before copying it out rather
than doing a bunch of copies.

Add COMPAT_* ifdefs around compat code.  The module_stat_v1 code is
really for a.out binaries in practice and thus a bit questionable.

Reviewed by:    markj
Reported by:    llm-postcr
Sponsored by:   Innovate UK
Fixes:          7f8c2056db1e ("modstat: avoid copying from freed memory")
Differential Revision:  https://reviews.freebsd.org/D61432

(cherry picked from commit 1ebf46ecb6278e31d7ae029b0f8af3d64e7bc1f9)
DeltaFile
+153-108sys/kern/kern_module.c
+153-1081 files

FreeBSD/src ed8dc5e — tests/sys/kern module_test.c

modstat: check errno before calling feature_present

feature_present will overwrite errno if COMPAT_FREEBSD13 is not present.

Reported by:    llm-postcr
Fixes:          ef726c645300 ("modstat: allow compat support to fail in tests")

(cherry picked from commit acd270c8c6542b45e404078b28e1a732106aa76c)
DeltaFile
+1-1tests/sys/kern/module_test.c
+1-11 files

FreeBSD/src 80fed5b — sys/kern kern_module.c

modstat: avoid copying from freed memory

If a module is unloaded after the module is looked up in kern_modstat,
but before one of the copyout's occurs, then the memory being copied
might be freed and reused leading to an information disclosure.

The LLM was particularly concerned about a TOCTOU issue in the length
of the name, but it seems likely that there are issues with all the
copyout's.  As such, hold the shared lock throughout.

Reviewed by:    markj
Reported by:    llm-postcr
MFC after:      3 days
Sponsored by:   Innovate UK
Fixes:          9b3851e9e3b1 ("- Lock down the ``module'' structure...")
Differential Revision:  https://reviews.freebsd.org/D61398

(cherry picked from commit 7f8c2056db1e39e44c3eda15aa4e53f7fc971cd8)
DeltaFile
+32-26sys/kern/kern_module.c
+32-261 files

FreeBSD/src 5c7d799 — sys/kern kern_module.c, sys/sys syscallsubr.h

kern_module.c: add kern_ implementations

In the case of modstat(2) use a cast to access the name member of the
old struct version so the compiler see the right array size.  This
addresses a sub-object bounds bug.

Effort:         CHERI upstreaming
Sponsored by:   DARPA, AFRL, Innovate UK
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2284

(cherry picked from commit b96dc2c04fb4f504ad0c752c5d4b074c5bfbf7e0)
DeltaFile
+22-7sys/kern/kern_module.c
+3-0sys/sys/syscallsubr.h
+25-72 files

FreeBSD/src 0967b36 — sys/kern vfs_extattr.c

extattr_list*: avoid panic with absurd buffer lengths

Apply a layered defence:
 - Reject nbytes > IOSIZE_MAX in user_extattr_list_fd and
   user_extattr_list_path.
 - In extattr_list_vp require auiop->uio_resid to be non-negative.

Effort:         CHERI upstreaming
Reviewed by:    markj
Reported by:    llm-postcr
MFC after:      3 days
Sponsored by:   Innovate UK
Fixes:          6453d4240f6b ("vfs: Export exattr methods to reuse by Linuxulator")
Differential Revision:  https://reviews.freebsd.org/D61461

(cherry picked from commit 118067f51c111390dbc54760d781cd14a10c499e)
DeltaFile
+7-1sys/kern/vfs_extattr.c
+7-11 files

LLVM/project 0b115ab — bolt/lib/Passes LongJmp.cpp, bolt/test/AArch64 branch-relax-adrp-range.s branch-relax-b-range.s

[BOLT][AArch64] Fixed signed branch relaxation range checks (#242369)

Currently AArch64 branch relaxation computes absolute distances between
the branch instruction and its target. This is problematic when the
target of the stub is exactly -128MiB away as, the branch will be
relaxed to an ADRP-stub unnecessarily. This patch changes this behaviour
to use signed offsets to check the ranges, including page-relative
offsets for ADRP-stubs.

It should be noted that this patch has been broken off of #229882, based
off of feedback from @labrinea.

Assisted-by: Codex
DeltaFile
+55-0bolt/test/AArch64/branch-relax-b-range.s
+53-0bolt/test/AArch64/branch-relax-adrp-range.s
+10-13bolt/lib/Passes/LongJmp.cpp
+118-133 files

LLVM/project a085fad — flang/include/flang/Optimizer/Builder Character.h, flang/lib/Optimizer/Builder Character.cpp

[flang] Address review comments on chained concatenation fusion

Let concatenation fusion cross operations that only allocate, like the
hlfir.declare of a character literal operand, so that chains ending with a
literal are fused into one buffer. Only operations that may write or free
memory, or whose effects are unknown, now prevent the fusion.

Remove CharacterExprHelper::createConcatenate, which no longer has users.

Add bufferization tests for concatenations whose operands all have a
compile-time length, and for character kind 4.
DeltaFile
+68-0flang/test/HLFIR/concat-bufferization.fir
+27-0flang/test/HLFIR/character-expression-lifetimes.fir
+0-25flang/lib/Optimizer/Builder/Character.cpp
+4-2flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
+0-4flang/include/flang/Optimizer/Builder/Character.h
+99-315 files

LLVM/project 68e01bb — flang/lib/Optimizer/HLFIR/IR HLFIROps.cpp, flang/lib/Optimizer/HLFIR/Transforms BufferizeHLFIR.cpp

[flang] Fuse chained character concatenations into one buffer

Lowering creates one binary hlfir.concat per // operator, so a // b // c
was evaluated into an intermediate buffer that was then copied into the
result buffer. Add a canonicalization that folds a single-use hlfir.concat
into its user when no operation in between may modify or release its
operands, and bufferize hlfir.concat with any number of operands. The
buffer is now sized with the hlfir.concat length operand, which can be
computed outside of elemental loops, instead of the sum of the operand
lengths computed in the loop body.
DeltaFile
+57-60flang/test/HLFIR/concat-bufferization.fir
+59-0flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
+51-0flang/test/HLFIR/character-expression-lifetimes.fir
+22-15flang/test/HLFIR/associate-codegen.fir
+23-14flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
+10-10flang/test/Transforms/character-expression-storage.f90
+222-996 files not shown
+243-10512 files

LLVM/project a93922b — flang/lib/Lower ConvertExprToHLFIR.cpp, flang/lib/Optimizer/Builder HLFIRTools.cpp

[flang] Track character temporary lifetimes for safe stack placement (#239312)

Scalar hlfir.expr are currently never given hlfir.destroy and are always
lowered as alloca, even when those alloca have dynamic length that pins
them into unstructured control flow loops not surrounded by stack
save/restore, leading to potential stack to grow on each iteration and
to potential stack overflow.

Emit hlfir.destroy for them, add an explicit cleanup region to
hlfir.yield_element, and preserve both through array constructor
lowering, elemental inlining, WHERE lowering and bufferization, which
now allocates these buffers with fir.allocmem. When such an allocation
cannot be hoisted out of the loop, reclaim its stack space with one
stacksave/stackrestore pair per block. Allocation placement then keeps
these temporaries on the stack in every mode (except under
-fdynamic-heap-array which matches the current behavior).

While working on this, it appeared the code inserting stack save/restore
in StackArrays was not properly handling promotion of imbricated

    [6 lines not shown]
DeltaFile
+136-102flang/lib/Lower/ConvertExprToHLFIR.cpp
+210-0flang/test/Transforms/stack-arrays-block-lifetime.fir
+142-0flang/test/Transforms/character-expression-storage.f90
+132-0flang/test/HLFIR/inline-elemental-cleanup-cfg.fir
+88-36flang/lib/Optimizer/Transforms/StackArrays.cpp
+82-31flang/lib/Optimizer/Builder/HLFIRTools.cpp
+790-16957 files not shown
+1,914-48263 files

LLVM/project 806f953 — mlir/include/mlir/Conversion Passes.td, mlir/test/Conversion/TosaToLinalg tosa-to-linalg.mlir tosa-to-linalg-named.mlir

[mlir][tosa] Enable tosa-to-linalg `allow-non-finites` option by default (#239407)

The TOSA specification seeds reduce_min/max and max_pool with non-finite
values. This commit enables the `allow-non-finites` option by default to
align the default tosa-to-linalg lowering with the TOSA specification.
DeltaFile
+5-5mlir/include/mlir/Conversion/Passes.td
+3-3mlir/test/Conversion/TosaToLinalg/tosa-to-linalg-named.mlir
+2-2mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
+10-103 files

FreeBSD/ports ecc7f3b — Mk/Uses autoreconf.mk, devel/automake pkg-plist distinfo

devel/automake: Update to 1.20

PR:             300669
Exp-run by:     antoine
DeltaFile
+6-6devel/automake/Makefile
+3-3devel/automake/distinfo
+1-1Mk/Uses/autoreconf.mk
+1-0devel/automake/pkg-plist
+11-104 files

FreeBSD/ports 7e12924 — print/cups-filters Makefile distinfo, print/cups-filters/files patch-filter_mupdftoraster.c patch-filter_gstoraster.c

print/cups-filters: Update to more recent commit

Also remove execvpe(3) related patches.  The function was added in
FreeBSD 14.1.
DeltaFile
+1-12print/cups-filters/files/patch-utils_cups-browsed.c
+0-11print/cups-filters/files/patch-filter_mupdftoraster.c
+0-11print/cups-filters/files/patch-filter_gstoraster.c
+3-3print/cups-filters/distinfo
+2-3print/cups-filters/Makefile
+6-405 files

LLVM/project 5ea5570 — llvm/include/llvm/CodeGen SelectionDAGNodes.h, llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp DAGCombiner.cpp

[SelectionDAG][NFC] Use SDValue in signatures (#242273)

Instead of passing a const SDNode *ptr to the functions in the ISD
namespace in SelectionDAGNodes.h, pass a SDValue.

The reason for this change is that in the vast majority of uses, the
callers work with a SDValue beforehand and retrieve their Node through
the .getNode() member function.

This change should remove indirection.
DeltaFile
+140-157llvm/lib/Target/X86/X86ISelLowering.cpp
+78-82llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+61-60llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+51-56llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+37-40llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+22-22llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+389-41717 files not shown
+468-50023 files

FreeBSD/ports 6a7711e — net/intel-iavf-kmod Makefile

net/intel-iavf-kmod: mark as broken everywhere

iavf_lib.c: no member named 'msix_msgnum' in 'struct pcicfg_msix'
DeltaFile
+1-2net/intel-iavf-kmod/Makefile
+1-21 files

FreeBSD/ports 1e308ab — graphics/drm-61-kmod Makefile

graphics/drm-61-kmod: mark only for amd64

amdgpu_ioc32.c needs KCONFIG COMPAT which is only available on amd64
DeltaFile
+1-1graphics/drm-61-kmod/Makefile
+1-11 files

LLVM/project fab850c — libcxx/test/std/ranges/coro.generator/promise lwg3894.pass.cpp

enhance test
DeltaFile
+0-1libcxx/test/std/ranges/coro.generator/promise/lwg3894.pass.cpp
+0-11 files

FreeBSD/ports 026d3e3 — net/isboot-kmod-devel Makefile

net/isboot-kmod-devel: mark as broken on 15 and 16

sys/vnode.h:622: fatal error: 'vnode_if.h' file not found
DeltaFile
+2-0net/isboot-kmod-devel/Makefile
+2-01 files

LLVM/project 5ce65ab — flang/lib/Semantics resolve-directives.cpp, llvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll

Merge remote-tracking branch 'origin/main' into users/c8ef/generator-recovered
DeltaFile
+2,374-2,371llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+2,239-2,237llvm/test/tools/llvm-mca/AArch64/Cortex/A53-neon-instructions.s
+1,495-1,493llvm/test/tools/llvm-mca/AArch64/Cortex/A53-basic-instructions.s
+1,434-1,362flang/lib/Semantics/resolve-directives.cpp
+776-1,668llvm/test/CodeGen/PowerPC/convert-rr-to-ri-instrs.mir
+949-512llvm/test/CodeGen/Mips/atomic-min-max.ll
+9,267-9,643851 files not shown
+34,665-19,151857 files

FreeBSD/ports fa2f6ca — sysutils/devctl-jail-kmod Makefile

sysutils/devctl-jail-kmod: mark as broken on 15 and 16

sys/vnode.h:622: fatal error: 'vnode_if.h' file not found
DeltaFile
+3-0sysutils/devctl-jail-kmod/Makefile
+3-01 files

FreeBSD/ports b13849b — net-mgmt/ng_ipacct Makefile

net-mgmt/ng_ipacct: fails to build on current

ng_ipacct.c:987:28: error: incompatible pointer types passing 'struct inpcbinfo *' to parameter of type 'struct inpcbinfo_ctx *'
DeltaFile
+1-0net-mgmt/ng_ipacct/Makefile
+1-01 files

LLVM/project ac2d9d2 — libcxx/include module.modulemap.in, libcxx/test/std/ranges/range.utility/range.elementsof default_allocator.compile.pass.cpp

[libc++] Add missing module export for `ranges::elements_of` (#242655)

Fixes https://github.com/llvm/llvm-project/issues/242654
DeltaFile
+18-0libcxx/test/std/ranges/range.utility/range.elementsof/default_allocator.compile.pass.cpp
+4-1libcxx/include/module.modulemap.in
+22-12 files