FreeBSD/src 4047536usr.bin/diff3 diff3.c

diff3: use pdwait instead of homemade one

MFC After:      3 days
DeltaFile
+19-37usr.bin/diff3/diff3.c
+19-371 files

LLVM/project 395858dllvm/lib/Target/SPIRV SPIRVEmitIntrinsics.cpp, llvm/test/CodeGen/SPIRV/extensions/SPV_KHR_float_controls2 exec_mode3.ll

Revert "[SPIRV] Emit intrinsics for globals only in function that references them (#178143 (#179268)

This reverts commit 1daef5927ff0e43b92d615380a8d60f213cc5e52.

From the ASAN buildbot:

```bash
FAIL: LLVM :: CodeGen/SPIRV/extensions/SPV_INTEL_function_pointers/fun-ptr-addrcast.ll (46596 of 94488)
******************** TEST 'LLVM :: CodeGen/SPIRV/extensions/SPV_INTEL_function_pointers/fun-ptr-addrcast.ll' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 5
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/CodeGen/SPIRV/extensions/SPV_INTEL_function_pointers/fun-ptr-addrcast.ll -o - --spirv-ext=+SPV_INTEL_function_pointers | /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/CodeGen/SPIRV/extensions/SPV_INTEL_function_pointers/fun-ptr-addrcast.ll
# executed command: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/CodeGen/SPIRV/extensions/SPV_INTEL_function_pointers/fun-ptr-addrcast.ll -o - --spirv-ext=+SPV_INTEL_function_pointers
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/test/CodeGen/SPIRV/extensions/SPV_INTEL_function_pointers/fun-ptr-addrcast.ll

    [9 lines not shown]
DeltaFile
+4-116llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
+38-48llvm/test/CodeGen/SPIRV/pointers/fun-with-aggregate-arg-in-const-init.ll
+30-46llvm/test/CodeGen/SPIRV/extensions/SPV_KHR_float_controls2/exec_mode3.ll
+15-15llvm/test/CodeGen/SPIRV/extensions/SPV_NV_shader_atomic_fp16_vector/atomicrmw_faddfsub_vec_float16.ll
+15-15llvm/test/CodeGen/SPIRV/extensions/SPV_NV_shader_atomic_fp16_vector/atomicrmw_fminfmax_vec_float16.ll
+102-2405 files

FreeNAS/freenas 6664c1edocs/source/middleware service.rst, src/middlewared/middlewared/plugins/update_ download.py trains.py

NAS-139358 / 26.0.0-BETA.1 / Type-safe update plugin (#18053)

In preparation for the oncoming update system changes, I made the update
plugin type-safe.
DeltaFile
+173-159src/middlewared/middlewared/plugins/update_/download.py
+272-0docs/source/middleware/service.rst
+146-111src/middlewared/middlewared/plugins/update_/trains.py
+116-128src/middlewared/middlewared/plugins/update_/update.py
+116-121src/middlewared/middlewared/plugins/update_/status.py
+125-109src/middlewared/middlewared/plugins/update_/install.py
+948-62837 files not shown
+1,812-1,05343 files

LLVM/project 39413afcompiler-rt/lib/builtins CMakeLists.txt, compiler-rt/lib/builtins/arm aeabi_uread8.S aeabi_uread4.S

[Compiler-rt] Implement AEABI Unaligned Read/Write Helpers in compiler-rt (#167913)

This patch adds implementations for the __aeabi_uread and __aeabi_uwrite
helper functions to compiler-rt.

Without these helpers, LLVM would need to inline byte wise sequences ,
which can increases code size, especially at -Os/-Oz. Using the helper
functions allows to retain correctness while avoiding the code-size
growth.

GCC-based toolchains already provide these AEABI helpers, so supporting
them in compiler-rt ensures parity and avoids accidental dependencies on
libgcc when LLVM begins emitting these calls.
DeltaFile
+100-0compiler-rt/lib/builtins/arm/aeabi_uread8.S
+86-0compiler-rt/test/builtins/Unit/arm/aeabi_unaligned_access_test.c
+63-0compiler-rt/lib/builtins/arm/aeabi_uread4.S
+51-0compiler-rt/lib/builtins/arm/aeabi_uwrite8.S
+35-0compiler-rt/lib/builtins/arm/aeabi_uwrite4.S
+4-0compiler-rt/lib/builtins/CMakeLists.txt
+339-06 files

LLVM/project 09a6842llvm/include/llvm/IR RuntimeLibcalls.td, llvm/lib/Target/ARM ARMISelLowering.cpp ARMISelLowering.h

[ARM] Lower unaligned loads/stores to aeabi functions. (#172672)

When targeting architectures that do not support unaligned memory
accesses or when explictly pass -mno-unaligned-access, it requires the
compiler to expand each unaligned load/store into an inline sequences.
For 32-bit operations this typically involves:

        1. 4× LDRB (or 2× LDRH),
        2. multiple shift/or instructions

These sequences are emitted at every unaligned access site, and
therefore contribute significant code size in workloads that touch
packed or misaligned structures.

When compiling with -Oz and in combination with -mno-unaligned-access,
this patch lowers unaligned 32 bit and 64 bit loads and stores to below
AEABI heper calls:
```
         __aeabi_uread4

    [21 lines not shown]
