LLVM/project 34535e9clang/docs ReleaseNotes.rst, clang/include/clang/Basic DiagnosticSemaKinds.td

[Sema] Enforce parameter match for ownership_returns attribute (#192339)

Previously parsing multiple ownership_returns attributes with different
arguments could lead to a crash. The documentation states that if
forward declarations have ownership_returns, they must have the same
arguments, and it may appear at most once per declaration.

This patch ensures that if multiple ownership_returns attributes are
present, their arguments (identifier and the optional index) must
exactly match. The diagonstic err_ownership_param_mismatch is introduced
for clarity.

Test cases for f15, C::f, and the newly added f22 were also updated to
match the requirement that all declarations of ownership_returns have
the same arguments, using the err_ownership_param_mismatch diagonstic.

Fixes #188733
DeltaFile
+32-14clang/lib/Sema/SemaDeclAttr.cpp
+2-2clang/include/clang/Basic/DiagnosticSemaKinds.td
+4-0clang/test/Sema/attr-ownership.c
+1-0clang/docs/ReleaseNotes.rst
+39-164 files

LLVM/project 8e8bb22llvm/include/llvm/Object OffloadBinary.h, llvm/lib/Object OffloadBinary.cpp

Fix offload binary header (#194335)

Fixes #194331
DeltaFile
+1-1llvm/include/llvm/Object/OffloadBinary.h
+1-1llvm/lib/Object/OffloadBinary.cpp
+2-22 files

FreeBSD/src 0068c70release/scripts make-pkg-package.sh

make-pkg-package: Add set -e; abort if a cmd fails

This makes it less likely we will silently generate broken artifacts.

Reviewed by:    ivy
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56671
DeltaFile
+2-0release/scripts/make-pkg-package.sh
+2-01 files

LLVM/project 8f69b9ellvm/lib/Target/PowerPC PPCRegisterInfo.td PPCMacroFusion.def

Revert "[PowerPC] Enable using HwMode for instructions (#191051)"

This reverts commit 2a83068537786696d4950ce694e7d34480631f48.
DeltaFile
+13-8llvm/lib/Target/PowerPC/PPCRegisterInfo.td
+3-3llvm/lib/Target/PowerPC/PPCMacroFusion.def
+2-2llvm/lib/Target/PowerPC/PPCRegisterClasses.td
+4-0llvm/lib/Target/PowerPC/PPCBack2BackFusion.def
+2-2llvm/lib/Target/PowerPC/PPCInstrInfo.td
+2-1llvm/lib/Target/PowerPC/P10InstrResources.td
+26-162 files not shown
+30-178 files

FreeBSD/src af7911dsys/dev/ena ena.h

ena: Update driver version to v2.8.3

Features:
* Report RX overrun errors via sysctl hw stats

Bug Fixes:
* Budget rx descriptors, not packets, to fix jumbo frame throughput

Minor Changes:
* pmap_change_attr void * API change for FreeBSD 16.0+
* Adjust ena_[rt]x_cleanup to return bool

MFC after: 2 weeks
Sponsored by: Amazon, Inc.
Differential Revision: https://reviews.freebsd.org/D56641
DeltaFile
+1-1sys/dev/ena/ena.h
+1-11 files

FreeBSD/src e3f4a63sys/dev/ena ena.c ena.h

ena: Report RX overrun errors

Extract rx_overruns from the keep alive descriptor reported by
the device and expose it via sysctl hw stats.

RX overrun errors occur when a packet arrives but there are not
enough free buffers in the RX ring to receive it.

MFC after: 2 weeks
Sponsored by: Amazon, Inc.
Differential Revision: https://reviews.freebsd.org/D56640
DeltaFile
+4-0sys/dev/ena/ena.c
+2-0sys/dev/ena/ena.h
+2-0sys/dev/ena/ena_sysctl.c
+8-03 files

LLVM/project 464555dclang/lib/CIR/CodeGen CIRGenCXX.cpp, clang/test/CIR/CodeGen static-local.cpp

[CIR] Set the static_local attribute if needed when initializing (#194094)

There was a case where we were creating a GetGlobalOp when initializing
a static local variable that required a guard variable but failing to
set the static_local attribute on the GetGlobalOp. This led to a CIR
verificaiton error. This change sets the attribute when it is needed.

Assisted-by: Cursor / claude-4.7-opus-high
DeltaFile
+79-0clang/test/CIR/CodeGen/static-local.cpp
+0-16clang/test/CIR/Transforms/cast-bitcast-funcptr-roundtrip-fold.cir
+6-0clang/lib/CIR/CodeGen/CIRGenCXX.cpp
+85-163 files

LLVM/project 48b342bllvm/include/llvm/ADT StableHashing.h, llvm/test/CodeGen/X86 machine-block-hash.mir

[ADT] Make stable_hash_combine to be endian-independent (#194430)
DeltaFile
+16-3llvm/include/llvm/ADT/StableHashing.h
+4-12llvm/unittests/ADT/StableHashingTest.cpp
+0-3llvm/test/CodeGen/X86/machine-block-hash.mir
+20-183 files

FreeBSD/ports 9647d78archivers/minizip-ng distinfo Makefile

archivers/minizip-ng: Update 4.1.2 => 4.2.1

Changelog:
https://github.com/zlib-ng/minizip-ng/releases/tag/4.2.0
https://github.com/zlib-ng/minizip-ng/releases/tag/4.2.1

Sponsored by:   UNIS Labs
DeltaFile
+3-3archivers/minizip-ng/distinfo
+1-1archivers/minizip-ng/Makefile
+4-42 files

FreeBSD/ports 207111eaudio/shairport-sync distinfo Makefile

audio/shairport-sync: Update to 5.0.3
DeltaFile
+3-3audio/shairport-sync/distinfo
+1-1audio/shairport-sync/Makefile
+4-42 files

LLVM/project d28a8b0clang/test/CodeGen scoped-atomic-ops.c, clang/test/CodeGen/AArch64/sve-intrinsics acle_sve_dupq.c

[CodeGen] Change -O0 bool load codegen to have nonzero model (#193783)

The main follow-up item to
https://github.com/llvm/llvm-project/pull/160790 was changing -O0
codegen to convert in-memory i8 bool values to i1 with the `nonzero`
rule (`icmp ne i8 %val, 0`) rather than the `truncate` rule (`trunc i8
%val to i1`).

Bool values can only be `true` or `false`. While they are notionally a
single bit, the smallest addressable unit is CHAR_BIT bits large, and
CHAR_BIT is typically 8. Programming errors (such as memcpying a random
byte to a `bool`) can cause the 8-bit storage for a `bool` value to have
a bit pattern that is different from `true` or `false`, which then leads
to undefined behavior.

Clang has historically taken advantage of this in optimized builds
(everything other than -O0) by attaching range metadata to `bool` loads
to assume that the value loaded can only be 0 or 1. This leads to
exploitable security issues, and the correct behavior is not always easy

    [31 lines not shown]
DeltaFile
+90-90clang/test/OpenMP/target_teams_distribute_reduction_codegen.cpp
+72-72clang/test/CodeGen/scoped-atomic-ops.c
+60-60clang/test/CodeGen/AArch64/sve-intrinsics/acle_sve_dupq.c
+50-50clang/test/OpenMP/target_teams_distribute_parallel_for_simd_if_codegen.cpp
+39-39clang/test/CodeGenCXX/nrvo.cpp
+38-38clang/test/OpenMP/teams_distribute_parallel_for_simd_if_codegen.cpp
+349-34975 files not shown
+681-68181 files

Dreckly/dreckly f51d1dagames/iortcw distinfo Makefile, games/iortcw/patches patch-SP_code_ui_ui__shared.c patch-MP_code_ui_ui__shared.c

iortcw: fixes from pkgsrc
DeltaFile
+16-0games/iortcw/patches/patch-SP_code_ui_ui__shared.c
+16-0games/iortcw/patches/patch-MP_code_ui_ui__shared.c
+2-0games/iortcw/distinfo
+1-1games/iortcw/Makefile
+35-14 files

FreeBSD/ports 5b05520net-im/deltachat-desktop distinfo Makefile, net-im/deltachat-desktop/files/packagejsons pnpm-lock.yaml pnpm-workspace.yaml

net-im/deltachat-desktop: Update to 2.49.1

MFH:    2026Q2
(cherry picked from commit 9338e4adb8b135737b99c4fcfe711f16fd1875a7)
DeltaFile
+77-77net-im/deltachat-desktop/files/packagejsons/pnpm-lock.yaml
+5-5net-im/deltachat-desktop/distinfo
+2-2net-im/deltachat-desktop/Makefile
+2-2net-im/deltachat-desktop/files/packagejsons/packages/target-electron/package.json
+2-2net-im/deltachat-desktop/files/packagejsons/pnpm-workspace.yaml
+1-1net-im/deltachat-desktop/files/packagejsons/packages/target-tauri/package.json
+89-892 files not shown
+91-918 files

FreeBSD/ports 8d498dbnet/deltachat-rpc-server distinfo Makefile.crates

net/deltachat-rpc-server: Update to 2.49.0

MFH:    2026Q2
(cherry picked from commit 3d8042a8d73213798d7aa867a54504408049a06e)
DeltaFile
+25-25net/deltachat-rpc-server/distinfo
+11-11net/deltachat-rpc-server/Makefile.crates
+1-1net/deltachat-rpc-server/Makefile
+37-373 files

LLVM/project 7f6697bllvm/lib/Target/X86 X86CallingConv.td, llvm/test/CodeGen/X86 preserve_nonecc_call.ll

fix preserve_none in X86 backend (#192300)

This is a bug in the X86 backend affecting preserve_none with -O1. At
-O1, clang emits:
```
tail call preserve_nonecc void @_Z14func(ptr noundef nonnull byval(%struct.S) align 8 %1)
```
The `preserve_none` + `byval` never emitted the required caller-side
copy of the pointee. The callee received a pointer directly to the
original memory, violating the byval contract from LangRef: "a hidden
copy of the pointee is made between the caller and the callee, so the
callee is unable to modify the value in the caller".

The root cause is that CC_X86_64_Preserve_None in X86CallingConv.td had
no byval handling. As a result, byval arguments were falling through to
the register assignment rules and being assigned to registers instead of
stack slots.

The bug is fixed by one line in CC_X86_64_Preserve_None:

    [7 lines not shown]
DeltaFile
+49-0llvm/test/CodeGen/X86/preserve_nonecc_call.ll
+5-0llvm/lib/Target/X86/X86CallingConv.td
+54-02 files

NetBSD/pkgsrc drxhix1doc CHANGES-2026

   doc: Updated mail/neomutt to 20260406nb2
VersionDeltaFile
1.2631+2-1doc/CHANGES-2026
+2-11 files

NetBSD/pkgsrc Jlci2u9mail/neomutt distinfo Makefile

   neomutt: advance along release branch for more IMAP fixes

   Bump PKGREVISION.
VersionDeltaFile
1.91+4-4mail/neomutt/distinfo
1.120+3-3mail/neomutt/Makefile
+7-72 files

FreeBSD/ports 5541192misc/gemini-cli pkg-plist distinfo, misc/gemini-cli/files package-lock.json

misc/gemini-cli: update 0.38.2 → 0.39.1
DeltaFile
+23-479misc/gemini-cli/files/package-lock.json
+72-359misc/gemini-cli/pkg-plist
+3-3misc/gemini-cli/distinfo
+1-1misc/gemini-cli/Makefile
+99-8424 files

FreeBSD/ports 77f778dmath/py-numba-stats Makefile distinfo

math/py-numba-stats: update 1.11.0 → 1.12.0
DeltaFile
+5-2math/py-numba-stats/Makefile
+3-3math/py-numba-stats/distinfo
+8-52 files

FreeBSD/ports 5246ef1graphics/openusd pkg-plist Makefile, graphics/openusd/files patch-pxr_base_arch_timing.cpp patch-pxr_base_arch_fileSystem.cpp

graphics/openusd: update 25.11 → 26.05
DeltaFile
+60-16graphics/openusd/pkg-plist
+0-40graphics/openusd/files/patch-pxr_base_arch_timing.cpp
+19-7graphics/openusd/Makefile
+12-12graphics/openusd/files/patch-pxr_base_arch_fileSystem.cpp
+9-9graphics/openusd/files/patch-pxr_base_arch_debugger.cpp
+0-16graphics/openusd/files/patch-third__party_renderman-26_plugin_rmanArgsParser_pch.h
+100-1005 files not shown
+105-12711 files

NetBSD/pkgsrc defBH7pdoc CHANGES-2026

   doc: Updated devel/py-vcs-versioning to 1.1.1nb1
VersionDeltaFile
1.2630+2-1doc/CHANGES-2026
+2-11 files

NetBSD/pkgsrc uLmnbntdevel/py-vcs-versioning Makefile PLIST

   py-vcs-versioning: version vcs-versioning

   so multiple Python versions of this package can co-exist

   Based on a patch by gdt@

   Bump PKGREVISION.
VersionDeltaFile
1.2+4-1devel/py-vcs-versioning/Makefile
1.2+1-1devel/py-vcs-versioning/PLIST
1.1+1-0devel/py-vcs-versioning/ALTERNATIVES
+6-23 files

LLVM/project 5e62582libc/hdr/types socklen_t.h

[libc] Include from sys/socket.h for socklen_t (#194456)
DeltaFile
+1-1libc/hdr/types/socklen_t.h
+1-11 files

LLVM/project 7826a43clang/include/clang/Format Format.h

[clang-format][NFC] Sort AlignConsecutiveMacros option correctly (#194453)
DeltaFile
+35-32clang/include/clang/Format/Format.h
+35-321 files

LLVM/project 693a178llvm/test/CodeGen/RISCV combine-is_fpclass.ll

[DAG] Precommit tests for computeKnownFPClass - ISD::EXTRACT_SUBVECTOR and ISD::INSERT_SUBVECTOR. (#190694)

This patch adds baseline tests for `ISD::EXTRACT_SUBVECTOR` and `ISD::INSERT_SUBVECTOR` in `computeKnownFPClass`  in #190378
DeltaFile
+150-0llvm/test/CodeGen/RISCV/combine-is_fpclass.ll
+150-01 files

LLVM/project 36023eaflang/include/flang/Parser openmp-utils.h, flang/include/flang/Semantics openmp-utils.h

[flang][OpenMP] Move some utility functions from Semantics to Parser,… (#194434)

… NFC

Functions that only operate on AST nodes and not require any semantic
information belong in the parser library.
DeltaFile
+41-0flang/lib/Parser/openmp-utils.cpp
+0-41flang/lib/Semantics/openmp-utils.cpp
+4-4flang/lib/Semantics/resolve-directives.cpp
+8-0flang/include/flang/Parser/openmp-utils.h
+0-7flang/include/flang/Semantics/openmp-utils.h
+2-3flang/lib/Semantics/check-omp-structure.cpp
+55-552 files not shown
+58-588 files

FreeBSD/ports 9fca48daudio/praat distinfo Makefile, audio/praat/files patch-makefiles_makefile.defs.freebsd.alsa

audio/praat: update to 6.4.65, latest upstream

Release notes, as always, at
        https://www.fon.hum.uva.nl/praat/manual/What_s_new_.html

There has been a lot of changes, including possibly AI-speech-detection.
Perhaps that means ML. I have not tested this feature.

JACK was added upstream as a dependency, which
I have removed again in FreeBSD porting.
DeltaFile
+20-0audio/praat/files/patch-makefiles_makefile.defs.freebsd.alsa
+3-3audio/praat/distinfo
+3-1audio/praat/Makefile
+26-43 files

LLVM/project 1c90be3clang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/CodeGen CIRGenCXX.cpp

[CIR] Implement static-local-tls lowering (#194059)

thread_local variables at function scope work very much like
static-locals, except with slightly different lowering from
cir-lowering-prepare. This patch implements that lowering. Global tls
variables are left to a later patch.

One decision I made here was that LocalInitOp lost its
'static-local'-ness, and assumes it is always static-local. Global TLS
is probably just going to use Global directly, so we don't need to to
permit it.

I DID leave it in the printing, as it makes it more clear what is
happening/for symmetry with get_global/global.

---------

Co-authored-by: Henrich Lauko <henrich.lau at gmail.com>
DeltaFile
+360-0clang/test/CIR/CodeGen/thread-local-in-func.cpp
+50-46clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
+4-27clang/test/CIR/IR/invalid-static-local.cir
+15-9clang/test/CIR/IR/static-local.cir
+9-7clang/include/clang/CIR/Dialect/IR/CIROps.td
+4-11clang/lib/CIR/CodeGen/CIRGenCXX.cpp
+442-1003 files not shown
+452-1119 files

LLVM/project 6226ca5clang/include/clang/CIR MissingFeatures.h, clang/lib/CIR/CodeGen CIRGenExpr.cpp

[CIR] Implement declref-lvalue lambda lowering (#194409)

This NYI showed up a few times and is pretty easy to get to,
     implementation is equally as trivial.

---------

Co-authored-by: Andy Kaylor <akaylor at nvidia.com>
DeltaFile
+191-0clang/test/CIR/CodeGen/lambda-decomp-decl-captures.cpp
+2-3clang/lib/CIR/CodeGen/CIRGenExpr.cpp
+0-1clang/include/clang/CIR/MissingFeatures.h
+193-43 files

LLVM/project 944b80bllvm/docs LangRef.rst ReleaseNotes.md, llvm/include/llvm/IR DataLayout.h

[DataLayout] Add null pointer value infrastructure

Add support for specifying the null pointer bit representation per address space
in DataLayout via new pointer spec flags:
- 'z': null pointer is all-zeros
- 'o': null pointer is all-ones

When neither flag is present, the address space inherits the default set by the
new 'N<null-value>' top-level specifier ('Nz' or 'No'). If that is also absent,
the null pointer value is zero.

No target DataLayout strings are updated in this change. This is pure
infrastructure for a future ConstantPointerNull semantic change to support
targets with non-zero null pointers (e.g. AMDGPU).
DeltaFile
+136-1llvm/unittests/IR/DataLayoutTest.cpp
+63-7llvm/lib/IR/DataLayout.cpp
+22-1llvm/include/llvm/IR/DataLayout.h
+17-1llvm/docs/LangRef.rst
+8-0llvm/docs/ReleaseNotes.md
+246-105 files