DragonFlyBSD/src bff3c62usr.sbin/syslogd syslogd.c

fix(syslogd): check f_prevline content instead of array address

f_prevline is a char[] struct member, so its address is always
non-NULL. Check f_prevline[0] to test whether the previous line
buffer contains a message, matching the existing check at line 1010.
DeltaFile
+1-1usr.sbin/syslogd/syslogd.c
+1-11 files

DragonFlyBSD/src 555a82ausr.bin/kcollect kcollect.c

fix(kcollect): mark unused total_count parameter in dump_influxdb()

total_count is required by the function pointer signature but not
used in the influxdb output path. Mark it __unused and remove the
dead ++total_count increment.
DeltaFile
+1-2usr.bin/kcollect/kcollect.c
+1-21 files

DragonFlyBSD/src 3aa6009usr.sbin/iostat iostat.c

fix(iostat): remove unused tflag variable

tflag was set when -t was parsed but never checked; the -t option's
effect is handled entirely by buildmatch().
DeltaFile
+2-3usr.sbin/iostat/iostat.c
+2-31 files

LLVM/project 830c8d6llvm/test/tools/llvm-symbolizer wasm-basic.s lit.local.cfg, llvm/test/tools/llvm-symbolizer/Inputs wasm-basic.yaml

test(llvm-symbolizer): fix Wasm layering violation by using YAML (#200080)

Avoid using wasm-ld in LLVM tests by prebuilding the test binary
as a YAML file and using yaml2obj at test time.

This matches the approach taken in
4bce216e6b550c770f2e536422c3d95333f65ba3.
Because yaml2obj always uses 5-byte LEBs, the CODE section offset
shifted from 0x37 to 0x4b, so the file offsets passed to llvm-symbolizer
were updated accordingly.

Replaces #200046

Assisted-by: Gemini
DeltaFile
+61-0llvm/test/tools/llvm-symbolizer/Inputs/wasm-basic.yaml
+6-6llvm/test/tools/llvm-symbolizer/wasm-basic.s
+0-4llvm/test/tools/llvm-symbolizer/lit.local.cfg
+67-103 files

DragonFlyBSD/src d1add8eusr.sbin/ac ac.c

fix(ac): remove unused rfound counter in ac()

rfound counted wtmpx records read but was never checked or printed.
DeltaFile
+1-3usr.sbin/ac/ac.c
+1-31 files

DragonFlyBSD/src 08e2850usr.bin/vmstat vmstat.c

fix(vmstat): remove unused zfreecnt_prev in dozmem()

zfreecnt_prev was accumulated from saved per-cpu zone stats but
never displayed. Only znalloc_prev is used for the delta output.
DeltaFile
+0-3usr.bin/vmstat/vmstat.c
+0-31 files

DragonFlyBSD/src e13731eusr.bin/diff diffreg.c

fix(diff): remove unused jackpot counter in check()

The jackpot variable tracked hash collision false-matches but was
only referenced in a commented-out debug fprintf. Remove the variable,
its increment, and the dead comment block.
DeltaFile
+3-11usr.bin/diff/diffreg.c
+3-111 files

DragonFlyBSD/src b415371sbin/ifconfig ifgroup.c

fix(ifconfig): remove unused cnt variable in printgroup()

The member count was incremented but never printed or returned.
DeltaFile
+1-2sbin/ifconfig/ifgroup.c
+1-21 files

DragonFlyBSD/src ea0bc3fsbin/growfs growfs.c

fix(growfs): remove unused dupper variable in updjcg()

dupper was computed from cgdmin() but never referenced in this
function. The other growfs functions that use dupper are unaffected.
DeltaFile
+1-6sbin/growfs/growfs.c
+1-61 files

DragonFlyBSD/src c6b55dclib/libfetch http.c

fix(libfetch): remove unused base64 length counter in http_base64()

The 'r' variable tracked output length but was never returned or
used. The function returns the NUL-terminated string directly.
DeltaFile
+2-5lib/libfetch/http.c
+2-51 files

LLVM/project 9d50a39llvm/test/MC/Disassembler/AMDGPU gfx9_vop3.txt gfx11_dasm_vop3.txt

[AMDGPU] This reverts patches to use fp16 inline constants for i16

Patches reverted:

commit c315c662cd2d33e0c7f962fed742ee53626d8005
Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
Date:   Wed May 27 12:51:13 2026

    [AMDGPU] Fix codesize estimate after #198005 (#200033)

    This fixes failure in libc tests which checks the exact encoding
    size. Encoding is now shorter, but it did not recognize fp16
    immediates as an inlinable constant and assumes literal encoding.

    Shorter encodings were created here:
    https://github.com/llvm/llvm-project/pull/198005

commit 2b3bc03b5ef00e7eaa245420ca981c700e1c05c4
Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>

    [16 lines not shown]
DeltaFile
+228-228llvm/test/MC/Disassembler/AMDGPU/gfx9_vop3.txt
+200-200llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3.txt
+200-200llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vop3.txt
+194-194llvm/test/MC/Disassembler/AMDGPU/gfx10_vop3.txt
+144-144llvm/test/MC/Disassembler/AMDGPU/gfx10_vop3c.txt
+128-128llvm/test/MC/Disassembler/AMDGPU/gfx8_vop3c.txt
+1,094-1,09481 files not shown
+3,882-3,67287 files

DragonFlyBSD/src 4501ce5games/robots rnd_pos.c

fix(robots): remove dead call counter in rnd_pos()

The static 'call' variable was incremented but never read.
Likely a leftover debug counter.
DeltaFile
+0-2games/robots/rnd_pos.c
+0-21 files

DragonFlyBSD/src 8704f77games/monop print.c

fix(monop): remove unused rnt variable in printsq()

The railroad rent was computed into 'rnt' but never used; the printf
already calculates the same value inline via 25 << (num_rr - 1).
DeltaFile
+0-3games/monop/print.c
+0-31 files

DragonFlyBSD/src 171bcb4lib/libkvm kvm.c

fix(libkvm): return close() error status from kvm_close()

kvm_close() accumulated close() return values into 'error' via |=
but always returned 0, silently discarding close failures.
Return the accumulated error to match the function's int return type
and the kvm_close(3) manpage contract.
DeltaFile
+1-1lib/libkvm/kvm.c
+1-11 files

LLVM/project 20e1831clang/include/clang/AST DeclTemplate.h, clang/lib/Sema SemaTemplate.cpp SemaDecl.cpp

[clang] fix member specializations of class and variable partial specializations

A partial specialization may be a member specialization even if it is not
an instantiation of a member partial specialization.

For example:
```C++
template<class> struct X {
  template<class> struct Inner;
};
template<> template<class T>
struct X<int>::Inner<T*> {};
```

Make sure this state is represented, so that [temp.spec.partial.member]p2
can be applied.

Split off from #199528
DeltaFile
+12-16clang/lib/Sema/SemaTemplate.cpp
+9-6clang/lib/Sema/SemaDecl.cpp
+12-0clang/test/SemaTemplate/class-template-spec.cpp
+4-6clang/test/CXX/temp/temp.decls/temp.spec.partial/temp.spec.partial.member/p2.cpp
+4-4clang/include/clang/AST/DeclTemplate.h
+3-4clang/lib/Sema/SemaTemplateInstantiate.cpp
+44-362 files not shown
+47-408 files

LLVM/project 4ccab64clang/include/clang/AST DeclTemplate.h, clang/lib/AST DeclTemplate.cpp

[clang] fix getTemplateInstantiationArgs

This implements a new strategy for collecting the template arguments, by
relying on the qualifiers and template parameter lists to navigate the template
context of out-of-line definitions.

This greatly simplifies the signature of that function, by removing a bunch
of workarounds, and simpliffying a couple that weren't removed yet.

Since this now relies on qualifiers and template parameter lists,
this patch expends most of its effort making sure these are placed,
transformed and propagated to template instantiations.

Also makes the explicit specialization AST nodes stop abusing the template
parameter lists by storing it's own template parameter list, creating a
dedicated field for them, similar to partial specializations.
DeltaFile
+197-433clang/lib/Sema/SemaTemplateInstantiate.cpp
+257-164clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+161-161clang/lib/Sema/SemaTemplate.cpp
+100-99clang/include/clang/AST/DeclTemplate.h
+59-129clang/lib/Sema/SemaConcept.cpp
+60-92clang/lib/AST/DeclTemplate.cpp
+834-1,07851 files not shown
+1,488-1,74257 files

LLVM/project 1a5822ellvm/test/Transforms/Coroutines coro-await-suspend-handle-in-ramp.ll coro-split-sink-lifetime-01.ll

[coro] Use C calling convention for C++20 coroutines (#198943)

Change the calling convention for resume / destroy functions of C++
coroutines from `fastcc` to the C calling convention.

The resume / destroy functions are exposed as part of the coroutine ABI
and must be compatible with other compilers and other versions of LLVM.
fastcc is an LLVM-internal, unstable calling convention, though.

In practice, fastcc and the C calling convention are in sync for `void
func(void*)` function signatures on almost all platforms. Therefore, I
think we can still do this change without widespread ABI breakage.

`fastcc` and `ccc` do differ for i686 (x86-32), MIPS O32, PowerPC64
ELFv1 and Lanai. Afaik, those are all legacy ABIs and a recent feature
like C++20 coroutines is unlikely to be used by projects still targeting
legacy ABIs.

Historical context: I tried to figure out why `fastcc` was used. It is

    [6 lines not shown]
DeltaFile
+9-7llvm/test/Transforms/Coroutines/coro-await-suspend-handle-in-ramp.ll
+6-6llvm/test/Transforms/Coroutines/coro-split-sink-lifetime-01.ll
+5-5llvm/test/Transforms/Coroutines/coro-split-musttail1.ll
+5-5llvm/test/Transforms/Coroutines/coro-split-musttail-chain-pgo-counter-promo.ll
+5-5llvm/test/Transforms/Coroutines/coro-split-musttail3.ll
+4-4llvm/test/Transforms/Coroutines/coro-await-suspend-lower-invoke.ll
+34-3249 files not shown
+147-13255 files

LLVM/project 9cc6c93libclc/clc/include/clc/relational clc_signbit.h, libclc/clc/lib/generic/relational clc_signbit.cl clc_signbit.inc

[libclc] Optimize and vectorize signbit (#199497)

Replace element-wise scalarizing implementation with bitcast and shift.
For example,
define hidden range(i32 -1, 1) <2 x i32> @_Z7signbitDv2_f(<2 x float>
noundef %0) #0 {
  %2 = bitcast <2 x float> %0 to <2 x i32>
  %3 = extractelement <2 x i32> %2, i64 0
  %4 = lshr i32 %3, 31
  %5 = insertelement <2 x i32> poison, i32 %4, i64 0
  %6 = extractelement <2 x i32> %2, i64 1
  %7 = lshr i32 %6, 31
  %8 = insertelement <2 x i32> %5, i32 %7, i64 1
  %9 = icmp ne <2 x i32> %8, zeroinitializer
  %10 = sext <2 x i1> %9 to <2 x i32>
  ret <2 x i32> %10
}
is changed to:
define hidden noundef range(i32 -1, 1) <2 x i32> @_Z7signbitDv2_f(<2 x

    [4 lines not shown]
DeltaFile
+3-85libclc/clc/lib/generic/relational/clc_signbit.cl
+23-0libclc/clc/lib/generic/relational/clc_signbit.inc
+2-0libclc/clc/include/clc/relational/clc_signbit.h
+28-853 files

DragonFlyBSD/src c5cc81fsys/vfs/hammer2 hammer2_ioctl.c

hammer2: fix HAMMER2IOC_RECLUSTER ioctl failing on local mounts

iroot->cluster.focus is lazily set during I/O via hammer2_cluster_resolve
and is NULL at mount time, causing HAMMER2IOC_RECLUSTER to always fail with
EINVAL and log a misleading "not a local device mount" message.

Use cluster->focus->hmp when focus is set (priority), falling back to
array[0].chain->hmp for single-chain clusters where focus has not yet
been resolved. Remove the spurious diagnostic kprintfs.
DeltaFile
+11-7sys/vfs/hammer2/hammer2_ioctl.c
+11-71 files

LLVM/project 1670d39llvm/lib/Target/DirectX/DXILWriter DXILBitcodeWriter.cpp, llvm/lib/Target/DirectX/DirectXIRPasses PointerTypeAnalysis.cpp

[DirectX] Handle undef the same way as null (#197507)
DeltaFile
+33-0llvm/test/tools/dxil-dis/dbg-declare-undef.ll
+8-10llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
+5-4llvm/lib/Target/DirectX/DirectXIRPasses/PointerTypeAnalysis.cpp
+46-143 files

FreeBSD/ports 379c28cgames/sgt-puzzles distinfo Makefile

games/sgt-puzzles: update 2026041020260523
DeltaFile
+3-3games/sgt-puzzles/distinfo
+2-2games/sgt-puzzles/Makefile
+5-52 files

LLVM/project 5db1364clang/lib/CodeGen CGCUDANV.cpp, clang/test/CodeGenHIP offload-pgo-sections.hip

[PGO][AMDGPU] Add basic HIP offload PGO support (#177665)

Provide the minimum HIP/offload path for device profile collection and
merge on HIP before layering profile-format and uniformity-specific
changes separately.

This adds the ROCm collection runtime, hooks device collection into the
host write-file path, lowers AMDGPU instrumentation to
__llvm_profile_instrument_gpu with regular counters, and disables GPU
indirect-call value profiling.
DeltaFile
+890-0compiler-rt/lib/profile/InstrProfilingPlatformROCm.cpp
+152-0clang/lib/CodeGen/CGCUDANV.cpp
+83-26llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
+50-0clang/test/CodeGenHIP/offload-pgo-sections.hip
+36-0llvm/test/Instrumentation/InstrProfiling/gpu-weak.ll
+32-0llvm/test/Instrumentation/InstrProfiling/amdgpu-instrumentation.ll
+1,243-267 files not shown
+1,342-3213 files

LLVM/project 86d8aedflang/lib/Lower/OpenMP OpenMP.cpp, flang/test/Lower/OpenMP metadirective-user.f90

Clarify dynamic metadirective selection lowering

Explain that statically applicable variants are ranked before dynamic
user conditions. When a dynamic condition is selected, it is lowered to a
runtime branch whose else region continues selection among the remaining
candidates.

Add a begin/end variant test that includes clauses, and tighten checks
for the empty `nothing` fallback.
DeltaFile
+27-2flang/test/Lower/OpenMP/metadirective-user.f90
+19-0flang/lib/Lower/OpenMP/OpenMP.cpp
+46-22 files

LLVM/project b71f9efflang/lib/Lower/OpenMP OpenMP.cpp Utils.cpp, flang/test/Lower/OpenMP metadirective-user.f90

Place dynamic condition cleanups before branching

A dynamic user condition can create expression temporaries before the
selected variant is lowered. For example, a metadirective condition
such as:

  when(user={condition(getbool("hello"))}: barrier)

passes a character literal through an associated temporary. That
temporary belongs to evaluating the condition, so it must be cleaned
up before lowering enters the generated fir.if that selects between
variants.

Finalize the statement context after evaluating the condition and
before creating the branch. Keep the condition expression and source
location together as DynamicUserCondition, use that source for
generated operations, and add a regression for the temporary-producing
condition case.
DeltaFile
+23-18flang/lib/Lower/OpenMP/OpenMP.cpp
+20-17flang/lib/Lower/OpenMP/Utils.cpp
+30-0flang/test/Lower/OpenMP/metadirective-user.f90
+9-5flang/lib/Lower/OpenMP/Utils.h
+82-404 files

LLVM/project b73c387llvm/lib/Target/AMDGPU AMDGPUInstructionSelector.cpp AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU/GlobalISel fshl.ll fshr.ll

[AMDGPU][True16] Add legalization/selection handling for G_MERGE_VALUES of 2 s16 -> s32
DeltaFile
+997-494llvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll
+892-443llvm/test/CodeGen/AMDGPU/GlobalISel/fshr.ll
+178-59llvm/test/CodeGen/AMDGPU/GlobalISel/andn2.ll
+178-59llvm/test/CodeGen/AMDGPU/GlobalISel/orn2.ll
+42-1llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+2-0llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+2,289-1,0566 files

LLVM/project 475740cllvm/test/CodeGen/AMDGPU/GlobalISel andn2.ll orn2.ll

[AMDGPU][True16] Upstream some True16 test runlines

This testing batch preempts a change to G_MERGE_VALUES in True16 and will help demonstrate the changes. They all currently fail and so are commented out
DeltaFile
+5-1llvm/test/CodeGen/AMDGPU/GlobalISel/andn2.ll
+4-1llvm/test/CodeGen/AMDGPU/GlobalISel/orn2.ll
+4-1llvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll
+4-1llvm/test/CodeGen/AMDGPU/GlobalISel/fshr.ll
+17-44 files

LLVM/project e69fb46llvm/lib/DebugInfo/GSYM GsymReader.cpp, llvm/tools/llvm-gsymutil llvm-gsymutil.cpp Opts.td

[gsymutil] Disable readahead in `GsymReader::openFile()` (#199230)

`GsymReader::lookup()` has random access pattern (i.e. binary search an
address, then spot-load/parse info from rest of the GSYM data).
Readahead strategies in kernels (which was enabled by default) don't
necessarily improve (and may degrade) performance. This patch disables
readahead.

In a production system, similar change has seen 5% improvement on IOPS
and data reads. An offline performance test on a Linux machine shows
similar results - it reduces 14.3% total data read, 3.5% CPU%, and 2.9%
wall time (while adding 9.4% page faults). The reduction of total data
read and CPU % may help the performance of a heavily-loaded production
system.
```
  ┌────────────────┬─────────────┬─────────┬────────┐
  │     Metric     │ MADV_RANDOM │ Default │  Diff  │
  ├────────────────┼─────────────┼─────────┼────────┤
  │ Wall (s)       │ 0.286       │ 0.294   │ -2.9%  │

    [18 lines not shown]
DeltaFile
+41-7llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp
+6-2llvm/tools/llvm-gsymutil/Opts.td
+3-1llvm/lib/DebugInfo/GSYM/GsymReader.cpp
+50-103 files

LLVM/project 9d16447llvm/lib/Target/DirectX/DXILWriter DXILValueEnumerator.cpp DXILBitcodeWriter.cpp, llvm/lib/Target/DirectX/DirectXIRPasses DXILDebugInfo.cpp DXILDebugInfo.h

[DirectX] Add an "offset" operand to llvm.dbg.value (#197478)

Offset operand was removed in abe04759a6, so we need to bring it back
for DXIL. If offset is not specified, it should be zero.

---------

Co-authored-by: Andrew Savonichev <andrew.savonichev at gmail.com>
DeltaFile
+65-26llvm/lib/Target/DirectX/DXILWriter/DXILValueEnumerator.cpp
+50-0llvm/lib/Target/DirectX/DirectXIRPasses/DXILDebugInfo.cpp
+48-0llvm/test/tools/dxil-dis/dbg-value.ll
+40-3llvm/lib/Target/DirectX/DirectXIRPasses/DXILDebugInfo.h
+16-9llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
+3-3llvm/test/tools/dxil-dis/debug-info.ll
+222-412 files not shown
+229-418 files

OpenBSD/src DH4BMeEregress/usr.bin/ssh dropbear-server.sh

   Test all mutually supported algorithms, using dropbear's new -Q option
   to query its algorithms where possible.
VersionDeltaFile
1.3+178-26regress/usr.bin/ssh/dropbear-server.sh
+178-261 files

FreeBSD/src 97cad01usr.bin/xinstall xinstall.c install.1

install: add -z <max_cmp_size> option

Introduces the -z <max_cmp_size> flag, enabling users to set a custom file
size limit for pre-installation change checks and avoiding future hard-coded
limit modifications.

Reviewed by:    glebius
Approved by:    glebius (mentor)
Obtained from:  Fudo Security
MFC after:      2 weeks
Sponsored by:   Fudo Security
Differential Revision:  https://reviews.freebsd.org/D57230
DeltaFile
+14-4usr.bin/xinstall/xinstall.c
+11-2usr.bin/xinstall/install.1
+1-1usr.bin/xinstall/Makefile
+26-73 files