LLVM/project 18519f3lld/COFF DriverUtils.cpp, lld/test/COFF subsystem.test

[lld][llvm-objcopy] Enable Xbox subsystem for PE images. (#191779)

This patch enables selecting the Xbox subsystem (IMAGE_SUBSYSTEM_XBOX)
for PE images. Certain existing tools used in the Xbox homebrew scene
expect images to use the Xbox subsystem, so it's nice to be able to set
this within the LLVM toolchain instead of invoking yet another tool or
manually patching the binaries.
DeltaFile
+13-11lld/COFF/DriverUtils.cpp
+10-0lld/test/COFF/subsystem.test
+5-0llvm/test/tools/llvm-objcopy/COFF/subsystem.test
+1-0llvm/tools/llvm-objcopy/ObjcopyOptions.cpp
+29-114 files

LLVM/project 392f76aflang/include/flang/Optimizer/Support Utils.h, flang/lib/Optimizer/Analysis AliasAnalysis.cpp

[flang] Recognize generic allocations in Flang LICM. (#191923)

Instead of matching particular operations like `fir.alloca`
we can use `MemoryEffectOpInterface` to figure out if a location
is a new allocation.
DeltaFile
+59-0flang/test/Transforms/licm-allocmem-cufaloc.mlir
+15-23flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
+12-9flang/lib/Optimizer/Transforms/LoopInvariantCodeMotion.cpp
+17-0flang/lib/Optimizer/Support/Utils.cpp
+7-0flang/include/flang/Optimizer/Support/Utils.h
+110-325 files

LLVM/project 5d7a143clang/lib/StaticAnalyzer/Core AnalyzerOptions.cpp, clang/unittests/StaticAnalyzer AnalyzerFormattingTest.cpp CMakeLists.txt

[analyzer] Fix alignment of entries in -analyzer-help (#190570)

Fix a formatting bug in `AnalyzerOptions::printFormattedEntry` (used by
`clang -cc1 -print-analyzer-options`), which led to misalignment of a
checker description.

This commit ensures that `printFormattedEntry` inserts a newline in the
corner case when the length of the name of a checker is exactly equal to
`EntryWidth`. (In this situation the old code inserted a space between
the name and the description, so this description was not aligned with
the other descriptions.)

Additionally this commit also fixes the corner case where the pad before
the checker name (specified by `InitialPad`) is 0. Before the fix, due
to `llvm::raw_formatted_ostream::PadToColumn` logic, `InitialPad = 0`
still added one space character as padding before the checker name.
Fortunately `InitialPad = 0` was never used in the program, so this bug
was not visible to the user.

These changes are both tested by the freshly added unit tests.
DeltaFile
+187-0clang/unittests/StaticAnalyzer/AnalyzerFormattingTest.cpp
+8-3clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
+1-0clang/unittests/StaticAnalyzer/CMakeLists.txt
+196-33 files

LLVM/project 18ab520llvm/lib/Target/RISCV/MCTargetDesc RISCVMatInt.cpp, llvm/test/CodeGen/RISCV rv32p.ll rv64p.ll

[RISCV][P-ext] Support plui.h/w in generateInstSeqImpl. (#192137)

There's some overlap in the pli/plui encodings. I've modified the code
to prefer pli.b over pli.h and to prefer pli.h over plui.h. This matches
what we do in the splat_vector path in RISCVISelDAGToDAG.
DeltaFile
+31-19llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
+14-6llvm/test/CodeGen/RISCV/rv32p.ll
+16-0llvm/test/CodeGen/RISCV/rv64p.ll
+8-0llvm/test/MC/RISCV/rv64p-aliases-valid.s
+4-0llvm/test/MC/RISCV/rv32p-aliases-valid.s
+73-255 files

FreeBSD/src bf41d86sys/netinet ip_fastfwd.c, sys/netinet6 ip6_fastfwd.c

routing: Make ip[6]_tryforward() FIB-aware for local traffic

`ip_tryforward()` and `ip6_tryforward()` checks whether the destination
address is local or not without considering if it belongs to the current FIB.
If the destination is local but not in our FIB, forward it instead
of returning it to ip_input().

PR:             292319
Reviewed by:    zlei
MFC after:      1 week
MFC to:         stable/15
Differential Revision: https://reviews.freebsd.org/D56353
DeltaFile
+2-2sys/netinet/ip_fastfwd.c
+1-1sys/netinet6/ip6_fastfwd.c
+3-32 files

LLVM/project c24bb1ccompiler-rt/lib/sanitizer_common sanitizer_posix_libcdep.cpp

[sanitizer] Generalize FD closing in StartSubprocess (#192114)

Use internal_close_range with a fallback to the sysconf(_SC_OPEN_MAX)
loop. This removes the platform-specific #if and lets all platforms
benefit from close_range when supported.

Follow-up to #191971.
DeltaFile
+4-5compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
+4-51 files

LLVM/project 3b4731fllvm/include/llvm/Analysis FunctionPropertiesAnalysis.h InstCount.h

Make Passes Required - func-properties-stats and instcount (#192130)

These passes count different types of instructions and we want to see
them even though optnone is enabled
DeltaFile
+2-0llvm/include/llvm/Analysis/FunctionPropertiesAnalysis.h
+2-0llvm/include/llvm/Analysis/InstCount.h
+4-02 files

HardenedBSD/ports 0aac0admultimedia/ffmpeg/files patch-configure

HBSD: Restore accidentally deleted file

I accidentally deleted the patch to the configure script for
multimedia/ffmpeg. This patch is maintained by our upstream, FreeBSD.

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+11-0multimedia/ffmpeg/files/patch-configure
+11-01 files

LLVM/project c891843llvm/lib/Target/AMDGPU SIInstructions.td, llvm/test/CodeGen/AMDGPU sub.v2i16.ll add.v2i16.ll

[AMDGPU] Add true16 patterns for build_vector (vgpr, 0)

It is shorter than VOP3 and instruction and in some cases
can save a second move.
DeltaFile
+8-10llvm/test/CodeGen/AMDGPU/sub.v2i16.ll
+8-10llvm/test/CodeGen/AMDGPU/add.v2i16.ll
+4-8llvm/test/CodeGen/AMDGPU/flat-saddr-load.ll
+7-5llvm/test/CodeGen/AMDGPU/fcanonicalize.f16.ll
+10-0llvm/lib/Target/AMDGPU/SIInstructions.td
+2-8llvm/test/CodeGen/AMDGPU/divergence-driven-buildvector.ll
+39-414 files not shown
+48-5010 files

LLVM/project 8d734fdllvm/lib/CodeGen MachineFunction.cpp

Added better datalayout incompatible error message (#191862)

The existing datalayout incompatible error assert does not help with
debugging, as it does not print the datalayouts in question.

This change makes this failure give more useful information.
DeltaFile
+9-3llvm/lib/CodeGen/MachineFunction.cpp
+9-31 files

pkgng/pkgng 61a7a2dexternal/libecc Makefile.autosetup Makefile.in, libpkg Makefile.in Makefile.autosetup

revert the Makefile.autosetup -> Makefile.in

it causes issues with gmake
DeltaFile
+242-0tests/Makefile.autosetup
+0-242tests/Makefile.in
+0-211libpkg/Makefile.in
+211-0libpkg/Makefile.autosetup
+147-0external/libecc/Makefile.autosetup
+0-147external/libecc/Makefile.in
+600-60037 files not shown
+1,275-1,27543 files

FreeBSD/ports 583218fx11-servers/xorg-server distinfo Makefile

x11-servers/xorg-server: security update: 21.1.20 -> 21.1.22

PR:             294519
Security:       CVE-2026-33999, CVE-2026-34000, CVE-2026-34001,
                CVE-2026-34002, CVE-2026-34003

Sponsored by:   tipi.work

(cherry picked from commit 3322a283421a280998b6e972171ebe90451dbadc)
DeltaFile
+3-3x11-servers/xorg-server/distinfo
+1-1x11-servers/xorg-server/Makefile
+4-42 files

FreeBSD/ports 2418dd2x11-servers/xwayland distinfo Makefile

x11-servers/xwayland: security update to 24.1.10

PR:             294518
Security:       CVE-2026-33999, CVE-2026-34000, CVE-2026-34001,
                CVE-2026-34002, CVE-2026-34003

Sponsored by:   tipi.work

(cherry picked from commit e1e9fcea2b86c3754279aebc6464117302df35ea)
DeltaFile
+3-3x11-servers/xwayland/distinfo
+1-1x11-servers/xwayland/Makefile
+4-42 files

Linux/linux 883af1farch/x86/coco/tdx debug.c tdx.c, arch/x86/include/asm tdx_global_metadata.h

Merge tag 'x86_tdx_for_7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 TDX updates from Dave Hansen:
 "The only real thing of note here is printing the TDX module version.

  This is a little silly on its own, but the upcoming TDX module update
  code needs the same TDX module call. This shrinks that set a wee bit.

  There's also few minor macro cleanups and a tweak to the GetQuote ABI
  to make it easier for userspace to detect zero-length (failed) quotes"

* tag 'x86_tdx_for_7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  virt: tdx-guest: Return error for GetQuote failures
  KVM/TDX: Rename KVM_SUPPORTED_TD_ATTRS to KVM_SUPPORTED_TDX_TD_ATTRS
  x86/tdx: Rename TDX_ATTR_* to TDX_TD_ATTR_*
  KVM/TDX: Remove redundant definitions of TDX_TD_ATTR_*
  x86/tdx: Fix the typo in TDX_ATTR_MIGRTABLE
  x86/virt/tdx: Print TDX module version during init
  x86/virt/tdx: Retrieve TDX module version
DeltaFile
+25-25arch/x86/include/asm/shared/tdx.h
+13-13arch/x86/coco/tdx/debug.c
+22-0arch/x86/virt/vmx/tdx/tdx_global_metadata.c
+4-4arch/x86/coco/tdx/tdx.c
+7-0arch/x86/include/asm/tdx_global_metadata.h
+0-6arch/x86/kvm/vmx/tdx_arch.h
+71-482 files not shown
+78-508 files

LLVM/project 8b054e8flang/lib/Lower ConvertVariable.cpp, flang/test/Lower/OpenACC acc-declare-use-associated.f90

[flang][OpenACC] Propagate acc.declare attribute to fir.global for USEd module variables (#192141)

When a module with `!$acc declare` is compiled separately from the
program that USEs it, `declareGlobal()` creates `fir.global` without the
`acc.declare` attribute. This causes implicit data mappings to override
device data that should already be present via `acc declare`.

The fix reads the symbol's `AccDeclare`/`AccCreate`/`AccCopyIn`/etc.
flags (already set from the `.mod` file by semantics) and attaches the
`acc.declare` attribute to the `fir.global`.
DeltaFile
+38-3flang/lib/Lower/ConvertVariable.cpp
+29-0flang/test/Lower/OpenACC/acc-declare-use-associated.f90
+67-32 files

OpenBSD/src cCnXAHyusr.sbin/vmd config.c parse.y

   vmd(8): remove config parsing TOCTOU with disk parsing.

   When vmd parses vm.conf, it's inspecting any provided disk images
   to determine the disk format (raw or qcow) if left unspecified.
   This is a big TOCTOU because nothing prevents these files from
   changing between vmd startup and vm launch.

   This change defers detection to vm launch time and tracks the disk
   format as an enum instead of an int to make things more interpretable.

   ok hshoexer@
VersionDeltaFile
1.81+34-7usr.sbin/vmd/config.c
1.74+11-29usr.sbin/vmd/parse.y
1.137+12-11usr.sbin/vmd/virtio.c
1.146+9-7usr.sbin/vmd/vmd.h
1.28+7-4usr.sbin/vmd/vioblk.c
1.62+2-1usr.sbin/vmd/virtio.h
+75-596 files

OpenBSD/ports maHxvbdgraphics/tiff Makefile, graphics/tiff/patches patch-libtiff_tif_jpeg_c

   backport fix for an issue creating tiled 12-bit JPEGs, triggered by a recent
   change in libjpeg-turbo.  ok tb naddy
VersionDeltaFile
1.5+24-121graphics/tiff/patches/patch-libtiff_tif_jpeg_c
1.113+1-1graphics/tiff/Makefile
+25-1222 files

LLVM/project 104b63bclang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp

[CIR] Fix heap-use-after-free in IndirectBrOp lowering (#191949)

The previous code called op->getBlock()->eraseArgument(0) to remove a
block argument when the poison attribute was set (unreachable block with
no predecessors). This directly mutated the IR, freeing the
BlockArgument while the MLIR dialect conversion framework still held
references to it. When the framework later replayed changes in
applyRewrites(), it dereferenced the freed BlockArgument, causing a
heap-use-after-free detected by ASAN.

Found by running check-clang-cir under ASAN
(test: clang/test/CIR/CodeGen/label-values.c).

The fix removes the eraseArgument call entirely. The MLIR conversion
framework tracks block arguments and handles their lifecycle. A block
with no predecessors naturally produces no PHI node in LLVM IR, so
manual removal was unnecessary.

Additional cleanup:

    [4 lines not shown]
DeltaFile
+11-21clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+11-211 files

LLVM/project ce170c9llvm/lib/Target/AArch64 AArch64TargetTransformInfo.cpp

[AArch64] Cleanup of fptosi costs. NFC (#192144)

This contains some minor formatting changes, along with moving some code
closer
to where it belongs - keeping fixed length costs together, moving a
WideTy
block before the definition and use of ConversionTbl.
DeltaFile
+33-31llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+33-311 files

FreeBSD/ports e1e9fcex11-servers/xwayland distinfo Makefile

x11-servers/xwayland: security update to 24.1.10

PR:             294518
Security:       CVE-2026-33999, CVE-2026-34000, CVE-2026-34001,
                CVE-2026-34002, CVE-2026-34003

Sponsored by:   tipi.work
DeltaFile
+3-3x11-servers/xwayland/distinfo
+1-1x11-servers/xwayland/Makefile
+4-42 files

FreeBSD/ports 3322a28x11-servers/xorg-server distinfo Makefile

x11-servers/xorg-server: security update: 21.1.20 -> 21.1.22

PR:             294519
Security:       CVE-2026-33999, CVE-2026-34000, CVE-2026-34001,
                CVE-2026-34002, CVE-2026-34003

Sponsored by:   tipi.work
DeltaFile
+3-3x11-servers/xorg-server/distinfo
+1-1x11-servers/xorg-server/Makefile
+4-42 files

FreeBSD/ports db6e74cdevel/got distinfo Makefile

devel/got: update to 0.124

User-visible changes:
- fix a segfault in tog while using the & search feature
- expand tabs in log messages displayed by tog diff to prevent misalignment
DeltaFile
+3-3devel/got/distinfo
+1-1devel/got/Makefile
+4-42 files

Linux/linux 51efd08arch/x86/mm/pat set_memory.c

Merge tag 'x86_mm_for_7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 mm updates from Dave Hansen:

 - Convert x86 code to use generic "pagetable" APIs and ptdescs

   This aligns some the set_memory*() code better with the new page
   table APIs, especially using ptdescs as opposed to 'struct page'
   directly.

* tag 'x86_mm_for_7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/mm/pat: Convert split_large_page() to use ptdescs
  x86/mm/pat: Convert populate_pgd() to use page table apis
  x86/mm/pat: Convert pmd code to use page table apis
  x86/mm/pat: Convert pte code to use page table apis
DeltaFile
+25-12arch/x86/mm/pat/set_memory.c
+25-121 files

HardenedBSD/ports 060c5f0multimedia/ffmpeg/files patch-libavcodec_ffv1enc__vulkan.c patch-configure

HBSD: Fix build of multimedia/ffmpeg

ffmpeg was recently updated, causing issues with our patches for
_FORTIFY_SOURCE=2 support. Fix the build by rebasing the patches for the
updated version.

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+2-11multimedia/ffmpeg/files/patch-libavcodec_ffv1enc__vulkan.c
+0-11multimedia/ffmpeg/files/patch-configure
+2-5multimedia/ffmpeg/files/patch-libavcodec_vulkan__ffv1.c
+4-273 files

Linux/linux 9f2bb6carch/x86/entry/vsyscall vsyscall_64.c, arch/x86/include/asm vsyscall.h

Merge tag 'x86_cpu_for_7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 cpu updates from Dave Hansen:

 - Complete LASS enabling: deal with vsyscall and EFI

   The existing Linear Address Space Separation (LASS) support punted
   on support for common EFI and vsyscall configs. Complete the
   implementation by supporting EFI and vsyscall=xonly.

 - Clean up CPUID usage in newer Intel "avs" audio driver and update the
   x86-cpuid-db file

* tag 'x86_cpu_for_7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  tools/x86/kcpuid: Update bitfields to x86-cpuid-db v3.0
  ASoC: Intel: avs: Include CPUID header at file scope
  ASoC: Intel: avs: Check maximum valid CPUID leaf
  x86/cpu: Remove LASS restriction on vsyscall emulation
  x86/vsyscall: Disable LASS if vsyscall mode is set to EMULATE

    [6 lines not shown]
DeltaFile
+342-319tools/arch/x86/kcpuid/cpuid.csv
+56-35arch/x86/entry/vsyscall/vsyscall_64.c
+26-12sound/soc/intel/avs/tgl.c
+18-17arch/x86/kernel/cpu/common.c
+35-0arch/x86/platform/efi/efi_64.c
+9-4arch/x86/include/asm/vsyscall.h
+486-3875 files not shown
+501-39511 files

OpenBSD/ports cvKWfh4graphics/tiff Makefile, graphics/tiff/patches patch-libtiff_tif_getimage_c patch-libtiff_tif_dirwrite_c

   graphics/tiff: fix integer overflows leading to heap overflows

   CVE-2026-4775
   https://gitlab.com/libtiff/libtiff/-/commit/782a11d6

   Further fixes
   https://gitlab.com/libtiff/libtiff/-/commit/67713aae

   ok tb@ sthen@
VersionDeltaFile
1.19+39-257graphics/tiff/patches/patch-libtiff_tif_getimage_c
1.3+42-63graphics/tiff/patches/patch-libtiff_tif_dirwrite_c
1.3+15-14graphics/tiff/patches/patch-libtiff_tif_print_c
1.112+1-1graphics/tiff/Makefile
+97-3354 files

Linux/linux 49b30f3arch/x86/entry/vdso vma.c, arch/x86/include/asm vdso.h

Merge tag 'x86-vdso-2026-04-13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 vdso updates from Ingo Molnar:
 "vdso cleanups by Thomas Weißschuh:

   - Clean up remnants of VDSO32_NOTE_MASK

   - Drop pointless #ifdeffery in vvar_vclock_fault()"

* tag 'x86-vdso-2026-04-13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/vdso: Drop pointless #ifdeffery in vvar_vclock_fault()
  x86/vdso: Clean up remnants of VDSO32_NOTE_MASK
DeltaFile
+0-4arch/x86/entry/vdso/vma.c
+0-1arch/x86/include/asm/vdso.h
+0-1arch/x86/tools/vdso2c.c
+0-63 files

LLVM/project 2fe82e3llvm/test/TableGen/GlobalISelEmitter GlobalISelEmitter.td, llvm/utils/TableGen/Common/GlobalISel GlobalISelMatchTable.cpp

[GlobalISel] use constexpr LLT types when creating ISel data (#191574)

The GlobalISel uses a lookup table to map LLTs which is constructed
prior to initialization of extended LLT functionality, resulting in
ANY_SCALAR entries. During instruction selection, a hash-based
lookup is done on actual INTEGER/FLOAT LLTs. But hash values of
ANY_SCALAR do not match those of INTEGER/FLOAT, causing a failure.

Workaround is the use constexpr LLT, which encodes INTEGER/FLOAT LLT.

Assisted-by: Claude Opus 4.6
DeltaFile
+31-26llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp
+2-2llvm/test/TableGen/GlobalISelEmitter/GlobalISelEmitter.td
+33-282 files

LLVM/project 977c60fclang/test/Sema/aarch64-sve2p3-intrinsics acle_sve2p3_target_lane.c acle_sve2p3_target.c, llvm/lib/Target/AArch64 AArch64SVEInstrInfo.td AArch64InstrInfo.td

fixup! Move tests
DeltaFile
+0-54clang/test/Sema/aarch64-sve2p3-intrinsics/acle_sve2p3_target_lane.c
+38-3clang/test/Sema/aarch64-sve2p3-intrinsics/acle_sve2p3_target.c
+1-1llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
+1-0llvm/lib/Target/AArch64/AArch64InstrInfo.td
+40-584 files

Linux/linux 0972ba5arch/x86 Kconfig.cpu Kconfig, arch/x86/include/asm vermagic.h

Merge tag 'x86-platform-2026-04-13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 platform updates from Ingo Molnar:

 - Remove M486/M486SX/ELAN support, first minimal step (Ingo Molnar)

 - Print AGESA string from DMI additional information entry (Yazen
   Ghannam, Mario Limonciello)

 - Improve and fix the DMI code (Mario Limonciello):
     - Correct an indexing error in <linux/dmi.h>
     - Adjust dmi_decode() to use enums <linux/dmi.h>
     - Add pr_fmt() for dmi_scan.c to fix & standardize the log prefixes

* tag 'x86-platform-2026-04-13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/CPU/AMD: Print AGESA string from DMI additional information entry
  firmware: dmi: Add pr_fmt() for dmi_scan.c
  firmware: dmi: Adjust dmi_decode() to use enums
  firmware: dmi: Correct an indexing error in dmi.h
  x86/cpu: Remove M486/M486SX/ELAN support
DeltaFile
+49-0arch/x86/kernel/cpu/amd.c
+10-34arch/x86/Kconfig.cpu
+19-15drivers/firmware/dmi_scan.c
+23-0include/linux/dmi.h
+0-10arch/x86/Kconfig
+0-6arch/x86/include/asm/vermagic.h
+101-651 files not shown
+101-677 files