LLVM/project 84b931cclang-tools-extra/clang-doc JSONGenerator.cpp, clang-tools-extra/test/clang-doc/Inputs invalid-utf8-comment.cpp

Fix clang-doc crash when comment contains invalid UTF-8 bytes (#210886)

When a source file comment contains non-UTF-8 bytes (e.g., byte 0x97),
clang-doc's JSONGenerator would crash with an assertion failure:

  Assertion `false && "Invalid UTF-8 in value used as JSON"' failed.

This happens because json::Value(StringRef) asserts on invalid UTF-8
input in debug builds. While the release-build path calls fixUTF8()
automatically, the assertion crash affects developers and fuzzer runs.

Fix by following the same pattern used elsewhere in LLVM (lldb, clangd):
check isUTF8() before constructing a json::Value, and call fixUTF8() to
sanitize the string if invalid bytes are detected. This avoids an
unnecessary copy for the common case of valid UTF-8.

The fix covers all paths in serializeComment() where user-written text
from source comments enters JSON objects:
  - CK_TextComment (I.Text)

    [15 lines not shown]
DeltaFile
+46-0clang-tools-extra/test/clang-doc/json/invalid-utf8-comment.cpp
+10-4clang-tools-extra/clang-doc/JSONGenerator.cpp
+2-0clang-tools-extra/test/clang-doc/Inputs/invalid-utf8-comment.cpp
+58-43 files

LLVM/project 8e34b2clibunwind/include/mach-o compact_unwind_encoding.h, libunwind/src UnwindCursor.hpp Registers.hpp

[libunwind][arm64e] Mach-O Support unwinding PAuth_LR frames (#202772)

Under PAuth_LR, compact unwind entries marked UNWIND_ARM64_MODE_FRAME_PAUTH_LR are signed with the PC of the pacibsppc at the start of the range. The compiler may emit those entries with UNWIND_IS_NOT_FUNCTION_START when the pacibsppc is not the first instruction in the function; the unwinder must scan backwards past such entries to find the actual function start (and its LSDA pointer).

When unwinding a PAuth_LR frame, authenticate and re-sign using setIPPAuthLR(), which calls __builtin_ptrauth_auth_with_pc_and_resign when available, falling back to inline asm (autib171615 + pacib) for compilers that lack the builtin.

To reduce the size of Compact Unwind entries for shrinkwrapped frames, new offset bits encode the distance in multiples of 4 bytes from the range start to the pacibsppc. The compiler emits paired FRAMELESS/FRAMELESS+PAUTH_LR entries that the linker merges into a single FRAME_PAUTH_LR | (offset/4) << 12 encoding.

rdar://161907302&169746432&171118419
DeltaFile
+79-28libunwind/src/UnwindCursor.hpp
+31-10libunwind/src/Registers.hpp
+25-13libunwind/include/mach-o/compact_unwind_encoding.h
+18-5libunwind/src/DwarfInstructions.hpp
+17-2libunwind/src/CompactUnwinder.hpp
+170-585 files

LLVM/project a96af04clang/test/SemaHIP builtins-amdgcn-gfx1250-cooperative-atomics-templated.hip amdgpu-builtin-in-lambda-with-unsupported-attribute.hip

clang/AMDGPU: Migrate cc1 tests to subarch triples (8)

Rewrite SemaHIP cc1 test RUN lines to the new subarch triple form,
dropping the redundant -target-cpu.

Co-authored-by: Claude (Opus 4.8) <noreply at anthropic.com>
DeltaFile
+2-2clang/test/SemaHIP/builtins-amdgcn-gfx1250-cooperative-atomics-templated.hip
+2-2clang/test/SemaHIP/amdgpu-builtin-in-lambda-with-unsupported-attribute.hip
+2-2clang/test/SemaHIP/amdgpu-builtin-in-lambda.hip
+2-2clang/test/SemaHIP/amdgpu-feature-builtins-return-type-deduction.hip
+1-1clang/test/SemaHIP/amdgpu-global-load-lds-template.hip
+1-1clang/test/SemaHIP/builtins-amdgcn-buffer-format.hip
+10-1015 files not shown
+25-2521 files

LLVM/project a5ee360clang/test/CodeGenCXX amdgpu-float16.cpp sret_cast_with_nonzero_alloca_as.cpp, clang/test/Misc amdgcn.languageOptsOpenCL.cl

clang/AMDGPU: Migrate cc1 tests to subarch triples (7)

Rewrite the remaining small test directories (CodeGenCXX, Misc, Sema,
SemaCUDA, SemaCXX) cc1 RUN lines to the new subarch triple form, dropping
the redundant -target-cpu.

Co-authored-by: Claude (Opus 4.8) <noreply at anthropic.com>
DeltaFile
+4-4clang/test/CodeGenCXX/amdgpu-float16.cpp
+2-2clang/test/SemaCUDA/openmp-target.cu
+2-2clang/test/Sema/sizeof-struct-non-zero-as-member.cl
+1-1clang/test/SemaCUDA/builtins-unsafe-atomics-gfx90a.cu
+1-1clang/test/CodeGenCXX/sret_cast_with_nonzero_alloca_as.cpp
+1-1clang/test/Misc/amdgcn.languageOptsOpenCL.cl
+11-115 files not shown
+16-1611 files

LLVM/project 4a0e561clang/test/CIR/CodeGenHIP builtins-amdgcn-vi-f16.hip attr-target-amdgpu.hip

clang/AMDGPU: Migrate cc1 tests to subarch triples (6)

Rewrite CIR/CodeGenHIP cc1 test RUN lines to the new subarch triple form,
dropping the redundant -target-cpu, and regenerate autogenerated CHECK
lines.

Co-authored-by: Claude (Opus 4.8) <noreply at anthropic.com>
DeltaFile
+24-24clang/test/CIR/CodeGenHIP/builtins-amdgcn-vi-f16.hip
+23-22clang/test/CIR/CodeGenHIP/attr-target-amdgpu.hip
+15-14clang/test/CIR/CodeGenHIP/target-features.hip
+6-6clang/test/CIR/CodeGenHIP/builtins-amdgcn-logb-scalbn.hip
+6-6clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip
+6-6clang/test/CIR/CodeGenHIP/amdgcn-buffer-rsrc-type.hip
+80-786 files not shown
+106-10412 files

LLVM/project 8ba8c16compiler-rt/lib/tsan/rtl tsan_rtl_ppc64.S

[tsan][ppc64] Fix copy-paste bug in __sigsetjmp OPD TOC loading (#210589)

In `__sigsetjmp`'s big-endian OPD path, the TOC was loaded from
`_setjmp`'s OPD entry instead of `__sigsetjmp`'s own entry, due to a
copy-paste error.

```diff
-        addis   r2,r2,_setjmp-1b at ha
-        addi    r2,r2,_setjmp-1b at l
+        addis   r2,r2,__sigsetjmp-1b at ha
+        addi    r2,r2,__sigsetjmp-1b at l
```

This caused an incorrect TOC pointer to be loaded on big-endian PPC64
when `__sigsetjmp`/sigsetjmp was intercepted by TSan. The corresponding
`_setjmp` path (which uses label `0b`) correctly references its own
symbol for the OPD lookup.

Co-authored-by: pmr <prabhas at pmrs-MacBook.local>
DeltaFile
+2-2compiler-rt/lib/tsan/rtl/tsan_rtl_ppc64.S
+2-21 files

LLVM/project 03efec4lldb/include/lldb/Host HostInfoBase.h, lldb/include/lldb/Utility FileSpec.h

Revert "[lldb] Remove ConstString from FileSpec (#211394)"

This reverts commit 8231fda982ba419bc8ac05a45ec752e00218db8b.
DeltaFile
+28-30lldb/source/Utility/FileSpec.cpp
+4-6lldb/include/lldb/Utility/FileSpec.h
+2-2lldb/source/Target/Statistics.cpp
+0-1lldb/source/API/SBCommunication.cpp
+0-1lldb/include/lldb/Host/HostInfoBase.h
+0-1lldb/source/API/SBBroadcaster.cpp
+34-419 files not shown
+34-5015 files

FreeBSD/src b86e364tools/tools/git git-mfc

git-mfc: Improve handling of remotes

If we can't figure out which remote to use, print a useful error instead
of assuming that "freebsd" is the right remote to use.
DeltaFile
+5-5tools/tools/git/git-mfc
+5-51 files

FreeBSD/src 7392dc9tools/tools/git git-mfc

git-mfc: Let the upstream for PRERELEASE branches be main

Such branches are in code slush but are the same as stable branches for
the purpose of MFCs.
DeltaFile
+1-1tools/tools/git/git-mfc
+1-11 files

FreeBSD/src 4c1c2b9tools/tools/git git-mfc

git-mfc: Slightly relax the regex used to search for reverts

Prompted by commit 9dfaf1cb37f8ac89cf in FreeBSD src.

Reported by:    des
DeltaFile
+1-1tools/tools/git/git-mfc
+1-11 files

LLVM/project 2921002libc/src/__support/GPU allocator.cpp

[libc] Small correctness tweaks to GPU allocator (#211610)

Summary:
Small bugs, like more strict C++ lifetime ordering for the header and
fixing a bug in alignment sizing.
DeltaFile
+29-20libc/src/__support/GPU/allocator.cpp
+29-201 files

LLVM/project 8c6ecefclang/lib/AST Decl.cpp, clang/lib/Sema SemaDecl.cpp

[Sema] Skip expansion statements when determing local extern context (#210512)

This bug showed up as a failed assertion that was asserting that if
not in a function or method context we should be in the global/file
context.

The root cause is that when determining the linkage context for a
decl we were failing to account for the existence of expansion
contexts. Ignoring the assertion failure, the functional effect of
this is that we would fail to detect incorrect local extern
declarations inside expansion contexts. The fix here is to make
sure that we use `getEnclosingNonExpansionStatementContext()` to
find the true DeclContext for the current scope.

The initial report only identified local extern function declarations
but the same bug occurred with extern var decls, but the path did
not lead to an assertion firing, just incorrect behaviour.

Thanks to Sirraide for explaining why this was going wrong, and

    [3 lines not shown]
DeltaFile
+73-0clang/test/SemaCXX/expansion-statements-local-extern-decls.cpp
+3-1clang/lib/AST/Decl.cpp
+1-1clang/lib/Sema/SemaDecl.cpp
+77-23 files

FreeBSD/ports 9bee9d8mail/thunderbird-esr distinfo Makefile

mail/thunderbird-esr: update to 153.0.1

Release Notes:
  https://www.thunderbird.net/en-US/thunderbird/153.0.1esr/releasenotes/

(cherry picked from commit a74d5e8920fc318a0bb110d5d904383c493f515e)
DeltaFile
+3-3mail/thunderbird-esr/distinfo
+2-3mail/thunderbird-esr/Makefile
+5-62 files

FreeBSD/ports a74d5e8mail/thunderbird-esr distinfo Makefile

mail/thunderbird-esr: update to 153.0.1

Release Notes:
  https://www.thunderbird.net/en-US/thunderbird/153.0.1esr/releasenotes/
DeltaFile
+3-3mail/thunderbird-esr/distinfo
+2-3mail/thunderbird-esr/Makefile
+5-62 files

LLVM/project 83a944aclang/lib/AST Decl.cpp, clang/lib/Sema SemaDecl.cpp

[Sema] Skip expansion statements when determing local extern context (#210512)

This bug showed up as a failed assertion that was asserting that if
not in a function or method context we should be in the global/file
context.

The root cause is that when determining the linkage context for a
decl we were failing to account for the existence of expansion
contexts. Ignoring the assertion failure, the functional effect of
this is that we would fail to detect incorrect local extern
declarations inside expansion contexts. The fix here is to make
sure that we use `getEnclosingNonExpansionStatementContext()` to
find the true DeclContext for the current scope.

The initial report only identified local extern function declarations
but the same bug occurred with extern var decls, but the path did
not lead to an assertion firing, just incorrect behaviour.

Thanks to Sirraide for explaining why this was going wrong, and

    [6 lines not shown]
DeltaFile
+75-0clang/test/SemaCXX/expansion-statements-local-extern-decls.cpp
+4-34clang/test/SemaCXX/cxx0x-initializer-stdinitializerlist.cpp
+35-0clang/test/SemaCXX/Inputs/initializer-list.h
+3-1clang/lib/AST/Decl.cpp
+1-1clang/lib/Sema/SemaDecl.cpp
+118-365 files

FreeBSD/ports 7c5923acad/freecad distinfo pkg-plist

cad/freecad: update to 1.1.2

Announcement: https://blog.freecad.org/2026/07/23/freecad-1-1-2-released/
DeltaFile
+3-3cad/freecad/distinfo
+4-0cad/freecad/pkg-plist
+1-2cad/freecad/Makefile
+8-53 files

LLVM/project c20b302llvm/lib/Target/AArch64 AArch64InstrInfo.cpp SVEInstrFormats.td, llvm/lib/Target/AArch64/MCTargetDesc AArch64MCTargetDesc.h

[AArch64] Add a OPERAND_IMM_UINT4p1 operand type (#211925)
DeltaFile
+6-0llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+6-0llvm/test/CodeGen/AArch64/verify-imm.mir
+4-0llvm/lib/Target/AArch64/SVEInstrFormats.td
+3-0llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
+1-0llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h
+20-05 files

LLVM/project b545f9flibc/include/llvm-libc-macros limits-macros.h endian-macros.h, libc/include/llvm-libc-macros/linux sys-stat-macros.h unistd-macros.h

[libc] Add missing standard and Linux header macros (#211862)

Add missing header macro constants:

* endian-macros.h: __BYTE_ORDER, __LITTLE_ENDIAN, and __BIG_ENDIAN
* sys-stat-macros.h: S_IREAD, S_IWRITE, S_IEXEC, and ACCESSPERMS
* limits-macros.h: _POSIX_HOST_NAME_MAX and HOST_NAME_MAX
* unistd-macros.h: TEMP_FAILURE_RETRY

POSIX.1-2017 specifies _POSIX_HOST_NAME_MAX as 255. The Linux
gethostname(2) man page specifies HOST_NAME_MAX as 64. The
double-underscore byte order macros and TEMP_FAILURE_RETRY macro follow
the Linux and GNU C library conventions.

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+14-1libc/include/llvm-libc-macros/limits-macros.h
+12-1libc/include/llvm-libc-macros/linux/sys-stat-macros.h
+10-1libc/include/llvm-libc-macros/endian-macros.h
+11-0libc/include/llvm-libc-macros/linux/unistd-macros.h
+47-34 files

LLVM/project 9a46117llvm/lib/Target/AMDGPU AMDGPU.td GCNSubtarget.h, llvm/test/MC/AMDGPU gfx13_asm_vds.s gfx13_asm_vds_err.s

[AMDGPU][GFX13] Remove support for LDS atomic add f64

This are not supported by gfx13.

Fixes ROCM-28488.
DeltaFile
+0-39llvm/test/MC/AMDGPU/gfx13_asm_vds.s
+8-5llvm/lib/Target/AMDGPU/AMDGPU.td
+8-0llvm/test/MC/AMDGPU/gfx13_asm_vds_err.s
+0-5llvm/lib/Target/AMDGPU/GCNSubtarget.h
+16-494 files

LLVM/project 39df67dlibc/include/llvm-libc-types caddr_t.h id_t.h

[libc] Add missing sys/types.h integer and BSD/System V type definitions (#211861)

Add missing type definitions to llvm-libc-types and sys/types.yaml:

* POSIX standard types: id_t, useconds_t
* BSD and System V compatibility typedefs: caddr_t, u_int, u_int8_t,
u_int16_t, u_long, u_short, ulong, ushort
* Large File Support (LFS) and Linux kernel internal types: ino64_t,
off64_t, __off_t, __off64_t, __uint64_t

POSIX.1-2017 defines id_t and useconds_t in sys/types.h. The BSD and
System V standards specify the legacy unsigned integer shorthand types,
and Linux kernel/glibc interfaces use the double-underscore prefix
offset and integer types.

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+19-0libc/include/llvm-libc-types/caddr_t.h
+19-0libc/include/llvm-libc-types/id_t.h
+19-0libc/include/llvm-libc-types/ino64_t.h
+19-0libc/include/llvm-libc-types/u_int.h
+19-0libc/include/llvm-libc-types/u_int16_t.h
+19-0libc/include/llvm-libc-types/u_int8_t.h
+114-011 files not shown
+296-217 files

FreeBSD/ports 148894dgames/veloren-weekly distinfo Makefile.crates, games/veloren-weekly/files patch-gilrs patch-cpal

games/veloren-weekly: update to s20260721

Changes:        https://gitlab.com/veloren/veloren/-/compare/ad45ea3a91...345e457894
(cherry picked from commit cb2143d2e354a282ea007391616c3faff9e0fc32)
DeltaFile
+109-24games/veloren-weekly/files/patch-gilrs
+58-0games/veloren-weekly/files/patch-cpal
+23-33games/veloren-weekly/distinfo
+10-15games/veloren-weekly/Makefile.crates
+2-2games/veloren-weekly/Makefile
+202-745 files

FreeBSD/ports 50ad4e6x11/xwayland-satellite distinfo Makefile

x11/xwayland-satellite: update to 0.8.2

Changes:        https://github.com/Supreeeme/xwayland-satellite/releases/tag/v0.8.2
Reported by:    GitHub (watch releases)

(cherry picked from commit 8b5208b105621072fce858a1c500777f755aa81d)
DeltaFile
+3-3x11/xwayland-satellite/distinfo
+1-2x11/xwayland-satellite/Makefile
+4-52 files

FreeBSD/ports 0f2784bwww/gallery-dl distinfo Makefile

www/gallery-dl: update to 1.32.7

Changes:        https://github.com/mikf/gallery-dl/releases/tag/v1.32.6
Changes:        https://github.com/mikf/gallery-dl/releases/tag/v1.32.7
Reported by:    GitHub (watch releases)

(cherry picked from commit cf158f184f66125324bb001ffe322feea7c8dcde)
DeltaFile
+3-3www/gallery-dl/distinfo
+1-1www/gallery-dl/Makefile
+4-42 files

FreeBSD/ports 07b6f56benchmarks/clpeak distinfo Makefile

benchmarks/clpeak: update to 2.0.18

Changes:        https://github.com/krrishnarraj/clpeak/releases/tag/2.0.18
Reported by:    GitHub (watch releases)

(cherry picked from commit 395682a8e1b70751b5230a5868335c2ce5256663)
DeltaFile
+3-3benchmarks/clpeak/distinfo
+1-1benchmarks/clpeak/Makefile
+4-42 files

LLVM/project 2ac96dbllvm/lib/Analysis ScalarEvolution.cpp, llvm/test/Analysis/ScalarEvolution ptrtoaddr-at-scope.ll

[SCEV] Add missing scPtrToAddr to getCastExpr. (#211899)

https://github.com/llvm/llvm-project/pull/180244 (8e76c3f0d29) missed
adding scPtrToAddr to getCastExpr, causing `Not a SCEV cast expression!`
on some of the AMDGPU bots, including
 https://lab.llvm.org/buildbot/#/builders/10/builds/32555.

Add missing case to handle PtrToAddr.
DeltaFile
+50-0llvm/test/Analysis/ScalarEvolution/ptrtoaddr-at-scope.ll
+5-0llvm/lib/Analysis/ScalarEvolution.cpp
+55-02 files

FreeBSD/ports 4ba825asysutils/libdisplay-info distinfo pkg-plist, x11-wm/cosmic-comp/files patch-libdisplay-info-0.3

sysutils/libdisplay-info: update to 0.4.0

Changes:        https://gitlab.freedesktop.org/emersion/libdisplay-info/-/releases/0.4.0
Reported by:    GitLab (notify releases)
DeltaFile
+20-0x11-wm/cosmic-comp/files/patch-libdisplay-info-0.3
+20-0x11-wm/niri/files/patch-libdisplay-info-0.3
+3-3sysutils/libdisplay-info/distinfo
+3-1sysutils/libdisplay-info/pkg-plist
+1-1x11-wm/mutter/Makefile
+1-1x11-wm/gamescope/Makefile
+48-617 files not shown
+65-1223 files

FreeBSD/ports f9d7690multimedia/mpvpaper distinfo Makefile

multimedia/mpvpaper: update to 1.9

Changes:        https://github.com/GhostNaN/mpvpaper/releases/tag/1.9
Reported by:    GitHub (watch releases)
DeltaFile
+3-3multimedia/mpvpaper/distinfo
+1-1multimedia/mpvpaper/Makefile
+4-42 files

FreeBSD/ports 8b5208bx11/xwayland-satellite distinfo Makefile

x11/xwayland-satellite: update to 0.8.2

Changes:        https://github.com/Supreeeme/xwayland-satellite/releases/tag/v0.8.2
Reported by:    GitHub (watch releases)
DeltaFile
+3-3x11/xwayland-satellite/distinfo
+1-2x11/xwayland-satellite/Makefile
+4-52 files

FreeBSD/ports cde5539graphics/mesa-devel distinfo Makefile

graphics/mesa-devel: update to 26.2.b.452

Changes:        https://gitlab.freedesktop.org/mesa/mesa/-/compare/712ebaa4b1a...6ccebfb0444
DeltaFile
+3-3graphics/mesa-devel/distinfo
+2-3graphics/mesa-devel/Makefile
+5-62 files

FreeBSD/ports cb2143dgames/veloren-weekly distinfo Makefile.crates, games/veloren-weekly/files patch-gilrs patch-cpal

games/veloren-weekly: update to s20260721

Changes:        https://gitlab.com/veloren/veloren/-/compare/ad45ea3a91...345e457894
DeltaFile
+109-24games/veloren-weekly/files/patch-gilrs
+58-0games/veloren-weekly/files/patch-cpal
+23-33games/veloren-weekly/distinfo
+10-15games/veloren-weekly/Makefile.crates
+2-3games/veloren-weekly/Makefile
+202-755 files