DeltaFile
+728-0llvm/test/CodeGen/ARM/unaligned_load_store_aeabi.ll
+139-7llvm/lib/Target/ARM/ARMISelLowering.cpp
+59-63llvm/test/CodeGen/ARM/i64_volatile_load_store.ll
+21-0llvm/include/llvm/IR/RuntimeLibcalls.td
+5-1llvm/lib/Target/ARM/ARMISelLowering.h
+952-715 files

OPNSense/core d260467src/opnsense/mvc/app/views/OPNsense/Firewall filter_rule.volt

Firewall: Rules [new]: Add link to states and put it first in list (#9707)

DeltaFile
+8-3src/opnsense/mvc/app/views/OPNsense/Firewall/filter_rule.volt
+8-31 files

LLVM/project 84ba547clang Maintainers.rst

Move John Ericson to the inactive maintainers list (#179264)

While reaching out to folks for a maintainers list refresh, John asked
to step down due to other commitments. Thank you for all your help!
DeltaFile
+1-3clang/Maintainers.rst
+1-31 files

LLVM/project 5b80848clang/lib/AST/ByteCode InterpBuiltin.cpp, clang/test/SemaCXX alloc-token.cpp

[clang][bytecode] Fix crash on __builtin_infer_alloc_token with struct argument (#178936)

## Summary
- Fix crash when passing non primitive types (structs) to
`__builtin_infer_alloc_token`
- The bytecode interpreter's discard loop dereferenced an empty
`OptPrimType` for non primitive arguments

## Test plan
- Added regression test in `clang/test/SemaCXX/alloc-token.cpp`
- Existing tests continue to pass

Fixes #178892
DeltaFile
+5-0clang/test/SemaCXX/alloc-token.cpp
+1-1clang/lib/AST/ByteCode/InterpBuiltin.cpp
+6-12 files

FreeBSD/src c479817usr.bin/diff pr.h

diff: remove useless include as kevent is not used anymore

MFC After:      3 days
DeltaFile
+0-2usr.bin/diff/pr.h
+0-21 files

FreeBSD/src 4d73b07usr.bin/diff diffreg_new.c diff.c

diff: fix support for -l with new diff algorithm

MFC After: 3 days
Reviewed by:    des
Differential Revision:  https://reviews.freebsd.org/D55052
DeltaFile
+7-0usr.bin/diff/diffreg_new.c
+1-0usr.bin/diff/diff.c
+1-0usr.bin/diff/diff.h
+9-03 files

FreeBSD/src 0ec58e7usr.bin/diff pr.c pr.h

diff: use pdwait(2) instead of homemade one

MFC After:      3 days
Reviewed by:    des
Differential Revision:  https://reviews.freebsd.org/D55053
DeltaFile
+6-13usr.bin/diff/pr.c
+1-2usr.bin/diff/pr.h
+7-152 files

LLVM/project fa675aallvm/test/Transforms/LoopUnroll unroll-multi-exit-loop-heuristics.ll

[NFC][LoopUnroll] Add `-unroll-runtime-other-exit-predictable=false` to `unroll-multi-exit-loop-heuristics.ll` (#179198)

Adds `-unroll-runtime-other-exit-predictable=false` option to
`unroll-multi-exit-loop-heuristics.ll` test for stability reasons.

This is a followup to a discussion in #164799 and a similar patch
https://reviews.llvm.org/D98098. Since this option is false by default,
this is an NFC.
DeltaFile
+2-2llvm/test/Transforms/LoopUnroll/unroll-multi-exit-loop-heuristics.ll
+2-21 files

HardenedBSD/src cc7957dlib/libc/gen posix_spawn.c, share/man/man5 src.conf.5

HBSD: Resolve merge conflicts

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+1-13share/man/man5/src.conf.5
+0-9sys/kern/imgact_elf.c
+1-5lib/libc/gen/posix_spawn.c
+0-5share/mk/src.libnames.mk
+0-5share/mk/src.opts.mk
+0-3sys/kern/kern_fork.c
+2-406 files

HardenedBSD/ports a8cc4bfhardenedbsd/portzap pkg-plist Makefile, hardenedbsd/sourcezap pkg-plist Makefile

Merge branch 'hardenedbsd/zapupdate' into 'hardenedbsd/main'

HBSD: {source,port}zap v2.1.1

See merge request hardenedbsd/ports!235
DeltaFile
+8-10hardenedbsd/sourcezap/pkg-plist
+8-10hardenedbsd/portzap/pkg-plist
+5-5hardenedbsd/portzap/Makefile
+5-5hardenedbsd/sourcezap/Makefile
+3-3hardenedbsd/sourcezap/distinfo
+3-3hardenedbsd/portzap/distinfo
+32-366 files

LLVM/project dc8d35allvm/utils/TableGen CompressInstEmitter.cpp

[NFC][TableGen] Adopt `IfDefEmitter` in `CompressInstEmitter` (#178998)

DeltaFile
+14-22llvm/utils/TableGen/CompressInstEmitter.cpp
+14-221 files

FreeNAS/freenas 440f52csrc/middlewared/middlewared/plugins dlm.py, src/middlewared/middlewared/plugins/failover_ event.py

NAS-139527 / 25.10.2 / SCST suspend failure on ALUA failover (by bmeagherix) (#18139)

Because of a recent change wrt `recovery_tmo` on the internal HA
targets, inflight IOs thru the STANDBY can interfere with SCST's ability
to be suspended on the STANDBY just as it is being promoted to ACTIVE.

Explicitly logging out these targets will prevent the issue. This is
performed by `dlm.reset_active` to minimize overhead.

Other overhead is also eliminated:
- no longer clear ACTIVE node `cluster_mode`
- decouple ACTIVE reset from `activate_extemts`. (Couple
`standby_after_start` instead.)

Also improve `test__alua_config` to use sync always for the dataset
holding the file underlying a target (and created shortly before a
reboot).

----

    [10 lines not shown]
DeltaFile
+33-69src/middlewared/middlewared/plugins/iscsi_/alua.py
+40-1src/middlewared/middlewared/plugins/dlm.py
+14-5src/middlewared/middlewared/plugins/iscsi_/target_to_extent.py
+13-5src/middlewared/middlewared/plugins/failover_/event.py
+14-3tests/sharing_protocols/iscsi/test_261_iscsi_cmd.py
+16-0src/middlewared/middlewared/plugins/iscsi_/targets.py
+130-831 files not shown
+143-837 files

LLVM/project e8cbfbdllvm/lib/Target/SPIRV SPIRVEmitIntrinsics.cpp, llvm/test/CodeGen/SPIRV/extensions/SPV_KHR_float_controls2 exec_mode3.ll

Revert "[SPIRV] Emit intrinsics for globals only in function that references them (#178143)"

This reverts commit 1daef5927ff0e43b92d615380a8d60f213cc5e52.
DeltaFile
+4-116llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
+38-48llvm/test/CodeGen/SPIRV/pointers/fun-with-aggregate-arg-in-const-init.ll
+30-46llvm/test/CodeGen/SPIRV/extensions/SPV_KHR_float_controls2/exec_mode3.ll
+15-15llvm/test/CodeGen/SPIRV/extensions/SPV_NV_shader_atomic_fp16_vector/atomicrmw_fminfmax_vec_float16.ll
+15-15llvm/test/CodeGen/SPIRV/extensions/SPV_NV_shader_atomic_fp16_vector/atomicrmw_faddfsub_vec_float16.ll
+102-2405 files

pfSense/pfsense 2e09427tools/conf/pfPorts make.conf

Chase bind GSSAPI defaults change
DeltaFile
+1-1tools/conf/pfPorts/make.conf
+1-11 files

HardenedBSD/ports 8e47b7bhardenedbsd/portzap pkg-plist Makefile

HBSD: portzap v2.1.1

- Drops doas(1) in favor of mdo(1)
- Introduces rsync(1) for faster and more reliable installs
DeltaFile
+8-10hardenedbsd/portzap/pkg-plist
+5-5hardenedbsd/portzap/Makefile
+3-3hardenedbsd/portzap/distinfo
+16-183 files

OPNSense/core 9d000d7src/opnsense/mvc/app/views/OPNsense/Firewall filter_rule.volt

Firewall: Rules [new]: Remove schedule formatter from group and automatic rule rows
DeltaFile
+1-1src/opnsense/mvc/app/views/OPNsense/Firewall/filter_rule.volt
+1-11 files

HardenedBSD/ports 2df1892hardenedbsd/sourcezap pkg-plist Makefile

HBSD: sourcezap v2.1.1

- Drops doas(1) in favor of mdo(1)
- Introduces rsync(1) for faster and more reliable installs
DeltaFile
+8-10hardenedbsd/sourcezap/pkg-plist
+5-5hardenedbsd/sourcezap/Makefile
+3-3hardenedbsd/sourcezap/distinfo
+16-183 files

LLVM/project a81625cflang/lib/Semantics resolve-names.cpp

Remove leftover unrelated change
DeltaFile
+4-0flang/lib/Semantics/resolve-names.cpp
+4-01 files

LLVM/project 8987ab4llvm/test/CodeGen/AMDGPU strict_fsub.f16.ll strict_ldexp.f32.ll, llvm/test/CodeGen/PowerPC fp-strict.ll

[DAG] Change default expansion of strictfp vector operations

The previous default implementation unrolled strictfp vector operation,
producing its scalar version. This behavior can result in low
performance in some cases.  A better behavior is to convert strictfp
nodes into default-mode operations. This method has already been used to
support strictfp nodes on targets with limited support of strictfp
operations.

Many targets already implement lowering of strictfp and default-mode
nodes identically. Small number of deviations from this rule is fixed in
this change. Identical treatment of strictfp and default mode nodes is
natural because both represent the same operation in the resulting code,
the only difference is additional restrictions that compiler should
apply when it handles strictfp nodes.

Unrolling vector operations can also violate user expectations. In
strictfp mode, vector operations cannot be created by auto-vectorization
because of the side effect of constrained functions, so the vector

    [3 lines not shown]
DeltaFile
+169-521llvm/test/CodeGen/X86/vector-constrained-fp-intrinsics.ll
+99-331llvm/test/CodeGen/AMDGPU/strict_fsub.f16.ll
+156-156llvm/test/CodeGen/X86/avx512fp16-frem.ll
+69-144llvm/test/CodeGen/AMDGPU/strict_ldexp.f32.ll
+9-182llvm/test/CodeGen/PowerPC/fp-strict.ll
+9-168llvm/test/CodeGen/SystemZ/vector-constrained-fp-intrinsics.ll
+511-1,50211 files not shown
+695-2,02817 files

LLVM/project 20dc8eallvm/lib/Target/AArch64 AArch64SystemOperands.td, llvm/lib/Target/AArch64/AsmParser AArch64AsmParser.cpp

[AArch64][llvm] Remove `+xs` gating for `tlbip *nxs` instructions

A recent spec update has removed FEAT_XS gating for `tlbip *nxs`
instructions. It remains gated on FEAT_XS for `tlbi *nxs` instructions.
DeltaFile
+6-16llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+8-9llvm/test/MC/AArch64/armv9a-sysp.s
+0-8llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
+2-2llvm/test/MC/AArch64/tlbip-tlbid-or-d128.s
+1-2llvm/lib/Target/AArch64/AArch64SystemOperands.td
+17-375 files

FreeNAS/freenas ec81197src/middlewared/middlewared/plugins dlm.py, src/middlewared/middlewared/plugins/failover_ event.py

NAS-139527 / 26.0.0-BETA.1 / SCST suspend failure on ALUA failover (#18123)

Because of a recent change wrt recovery_tmo on the internal HA
targets, inflight IOs thru the STANDBY can interfere with SCST's ability
to be suspended on the STANDBY just as it is being promoted to ACTIVE.

Explicitly logging out these targets will prevent the issue. This is
performed by dlm.reset_active to minimize overhead.

Other overhead is also eliminated:
- no longer clear ACTIVE node cluster_mode
- decouple ACTIVE reset from activate_extents. (Couple
standby_after_start instead.)

Also improve test__alua_config to use sync always for the dataset
holding the file underlying a target (and created shortly before a
reboot).
DeltaFile
+33-69src/middlewared/middlewared/plugins/iscsi_/alua.py
+40-1src/middlewared/middlewared/plugins/dlm.py
+14-5src/middlewared/middlewared/plugins/iscsi_/target_to_extent.py
+13-5src/middlewared/middlewared/plugins/failover_/event.py
+14-3tests/sharing_protocols/iscsi/test_261_iscsi_cmd.py
+16-0src/middlewared/middlewared/plugins/iscsi_/targets.py
+130-831 files not shown
+143-837 files

LLVM/project 17392afllvm/lib/Transforms/Coroutines CoroCleanup.cpp, llvm/test/Transforms/Coroutines coro-cleanup-noop-elide.ll coro-cleanup-noop-erase.ll

Revert "[CoroCleanup] Noop coroutine elision for load-and-call pattern (#179154)"

This reverts commit 195a6d0a05a743b8328faa8c7b20abb792bd8b30.
DeltaFile
+24-64llvm/lib/Transforms/Coroutines/CoroCleanup.cpp
+0-51llvm/test/Transforms/Coroutines/coro-cleanup-noop-elide.ll
+24-0llvm/test/Transforms/Coroutines/coro-cleanup-noop-erase.ll
+48-1153 files

FreeBSD/src 5074d5clib/libc/gen directory.3 dirfd.c

libc: Improve POSIX conformance of dirfd()

POSIX states that dirfd() should set errno to EINVAL and return -1 if
dirp does not refer to a valid directory stream.  Our interpretation is
that this applies if dirp is null or the file descriptor associated
with it is negative.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55025
DeltaFile
+13-1lib/libc/gen/directory.3
+5-0lib/libc/gen/dirfd.c
+18-12 files

FreeBSD/src 387ae63lib/libc/gen directory.3 telldir.c

libc: Clean up *dir() code

Fix style nits (mostly whitespace issues) and clean up the manual page.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55024
DeltaFile
+40-38lib/libc/gen/directory.3
+2-2lib/libc/gen/telldir.c
+0-3lib/libc/gen/dirfd.c
+0-2lib/libc/gen/scandir.c
+0-1lib/libc/gen/opendir2.c
+0-1lib/libc/gen/rewinddir.c
+42-473 files not shown
+43-499 files

OPNSense/core 5f4def2src/opnsense/mvc/app/views/OPNsense/Firewall filter_rule.volt

Firewall: Rules [new]: Add link to states and put it first in list
DeltaFile
+8-3src/opnsense/mvc/app/views/OPNsense/Firewall/filter_rule.volt
+8-31 files

FreeNAS/freenas bc57f5esrc/middlewared/middlewared/api/base decorator.py

Address review
DeltaFile
+2-1src/middlewared/middlewared/api/base/decorator.py
+2-11 files