HardenedBSD/src feecd6fsys/contrib/dev/iwlwifi/fw/api rx.h, sys/contrib/dev/iwlwifi/mld rx.c d3.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+931-804sys/contrib/dev/iwlwifi/mld/rx.c
+0-809sys/contrib/dev/iwlwifi/mvm/link.c
+359-200sys/contrib/dev/iwlwifi/mld/d3.c
+49-347sys/contrib/dev/iwlwifi/mvm/d3.c
+286-0sys/contrib/dev/iwlwifi/fw/api/rx.h
+175-77sys/contrib/dev/iwlwifi/pcie/gen1_2/trans.c
+1,800-2,237115 files not shown
+3,332-4,485121 files

HardenedBSD/src b3aa8cdsys/contrib/dev/iwlwifi/fw/api rx.h, sys/contrib/dev/iwlwifi/mld rx.c d3.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+931-804sys/contrib/dev/iwlwifi/mld/rx.c
+0-809sys/contrib/dev/iwlwifi/mvm/link.c
+359-200sys/contrib/dev/iwlwifi/mld/d3.c
+49-347sys/contrib/dev/iwlwifi/mvm/d3.c
+286-0sys/contrib/dev/iwlwifi/fw/api/rx.h
+175-77sys/contrib/dev/iwlwifi/pcie/gen1_2/trans.c
+1,800-2,237109 files not shown
+3,215-4,445115 files

HardenedBSD/src f2b6a8clib/libc/gen uexterr_format.c err.3

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+20-8lib/libc/gen/uexterr_format.c
+7-1lib/libc/gen/err.3
+27-92 files

HardenedBSD/ports 575d62baudio/spiralsynthmodular Makefile, audio/spiralsynthmodular/files patch-SpiralSound_SpiralInfo.h patch-SpiralSound_SpiralInfo.C

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+914-34devel/stdman/pkg-plist
+25-53mail/davmail/pkg-plist
+70-0audio/spiralsynthmodular/files/patch-SpiralSound_SpiralInfo.h
+64-0audio/spiralsynthmodular/files/patch-SpiralSound_SpiralInfo.C
+20-20mail/davmail/Makefile
+12-12audio/spiralsynthmodular/Makefile
+1,105-11915 files not shown
+1,143-15621 files

LLVM/project 16cf423clang/test/Preprocessor wasm-target-features.c

