LLVM/project 93bc18flld/MachO ConcatOutputSection.cpp ConcatOutputSection.h, lld/test/MachO arm64-thunk-stubs.s arm64-thunk-stubs-multi-text.s

[lld][macho] Fix thunks with multiple text sections (#199747)

When there are multiple `__text` sections, LLD might not generate thunks
to stubs sections when they are required, leading to relocation errors.
```
ld64.lld: error: a.o:(symbol _foo+0x0): relocation BRANCH26 is out of range: 134217744 is not in [-134217728, 134217727]; references _extern_sym
```

Create `TextOutputSection::estimateStubsEndVA()` to correctly estimate
the end VA of the last stubs section so we can tell when branches to
stub symbols will be in range.

Technically this could cause lld to generate more thunks in some cases.
If a binary requires thunks (the `__TEXT` segment is >128MiB) and has
multiple `__text` sections like `__text_cold` or `__lcxx_override`, then
all branches to stub symbols will require thunks. Without this change we
could get the relocation errors above. We might be able to workaround
the problem by placing the `__text` section last.

Fixes https://github.com/llvm/llvm-project/issues/195387.
DeltaFile
+75-0lld/test/MachO/arm64-thunk-stubs.s
+44-11lld/MachO/ConcatOutputSection.cpp
+50-0lld/test/MachO/arm64-thunk-stubs-multi-text.s
+0-18lld/test/MachO/arm64-thunks.s
+5-1lld/MachO/ConcatOutputSection.h
+174-305 files

LLVM/project 93c95d3clang/test/OffloadTools/clang-linker-wrapper linker-wrapper.c linker-wrapper-hip-no-rdc.c, clang/tools/clang-linker-wrapper ClangLinkerWrapper.cpp

[HIP] Fix `-flto` overriding `--no-lto` not that it is default (#202699)

Summary:
The previous changes to LTO made the flto flag passed by default which
overrode the hack we did to ervert to the old non-LTO pipline. This is a
temporary hack so I'm hacking it even further to fix it.
DeltaFile
+6-11clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
+7-7clang/test/OffloadTools/clang-linker-wrapper/linker-wrapper.c
+3-3clang/test/OffloadTools/clang-linker-wrapper/linker-wrapper-hip-no-rdc.c
+16-213 files

LLVM/project c1003f2clang/lib/Driver Driver.cpp, clang/test/Driver hip-phases.hip hip-rdc-device-only.hip

Revert "[Clang] Set default LTO mode for AMDGCN/SPIR-V targets to full (#201457)"

This reverts commit 859ee9d83ef227848a98c5948f887574f5e7420c.
DeltaFile
+103-92clang/test/Driver/hip-phases.hip
+96-21clang/lib/Driver/Driver.cpp
+20-20clang/test/Driver/hip-rdc-device-only.hip
+12-13clang/test/Driver/hip-binding.hip
+9-10clang/test/Driver/hip-spirv-backend-phases.c
+3-15clang/test/Driver/hip-device-compile.hip
+243-17131 files not shown
+328-27937 files

LLVM/project b7cdfe4.github/workflows subscriber.yml issue-subscriber.yml

workflows: Consolidate pr-subscriber and issue-subscriber (#200503)

This consolidates duplicate logic from the pr-subscriber and
issue-subscriber workflows into a single workflow.
DeltaFile
+74-0.github/workflows/subscriber.yml
+0-52.github/workflows/issue-subscriber.yml
+0-52.github/workflows/pr-subscriber.yml
+74-1043 files

LLVM/project 95bd483compiler-rt/lib/asan CMakeLists.txt

[asan] Make exceptions for asan_new_delete.cpp conditional (#202436)

Introduce the COMPILER_RT_ASAN_ENABLE_EXCEPTIONS CMake
option to control whether the ASan C++ runtime
(asan_new_delete.cpp) is compiled with exception
support.

This fixes build failures on platforms with noexcept
toolchains (like Fuchsia's noexcept variant) where
ASan was compiled with exceptions but linked against a
noexcept libc++abi, resulting in undefined symbol
errors for __cxa_begin_catch and __gxx_personality_v0.

The option defaults to ON to preserve the behavior of
#200719, but automatically defaults to OFF if
LIBCXX_ENABLE_EXCEPTIONS or LIBCXXABI_ENABLE_EXCEPTIONS
is set to OFF in the same runtimes build.
DeltaFile
+20-5compiler-rt/lib/asan/CMakeLists.txt
+20-51 files

LLVM/project 26c5508llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/X86 recalc-copyable-operand-deps-non-scheduled-node.ll

[SLP] Recompute copyable operand deps of bundled members in scheduleBlock

An instruction modeled as a copyable element in one node may be used directly
by another node registered only after its deps were last computed. The
deferred recomputation is consumed before that node joins the tree, so the
direct def-use edge is missed and the count stays too low, tripping the
unscheduled-deps assertion. Clear and recompute such bundled members against
the full tree in scheduleBlock.

Fixes #202463

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/202712
DeltaFile
+49-0llvm/test/Transforms/SLPVectorizer/X86/recalc-copyable-operand-deps-non-scheduled-node.ll
+14-0llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+63-02 files

OPNSense/tools 8562094config/26.7 make.conf

config: 15 changed GSSAPI base and bind is hardwired to flip-flop
DeltaFile
+2-0config/26.7/make.conf
+2-01 files

LLVM/project 5f864f9llvm/tools/llvm-exegesis/lib Assembler.h

[NFC][llvm-exegesis] Disable CFI-icall for JIT-executed function (#202472) (#202682)

Reland of #202472 reverted with #202571.

Here we are going to use LLVM_NO_SANITIZE.
DeltaFile
+3-1llvm/tools/llvm-exegesis/lib/Assembler.h
+3-11 files

FreeBSD/ports 95004b2sysutils/mdfried distinfo Makefile.crates

sysutils/mdfried: Update to 0.22.1

- Remove the DOCS option, because all documentation is now present
  within the program via the ":help" and ":help configuration" commands.

ChangeLog:      https://github.com/benjajaja/mdfried/blob/master/assets/docs/CHANGELOG.md
Reported by:    portscout!
DeltaFile
+291-35sysutils/mdfried/distinfo
+144-16sysutils/mdfried/Makefile.crates
+2-11sysutils/mdfried/Makefile
+437-623 files

FreeBSD/ports 44e1186devel/sem distinfo Makefile.crates

devel/sem: Update to 0.9.0
DeltaFile
+15-3devel/sem/distinfo
+6-0devel/sem/Makefile.crates
+3-2devel/sem/Makefile
+24-53 files

LLVM/project de42f4f.github/workflows release-documentation.yml release-tasks.yml, llvm/utils/release build-docs.sh

[docs] Release man pages (#201376)

This adds the possibility to generate man pages from the `llvm/utils/release/build-docs.sh` script. Furthermore the `release-documentation` github workflow was modified to build and upload the man pages.

This was done to prevent dependency problems when myst-parser will become a hard dependency to build the documentation in LLVM. See https://discourse.llvm.org/t/rfc-make-myst-markdown-the-llvm-docs-format-rip-rest/90840/26?u=kwk

Additionally the `build-docs.sh` script now determines the release from the source directory if no release was given. Otherwise the generated tarballs would be missing the release entirely. To make it clear that something was generated from any git directory, a short git revision will be attached to the release (e.g. `23.0.0-gc823de88d51f58`).

The script generates a total of 67 man pages for the 22.1.7 release (see below).

`lld` has their own man page hardcoded in [`lld/docs/ld.lld.1`](https://github.com/llvm/llvm-project/blob/main/lld/docs/ld.lld.1). It gets packaged manually because of a missing cmake target. To get all projects install their man pages in the same directory to package up, we have to run the install targets rather than just the build targets (e.g. `install-docs-clang-man` instead of just `docs-clang-man`).

Here's what's in the tarball for the `22.1.7` release when you run the script from this change:

```console
$ rm -rf llvm_man_pages-* docs-build llvm-project
$ ./llvm/utils/release/build-docs.sh  -no-sphinx  -no-doxygen -release 22.1.7
```


    [70 lines not shown]
DeltaFile
+59-4.github/workflows/release-documentation.yml
+47-7llvm/utils/release/build-docs.sh
+6-1.github/workflows/release-tasks.yml
+1-1.github/workflows/release-doxygen.yml
+113-134 files

FreeBSD/src 6952ad8sys/kern kern_resource.c

get/setpriority: Add capability mode checks

Reviewed by: oshogbo
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57345

(cherry picked from commit 72e34b3e3907d5fd63abf7b2246cae80641769b3)
DeltaFile
+16-0sys/kern/kern_resource.c
+16-01 files

LLVM/project f4ee842compiler-rt CMakeLists.txt

compiler-rt: Suppress -g error for gpu builds (#202230)
DeltaFile
+1-1compiler-rt/CMakeLists.txt
+1-11 files

FreeNAS/freenas b8cd924src/middlewared/middlewared/plugins/cloud_backup restic.py, src/middlewared/middlewared/pytest/unit/plugins test_cloud_backup_restic.py

NAS-141287 / 27.0.0-BETA.1 / Fix TrueCloud Backup hang on restic JSON error messages (by creatorcary) (#19098)

### Problem

`restic_check_progress()` crashed with `KeyError: 'error.message'`
whenever restic emitted an `error` message in its JSON output. restic
nests the text as `{"error": {"message": "..."}}` — the scripting docs
spell it `error.message`, but that is the path to a nested field, not a
flat key.

Two consequences:

- The real restic error was swallowed; the job/UI showed only
`'error.message'`, making failures undiagnosable.
- In the threaded reader, the `KeyError` silently killed the only
consumer of restic's stdout. With nobody draining the pipe, restic
blocked on a full pipe and the job hung in `RUNNING` at 0% indefinitely.

### Fix

    [22 lines not shown]
DeltaFile
+67-51src/middlewared/middlewared/plugins/cloud_backup/restic.py
+92-0src/middlewared/middlewared/pytest/unit/plugins/test_cloud_backup_restic.py
+159-512 files

XigmaNAS/svn 10618trunk/build readme_14.4.txt CHANGES, trunk/build/ports/devcpu-data-amd distinfo Makefile

- Upgrade microcode amd to v20251202.
- Upgrade microcode intel to v20260512.
DeltaFile
+106-26trunk/build/ports/devcpu-data-intel/files/ucode-split.c
+13-13trunk/build/ports/devcpu-data-amd/distinfo
+3-3trunk/build/ports/devcpu-data-amd/Makefile
+3-3trunk/build/ports/devcpu-data-intel/distinfo
+2-0trunk/build/readme_14.4.txt
+2-0trunk/build/CHANGES
+129-451 files not shown
+130-467 files

LLVM/project c0e8b29clang/lib/CIR/CodeGen CIRGenFunction.cpp

[CIR][NFC] Align emitLValue with classic codegen (#202448)

This reorganizes the `CIRGenFunction::emitLValue` function to align it
with `CodeGenFunction::EmitLValueHelper` in classic codegen. Previously,
the default handler for the switch statement reported an NYI diagnostic
for any l-value class that wasn't handled in the function. This change
adds case handlers for every class that is handled by classic codegen,
giving each their own NYI diagnostic.

The purpose of this is to more explicitly show what is missing and to
make it easier to port the classic codegen implementation to CIR.

The existing CIR handling is not changed, just the order.
DeltaFile
+138-51clang/lib/CIR/CodeGen/CIRGenFunction.cpp
+138-511 files

FreeNAS/freenas 03eab7csrc/middlewared/middlewared/plugins/cloud_backup restic.py, src/middlewared/middlewared/pytest/unit/plugins test_cloud_backup_restic.py

NAS-141287 / 26.0.0-RC.1 / Fix TrueCloud Backup hang on restic JSON error messages (#19092)

### Problem

`restic_check_progress()` crashed with `KeyError: 'error.message'`
whenever restic emitted an `error` message in its JSON output. restic
nests the text as `{"error": {"message": "..."}}` — the scripting docs
spell it `error.message`, but that is the path to a nested field, not a
flat key.

Two consequences:

- The real restic error was swallowed; the job/UI showed only
`'error.message'`, making failures undiagnosable.
- In the threaded reader, the `KeyError` silently killed the only
consumer of restic's stdout. With nobody draining the pipe, restic
blocked on a full pipe and the job hung in `RUNNING` at 0% indefinitely.

### Fix

    [16 lines not shown]
DeltaFile
+67-51src/middlewared/middlewared/plugins/cloud_backup/restic.py
+92-0src/middlewared/middlewared/pytest/unit/plugins/test_cloud_backup_restic.py
+159-512 files

FreeNAS/freenas 211c99bsrc/middlewared/middlewared/plugins/cloud_backup restic.py

clarify comment a little
DeltaFile
+1-1src/middlewared/middlewared/plugins/cloud_backup/restic.py
+1-11 files

LLVM/project 48a4b66clang/docs ReleaseNotes.rst, clang/lib/AST ExprClassification.cpp

[clang] Classify binary op value kinds use ClassifyExprValueKind when it's type-dependent (#202696)

The crash is from an internal inconsistency in Clang’s expression
classification.

Expr::ClassifyImpl computes a classification like CL_LValue or
CL_PRValue, then asserts that this agrees with the AST node’s own value
category:

- clang/lib/AST/ExprClassification.cpp:37
- CL_LValue must satisfy E->isLValue()
- CL_PRValue must satisfy E->isPRValue()

Fixes https://github.com/llvm/llvm-project/issues/202693.

Signed-off-by: yronglin <yronglin777 at gmail.com>
DeltaFile
+39-0clang/test/AST/dependent-assignment-classification.cpp
+5-4clang/lib/AST/ExprClassification.cpp
+2-0clang/docs/ReleaseNotes.rst
+46-43 files

FreeBSD/ports 887a173math/octave-forge-datatypes distinfo Makefile

math/octave-forge-datatypes: Update to 1.2.4.
DeltaFile
+3-3math/octave-forge-datatypes/distinfo
+1-2math/octave-forge-datatypes/Makefile
+4-52 files

FreeNAS/freenas 315a490src/middlewared/middlewared/plugins sysdataset.py, src/middlewared/middlewared/plugins/system_dataset utils.py mount.py

Address review
DeltaFile
+16-0src/middlewared/middlewared/plugins/system_dataset/utils.py
+8-1src/middlewared/middlewared/plugins/system_dataset/mount.py
+2-4src/middlewared/middlewared/plugins/sysdataset.py
+26-53 files

LLVM/project a147be8lldb/unittests/Expression DWARFExpressionTest.cpp

[lldb] Add missing period in DWARFExpressionTest (NFC) (#202706)
DeltaFile
+1-1lldb/unittests/Expression/DWARFExpressionTest.cpp
+1-11 files

LLVM/project 105ba05cross-project-tests/debuginfo-tests/dexter/dex/debugger/lldb LLDB.py, cross-project-tests/debuginfo-tests/dexter/dex/evaluation ExpectWriter.py

[Dexter] Add rewriting for aggregate variables

Following on from the previous patch, this patch allows Dexter to write
disaggregated expected values for aggregate variables. Dexter eagerly tries
to disaggregate whenever subvalues are available, but will fallback to the
root/parent value if all available subvalues are unavailable.
DeltaFile
+70-0cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/rewriting/Inputs/rewrite_aggregates_expected.cpp
+58-0cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/rewriting/Inputs/rewrite_list_aggregates_expected.cpp
+53-0cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/rewriting/rewrite_aggregates.cpp
+48-0cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/rewriting/rewrite_list_aggregates.cpp
+26-3cross-project-tests/debuginfo-tests/dexter/dex/evaluation/ExpectWriter.py
+1-0cross-project-tests/debuginfo-tests/dexter/dex/debugger/lldb/LLDB.py
+256-36 files

LLVM/project 94dc992cross-project-tests/debuginfo-tests/dexter/dex/evaluation ExpectWriter.py, cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/rewriting rewrite_expects.cpp rewrite_multiple_scripts.cpp

[Dexter] Add ability to rewrite scripts to fill-in unknown values

This patch adds a feature to Dexter that allows scripts to be passed to
Dexter with missing expected values (`null` values in YAML), which Dexter
will attempt to "fill-in" with expected values that match the debugger's
actual output. The result is written to a file with the same name as the
original test file, in the directory given by --results-directory if one
is present; all content outside of the Dexter script itself is preserved
exactly as-is.
DeltaFile
+201-0cross-project-tests/debuginfo-tests/dexter/dex/evaluation/ExpectWriter.py
+128-0cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/rewriting/Inputs/rewrite_expect_list_expected.cpp
+52-0cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/rewriting/rewrite_expects.cpp
+51-0cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/rewriting/Inputs/rewrite_expects_expected.cpp
+46-0cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/rewriting/Inputs/rewrite_multiple_scripts_expected.cpp
+46-0cross-project-tests/debuginfo-tests/dexter/feature_tests/scripts/rewriting/rewrite_multiple_scripts.cpp
+524-08 files not shown
+665-714 files

LLVM/project b2ee616clang/docs ReleaseNotes.rst, clang/lib/Lex Lexer.cpp

[clang][Lex] Don't parsing header name as a string literal (#201763)

Fixes https://github.com/llvm/llvm-project/issues/132643.

---------

Signed-off-by: yronglin <yronglin777 at gmail.com>
DeltaFile
+21-1clang/lib/Lex/Lexer.cpp
+6-0clang/test/CXX/lex/lex.header/p2.cpp
+1-0clang/docs/ReleaseNotes.rst
+28-13 files

FreeBSD/src c289291sys/kern tty.c

tty: Add sysctl knob to globally disable TIOCSTI

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57233
DeltaFile
+8-0sys/kern/tty.c
+8-01 files

OpenZFS/src d1c7c8ctests/unit test_zap.c

unit/zap: key case normalization tests

Testing that normalized lookups work correctly for the supported
normalization forms, and that conflicts are detected and reported
correctly.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18654
DeltaFile
+388-7tests/unit/test_zap.c
+388-71 files

OpenZFS/src 04e7ea3include/sys zap.h, module/zfs zap.c

zap: expose zap_remove_norm_by_dnode()

Just so the test suite can use it.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18654
DeltaFile
+1-1module/zfs/zap.c
+2-0include/sys/zap.h
+3-12 files

LLVM/project f318532lldb/packages/Python/lldbsuite/test decorators.py, lldb/test/API/commands/platform/connect TestPlatformConnect.py

[lldb][Windows] extend @skipIfWindows to lldb-server or in process (#202688)

Some tests fail when using `lldb-server.exe` and pass when using the in
process plugin and vice-versa.

This patch adds the `skipIfWindowsAndNoLLDBServer` and
`expectedFailureWindowsAndNoLLDBServer` decorators (and their opposites)
to only skip tests if they run on `lldb-server` or the in process
plugin.

This fixes 4 XPASS when running tests with `USE_LLDB_SERVER=1`.

rdar://179117754
DeltaFile
+44-0lldb/packages/Python/lldbsuite/test/decorators.py
+2-2lldb/test/API/commands/platform/connect/TestPlatformConnect.py
+2-2lldb/test/API/functionalities/scripted_frame_provider/circular_dependency/TestFrameProviderCircularDependency.py
+1-1lldb/test/API/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py
+1-1lldb/test/API/functionalities/breakpoint/breakpoint_locations/TestBreakpointLocations.py
+1-1lldb/test/API/functionalities/breakpoint/delayed_breakpoints/TestDelayedBreakpoint.py
+51-76 files

LLVM/project 5adc7ddopenmp/runtime/src kmp_ftn_entry.h, openmp/runtime/src/i18n en_US.txt

[OpenMP] Ignore teams ICV setters in restricted contexts (#194428)

This patch prevents `omp_set_num_teams()` and
`omp_set_teams_thread_limit()` from updating teams-related ICVs when
called from restricted runtime contexts.

The non-implicit parallel-region case follows the OpenMP 5.1
restriction. The active `teams`-region case is handled defensively
because these ICVs are device-scoped and updating them during an active
`teams` region can affect later teams execution.

The calls now warn and return without updating the ICVs. 

Fixes #194426.
DeltaFile
+71-0openmp/runtime/test/api/omp_nteams_api_restriction.c
+29-0openmp/runtime/src/kmp_ftn_entry.h
+2-0openmp/runtime/src/i18n/en_US.txt
+102-03 files