[WebAssembly] Move a wide-arithmetic test (NFC) (#184950)

Other individual feature tests appear before CPU tests, so this moves
this test there to make it consistent.
DeltaFile
+9-9clang/test/Preprocessor/wasm-target-features.c
+9-91 files

LLVM/project e435e07llvm/lib/Target/AArch64 AArch64A53Fix835769.cpp AArch64.h

[NewPM] Port for AArch64A53Fix835769 (#184965)
DeltaFile
+33-16llvm/lib/Target/AArch64/AArch64A53Fix835769.cpp
+8-2llvm/lib/Target/AArch64/AArch64.h
+2-2llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
+1-0llvm/lib/Target/AArch64/AArch64PassRegistry.def
+44-204 files

FreeBSD/ports 49ef88csecurity/crowdsec Makefile, security/crowdsec-blocklist-mirror Makefile

security/crowdsec{,-blocklist-mirror,-firewall-bouncer}: Transfer maintainership

PR:     293616
DeltaFile
+1-1security/crowdsec/Makefile
+1-1security/crowdsec-firewall-bouncer/Makefile
+1-1security/crowdsec-blocklist-mirror/Makefile
+3-33 files

HardenedBSD/ports 49ef88csecurity/crowdsec Makefile, security/crowdsec-blocklist-mirror Makefile

security/crowdsec{,-blocklist-mirror,-firewall-bouncer}: Transfer maintainership

PR:     293616
DeltaFile
+1-1security/crowdsec/Makefile
+1-1security/crowdsec-blocklist-mirror/Makefile
+1-1security/crowdsec-firewall-bouncer/Makefile
+3-33 files

LLVM/project 11888cbllvm/lib/Support JSON.cpp, llvm/unittests/Support JSONTest.cpp

[JSON] Consistently reset moved-from object (#185125)

Before the patch moved from object was in consistent state.
For some types it resets contents and switch to T_Null, for others
it preserves type and value.

So make sure to set T_Null for all.

When we set T_Null we need to destroy the value.
It's important for particular types, like std::string. With
Asan it must unpoison SSO buffer.

Fixes false container overflows after #184693:

https://lab.llvm.org/buildbot/#/builders/169/builds/20655/steps/11/logs/stdio
DeltaFile
+13-0llvm/unittests/Support/JSONTest.cpp
+2-3llvm/lib/Support/JSON.cpp
+15-32 files

LLVM/project 89b4732offload/plugins-nextgen/amdgpu/src rtl.cpp, offload/plugins-nextgen/cuda/src rtl.cpp

Add fixes
DeltaFile
+2-2offload/plugins-nextgen/level_zero/include/L0Kernel.h
+2-0offload/plugins-nextgen/amdgpu/src/rtl.cpp
+1-1offload/plugins-nextgen/cuda/src/rtl.cpp
+1-1offload/plugins-nextgen/level_zero/src/L0Kernel.cpp
+1-0offload/test/offloading/dyn_groupprivate.cpp
+7-45 files

LLVM/project 8803401llvm/tools/dsymutil DebugMap.h dsymutil.cpp

[dsymutil] Use DebugMapFilter when parsing --allow/--disallow YAML input (#185061)

PR https://github.com/llvm/llvm-project/pull/182083 forgot to switch
over to use the newly added `DebugMapFilter` when parsing
`--allow/--disallow` YAML input. It was still using
`ObjectFileList`/`ObjectFileEntry`, which was added initially in the
same PR and was later intended to be replaced by `DebugMapFilter`.

This patch switches over to use `DebugMapFilter`, adds necessary YAML
traits, and removes `ObjectFileList`/`ObjectFileEntry`.
DeltaFile
+42-1llvm/tools/dsymutil/DebugMap.h
+4-31llvm/tools/dsymutil/dsymutil.cpp
+25-9llvm/tools/dsymutil/DebugMap.cpp
+71-413 files

LLVM/project f540ad6bolt/include/bolt/Passes ReorderUtils.h

[bolt][NFC] Remove unused ReorderUtils.h (#184642)

This header has a case sensitivity syntax error, delete it since it's
unused
DeltaFile
+0-152bolt/include/bolt/Passes/ReorderUtils.h
+0-1521 files

LLVM/project 32c51eelldb/source/Core PluginManager.cpp

[lldb] Implement PluginInfo move constructor (#185137)

The default move constructor wasn't nulling out the callbacks. Combined
with the fact that llvm::sys::DynamicLibrary has no explicit move
constructor and hence library.isValid() still returned true after having
moved-from, we would end up calling plugin_term_callback() when
destroying the moved-from PluginInfo, calling it prematurely.
DeltaFile
+13-2lldb/source/Core/PluginManager.cpp
+13-21 files

FreeBSD/src 74aec9fshare/man/man7 ports.7

ports.7: Document DEFAULT_VERSIONS

MFC after:              3 days
Co-authored-by:         Adam Weinberger <adamw at FreeBSD.org>
Differential Revision:  https://reviews.freebsd.org/D55443
DeltaFile
+4-0share/man/man7/ports.7
+4-01 files

HardenedBSD/src 74aec9fshare/man/man7 ports.7

ports.7: Document DEFAULT_VERSIONS

MFC after:              3 days
Co-authored-by:         Adam Weinberger <adamw at FreeBSD.org>
Differential Revision:  https://reviews.freebsd.org/D55443
DeltaFile
+4-0share/man/man7/ports.7
+4-01 files

LLVM/project 541d546lldb/include/lldb/Core PluginManager.h, lldb/source/Commands CommandObjectProcess.cpp

[lldb] Use llvm::SmallVector in the PluginManager (NFC) (#184912)

Most of the plugins have only a small number of instances. Use
`llvm::SmallVector` instead of `std::vector`.

Depends on https://github.com/llvm/llvm-project/pull/184837
DeltaFile
+87-73lldb/source/Core/PluginManager.cpp
+67-56lldb/include/lldb/Core/PluginManager.h
+9-9lldb/unittests/Core/PluginManagerTest.cpp
+1-1lldb/source/Commands/CommandObjectProcess.cpp
+1-1lldb/source/Symbol/SaveCoreOptions.cpp
+165-1405 files

LLVM/project cfa9499llvm/unittests/Support JSONTest.cpp

test

Created using spr 1.3.7
DeltaFile
+13-0llvm/unittests/Support/JSONTest.cpp
+13-01 files

LLVM/project 3164d54llvm/lib/Target/RISCV RISCVISelLowering.cpp RISCVISelDAGToDAG.cpp, llvm/test/CodeGen/RISCV rv32p.ll

[RISCV][P-ext] Custom legalize i64 SHL to WSLL(I)/WSLA(I) (#185079)

When input is zero or sign extended.
DeltaFile
+40-0llvm/test/CodeGen/RISCV/rv32p.ll
+25-5llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+29-0llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+7-0llvm/lib/Target/RISCV/RISCVInstrInfoP.td
+101-54 files

DragonFlyBSD/dports 5e6efcfnet/cloud-init-devel Makefile, net/cloud-init-devel/files extra-cloudinit_distros_freebsd.py

Manual tweak net/cloud-init-devel
DeltaFile
+9-3net/cloud-init-devel/Makefile
+11-0net/cloud-init-devel/files/extra-cloudinit_distros_freebsd.py
+20-32 files

LLVM/project 43254eallvm/lib/Support JSON.cpp

format

Created using spr 1.3.7
DeltaFile
+1-1llvm/lib/Support/JSON.cpp
+1-11 files

LLVM/project 0efe951llvm/lib/Support JSON.cpp

destroy explicitly

Created using spr 1.3.7
DeltaFile
+2-0llvm/lib/Support/JSON.cpp
+2-01 files

LLVM/project 3e24a39llvm/lib/CodeGen/SelectionDAG TargetLowering.cpp, llvm/test/CodeGen/AArch64 udiv-const-optimization.ll sve-streaming-mode-fixed-length-int-div.ll

[SelectionDAG] Optimize 32-bit udiv with 33-bit magic constants on 64-bit targets (#181288)

This PR optimizes 32-bit unsigned division by constants when the magic
constant is 33 bits (IsAdd=true case in UnsignedDivisionByConstantInfo)
on 64-bit targets.

## Overview

Compiler optimization for constant division of `uint32_t` variables
(such as `x / 7`) is based on the method
proposed by Granlund and Montgomery in 1994 (hereafter referred to as
the GM method).
However, the GM method for the IsAdd=true case was optimized for 32-bit
CPUs, not 64-bit CPUs.

This patch provides optimizations specifically for 64-bit CPUs (such as
x86_64 and Apple M-series).
A simple benchmark demonstrates over 60% speedup on both Intel Xeon and
Apple M4 processors.

    [66 lines not shown]
DeltaFile
+141-0llvm/test/CodeGen/X86/udiv-const-optimization.ll
+66-0llvm/test/CodeGen/RISCV/udiv-const-optimization.ll
+61-0llvm/test/CodeGen/AArch64/udiv-const-optimization.ll
+14-45llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-int-div.ll
+28-19llvm/test/CodeGen/AArch64/urem-lkk.ll
+35-2llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+345-667 files not shown
+421-14813 files

LLVM/project 8681470clang/include/clang/DependencyScanning DependencyScanningWorker.h DependencyScannerImpl.h, clang/include/clang/Tooling DependencyScanningTool.h

[clang][Dependency Scanning] Fix the In-Memory Buffer Used for By-Name Scanning (#183396)

This PR fixes two issues of the in-memory buffer we use for the input
file when a dependency scanner performs by-name queries.

First, it renames the buffer. The temporary file was named
`ScanningByName-%%%%%%%%.input`, which leads to weird diagnostics such
as
```
ScanningByName-2d42a1e9.input:1:1: fatal error: could not build module 'X'
```

This PR changes the name of the file buffer, so we get diagnostics such
as
```
module-include.input:1:1: fatal error: could not build module 'X'
```
which is more indicative. 


    [10 lines not shown]
DeltaFile
+64-2clang/lib/Tooling/DependencyScanningTool.cpp
+0-55clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+0-14clang/include/clang/DependencyScanning/DependencyScanningWorker.h
+10-0clang/include/clang/Tooling/DependencyScanningTool.h
+3-3clang/test/ClangScanDeps/modules-full-by-mult-mod-names-diagnostics.c
+0-1clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+77-756 files

FreeBSD/ports a3f2aa7devel/stdman pkg-plist distinfo

devel/stdman: Update to 2024.07.05
DeltaFile
+914-34devel/stdman/pkg-plist
+3-3devel/stdman/distinfo
+1-1devel/stdman/Makefile
+918-383 files

HardenedBSD/ports a3f2aa7devel/stdman pkg-plist distinfo

devel/stdman: Update to 2024.07.05
DeltaFile
+914-34devel/stdman/pkg-plist
+3-3devel/stdman/distinfo
+1-1devel/stdman/Makefile
+918-383 files

LLVM/project 81a537elldb/include/lldb/Core PluginManager.h, lldb/source/Core PluginManager.cpp

[lldb] Use range-based for loops over plugins (#184837)

This PR replaces the Get*CallbackAtIndex pattern in the PluginManager
with returning a snapshot of callbacks that the caller can iterate over
using a range-based for loop. This is a continuation of #184452 which
added thread safety by using snapshots. However, that introduced a bunch
of unnecessary copies which are largely eliminated again by getting the
snapshot once when gather all the callbacks, rather than doing that on
each iteration when querying a plugin for a given index. It also
eliminates the possibility of the snapshot changing underneath you when
iterating over the plugins.

This change was largely mechanical and I used Claude to do the menial
work of updating the signatures and call sites.
DeltaFile
+125-163lldb/source/Core/PluginManager.cpp
+87-87lldb/unittests/Core/PluginManagerTest.cpp
+79-78lldb/include/lldb/Core/PluginManager.h
+16-38lldb/source/Symbol/ObjectFile.cpp
+8-27lldb/source/Target/LanguageRuntime.cpp
+6-22lldb/source/Target/Platform.cpp
+321-41520 files not shown
+368-55126 files

LLVM/project 64b029bclang-tools-extra/clang-doc Serialize.cpp Serialize.h, clang-tools-extra/clang-doc/benchmarks ClangDocBenchmark.cpp

[clang-doc] Introduce Serializer class

Serialization has mostly been done with static functions, but soon we
will need to share state, like alocator references. To avoid blowing up
our parameter lists, we can just wrap the local functions within a
class.
DeltaFile
+106-110clang-tools-extra/clang-doc/Serialize.cpp
+141-39clang-tools-extra/clang-doc/Serialize.h
+2-1clang-tools-extra/clang-doc/benchmarks/ClangDocBenchmark.cpp
+2-1clang-tools-extra/clang-doc/Mapper.cpp
+2-1clang-tools-extra/unittests/clang-doc/SerializeTest.cpp
+253-1525 files

LLVM/project 5c7e42bclang-tools-extra/unittests/clang-doc BitcodeTest.cpp

clang-format
DeltaFile
+9-16clang-tools-extra/unittests/clang-doc/BitcodeTest.cpp
+9-161 files

LLVM/project f439695clang-tools-extra/clang-doc JSONGenerator.cpp

clang-format
DeltaFile
+1-2clang-tools-extra/clang-doc/JSONGenerator.cpp
+1-21 files

LLVM/project efca6beclang-tools-extra/clang-doc Representation.h

[clang-doc][NFC] Introduce Vector and Array abstractions

Introduce OwningVec and OwningArray aliases for vector types we want to
eventually update for arena allocations.
DeltaFile
+24-16clang-tools-extra/clang-doc/Representation.h
+24-161 files