LLVM/project a342f77libc/include/llvm-libc-types/x86_64 mcontext_t.h ucontext_t.h

[libc] Fix ucontext_t and mcontext_t for C compliance (#192648)

* x86_64/ucontext_t.h: Removed alignas to fix C compilation error.

* x86_64/mcontext_t.h: Updated include guard to prevent collision.
DeltaFile
+3-3libc/include/llvm-libc-types/x86_64/mcontext_t.h
+2-2libc/include/llvm-libc-types/x86_64/ucontext_t.h
+5-52 files

HardenedBSD/ports da3395cgraphics/hdr_histogram Makefile, graphics/hdr_histogram/files patch-src_hdr__endian.h.patch patch-src_hdr__time.c.patch

HBSD: Fix HdrHistogram's issues

This patch allegedly fixes the issues regarding graphics/hdr_histogram.

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
Obtained-from:  https://lists.freebsd.org/archives/freebsd-ports/2026-April/009367.html
DeltaFile
+23-0graphics/hdr_histogram/files/patch-src_hdr__endian.h.patch
+11-0graphics/hdr_histogram/files/patch-src_hdr__time.c.patch
+1-0graphics/hdr_histogram/Makefile
+35-03 files

LLVM/project e772e04llvm/utils/lit/lit TestTimes.py Test.py, llvm/utils/lit/tests malformed-test-times.py

fixup! Address PR comments
DeltaFile
+16-3llvm/utils/lit/lit/TestTimes.py
+9-9llvm/utils/lit/tests/malformed-test-times.py
+2-2llvm/utils/lit/lit/Test.py
+1-1llvm/utils/lit/lit/discovery.py
+28-154 files

LLVM/project 49a7f37llvm/lib/CAS MappedFileRegionArena.cpp, llvm/test/tools/llvm-cas mapping-size-too-small.test

[CAS] Fix assertion failure when opening CAS with smaller mapping size (#192565)

When opening an existing large CAS using a smaller requested mapping
size, the file size can be smaller than capacity while holding only a
shared lock. Replace the assertion with a graceful lock upgrade to
exclusive before resizing the file.
DeltaFile
+22-0llvm/test/tools/llvm-cas/mapping-size-too-small.test
+7-1llvm/lib/CAS/MappedFileRegionArena.cpp
+29-12 files

FreeBSD/src 49e9b30sys/cddl/compat/opensolaris/kern opensolaris_cmn_err.c

dtrace: Improve dmesg kernel message prefix

Provide intuitive log search keywords and increased system consistency.

MFC after:              2 weeks
Reported by:            mav
Reviewed by:            0mp, dteske
OpenZFS change:         d45c8d648 (Improve dmesg kernel message prefix)
Differential Revision:  https://reviews.freebsd.org/D55765
DeltaFile
+7-7sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c
+7-71 files

pkgng/pkgng c58a26blibpkg pkg_jobs.c, tests/frontend upgrade.sh

options: give more explanation on option change

the output now looks like this:
  Installed packages to be REINSTALLED:
      vim-9.0 (option changed: PYTHON (on -> off), NLS (off -> on))
      curl-8.5 (option changed: GSSAPI (removed), LDAP (added))

Fixes: #580
DeltaFile
+89-1tests/frontend/upgrade.sh
+44-27libpkg/pkg_jobs.c
+133-282 files

LLVM/project 7ce8282libcxx/src ios.cpp

[libc++] Fix realloc bug in ios.cpp (#177526)

When realloc fails in the function register_callback in `ios.cpp`, the
memory will be leaked, then `__fn_` is assigned as `nullptr`,
dereferencing `__fn_` causes UB. The fix is quite simple which aligns to
`iword & pword` for `realloc`, i.e. return directly if `realloc` fails.

Regarding testing for this bug fix, because `realloc` is a C function
that we can't replace, there is no way to exercise that path easily.
DeltaFile
+6-2libcxx/src/ios.cpp
+6-21 files

FreeBSD/src b2aea7ashare/man/man4 e6000sw.4

e6000sw.4: Mention MV88E6171

Fixes:  680e6e30c020 (etherswitch: Add minimal support for mv88e6170)
Reviewed by:            jhibbits
Differential Revision:  https://reviews.freebsd.org/D56455
DeltaFile
+3-1share/man/man4/e6000sw.4
+3-11 files

LLVM/project b7e915cflang/lib/Lower ConvertExprToHLFIR.cpp, flang/test/Lower/HLFIR conditional-expr.f90

[flang] Conditional expressions lowering: use fir.if SSA results for trivial scalar types (#192338)

For trivial scalar types (INTEGER, REAL, COMPLEX, LOGICAL, UNSIGNED),
generate `fir.if` with SSA results instead of allocating a temporary and
using `hlfir.assign`. This avoids the alloca/declare/assign/load pattern
for types that can be passed directly as SSA values.

Non-trivial scalar types (derived types, characters) continue to use the
existing temporary-based paths.

The LIT test expectations have been updated accordingly, and a test case
was added.
DeltaFile
+70-54flang/test/Lower/HLFIR/conditional-expr.f90
+47-3flang/lib/Lower/ConvertExprToHLFIR.cpp
+117-572 files

LLVM/project ea2f508mlir/test/Dialect/Tosa tosa-validation-version-1p0-invalid.mlir

[mlir][tosa] Fix validation test (#192679)

Fixes a validation test after a merge race condition with
https://github.com/llvm/llvm-project/pull/192122 and
https://github.com/llvm/llvm-project/pull/192272.
DeltaFile
+1-1mlir/test/Dialect/Tosa/tosa-validation-version-1p0-invalid.mlir
+1-11 files

LLVM/project 56bb0a4llvm/test/CodeGen/SPIRV lit.local.cfg

[SPIR-V] Use ToolSubst for spirv-tools lit substitutions (#192462)

Bare-string substitutions match as substrings and the replacement path
contains the tool name, causing corrupted RUN lines

The issue is reproducible, for example, when path to llvm has tool name
substring at any point
DeltaFile
+4-4llvm/test/CodeGen/SPIRV/lit.local.cfg
+4-41 files

pkgng/pkgng 7bd8319docs pkg-autoremove.8, src autoremove.c

autoremove: add -qn for scritp friendly output

Fixes: #1823
DeltaFile
+15-0tests/frontend/autoremove.sh
+9-1src/autoremove.c
+4-1docs/pkg-autoremove.8
+28-23 files

pkgng/pkgng 98a4420src check.c

check: relax privileges requierements

if run as user and the user is now allowed to check a file, pkg
will anyway complain with output like pkg:
fstatat(etc/ntp/leap-seconds): Permission denied

Fixes: #1740
DeltaFile
+6-2src/check.c
+6-21 files

LLVM/project f51159dllvm/lib/Target/SPIRV SPIRVInstructionSelector.cpp SPIRVTypeInst.cpp, llvm/test/CodeGen/SPIRV/transcoding store-atomic.ll load-atomic.ll

[SPIRV] Lower load/store atomic to OpAtomicLoad/OpAtomicStore
DeltaFile
+96-7llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+19-26llvm/test/CodeGen/SPIRV/transcoding/store-atomic.ll
+19-25llvm/test/CodeGen/SPIRV/transcoding/load-atomic.ll
+41-0llvm/test/CodeGen/SPIRV/transcoding/atomic-load-store-unsupported.ll
+18-0llvm/lib/Target/SPIRV/SPIRVTypeInst.cpp
+4-4llvm/lib/Target/SPIRV/SPIRVISelLowering.cpp
+197-623 files not shown
+211-669 files

LLVM/project 0993b11clang/include/clang/AST ASTContext.h, clang/lib/AST ASTContext.cpp

[clang] Clear ASTContext::TUDecl in 'cleanup' for easier debugging (#191697)

While the ASTContext has more things inside, I think we should at least
clear the TUDecl so that when traversing the (dangling) AST would
immediately step on the null-dereference instead of chasing dangling
pointers and crash later.

I was bitten by this in #191058.

This commit should be NFC - assuming that people didn't traverse already
dangling ASTs.
DeltaFile
+2-0clang/include/clang/AST/ASTContext.h
+1-0clang/lib/AST/ASTContext.cpp
+3-02 files

FreeBSD/src a154d72sys/netinet sctp_structs.h

sctp(4): Fix a typo in a source code comment

- s/initited/initiated/

Obtained from:  NetBSD
MFC after:      3 days
DeltaFile
+1-1sys/netinet/sctp_structs.h
+1-11 files

pkgng/pkgng 65bb87asrc update.c, tests/frontend update.sh

update: show a warning when trying to update a non existent repository

Fixes: #2511
DeltaFile
+37-0tests/frontend/update.sh
+17-0src/update.c
+54-02 files

LLVM/project 03d3d6butils/bazel/llvm-project-overlay/libc BUILD.bazel

[Bazel] Fixes 735b152 (#192673)

This fixes 735b15239c493fce6a5033776470892f30d7e00e.

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+2-0utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+2-01 files

LLVM/project b077718bolt/include/bolt/Core MCPlus.h MCPlusBuilder.h

[BOLT] Support non-null MCInst operands in annotation handling (#192188)

The annotation sentinel in BOLT is a null MCInst operand appended after
all prime operands. However, some architectures (e.g. Hexagon) use
non-null MCInst operands as legitimate prime operands for duplex
sub-instructions. The existing code treated any MCInst operand as the
annotation sentinel, causing duplex sub-instructions to be
misidentified.
    
In getNumPrimeOperands(), only treat a null MCInst operand as the
sentinel. In getAnnotationInstOp(), skip non-null MCInst operands when
searching for the annotation sentinel.
DeltaFile
+9-2bolt/include/bolt/Core/MCPlus.h
+1-3bolt/include/bolt/Core/MCPlusBuilder.h
+10-52 files

LLVM/project 8ed0af8llvm/lib/Target/SPIRV SPIRVInstructionSelector.cpp SPIRVTypeInst.cpp, llvm/test/CodeGen/SPIRV/transcoding store-atomic.ll load-atomic.ll

[SPIRV] Lower load/store atomic to OpAtomicLoad/OpAtomicStore
DeltaFile
+75-7llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+19-26llvm/test/CodeGen/SPIRV/transcoding/store-atomic.ll
+19-25llvm/test/CodeGen/SPIRV/transcoding/load-atomic.ll
+41-0llvm/test/CodeGen/SPIRV/transcoding/atomic-load-store-unsupported.ll
+12-0llvm/lib/Target/SPIRV/SPIRVTypeInst.cpp
+4-4llvm/lib/Target/SPIRV/SPIRVISelLowering.cpp
+170-623 files not shown
+178-669 files

LLVM/project bf3cc17mlir/include/mlir/Dialect/Tosa/IR TargetEnv.h, mlir/lib/Dialect/Tosa/IR TargetEnv.cpp

[mlir][tosa] Add `draft` information to specification version (#192122)

The draft flag can be used by useful to indicate that a specification
version is not yet finalized, and may be subject to change. This is
particularly important for serialized formats that offer guarantees
around backwards compatibility. By exposing `draft` information in the
specification version in the target environment, we can allow consumers
to query this information.
DeltaFile
+22-22mlir/test/Dialect/Tosa/tosa-validation-version-1p0-invalid.mlir
+22-5mlir/include/mlir/Dialect/Tosa/IR/TargetEnv.h
+3-2mlir/lib/Dialect/Tosa/IR/TargetEnv.cpp
+2-2mlir/test/Dialect/Tosa/tosa-validation-version-1p0-pro-fp-invalid.mlir
+1-1mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
+50-325 files

LLVM/project 735b152libc/src/strings strncasecmp.cpp strcasecmp.cpp, libc/test/src/string strcmp_test.cpp

[libc] Fix strcasecmp/strncasecmp signedness and add tests (#192632)

Fixed character signedness bug in strcasecmp and strncasecmp
implementations in src/strings/ where characters > 127 were not
correctly handled.

Added LIBC_CRASH_ON_NULLPTR checks to both functions.

Enhanced unit tests in test/src/strings/ to be comprehensive without
duplicating basic case insensitivity tests.

Updated assertions in strcasecmp_test, strncasecmp_test, and strcmp_test
to check for sign instead of exact value.
DeltaFile
+57-0libc/test/src/strings/strncasecmp_test.cpp
+47-0libc/test/src/strings/strcasecmp_test.cpp
+10-20libc/test/src/string/strcmp_test.cpp
+6-3libc/src/strings/strncasecmp.cpp
+6-3libc/src/strings/strcasecmp.cpp
+126-265 files

FreeBSD/ports 6d5f5e4filesystems/amazon-efs-utils distinfo Makefile.crates, filesystems/amazon-efs-utils/files patch-src_watchdog_____init____.py patch-src_efs__utils__common_proxy.py

filesystems/amazon-efs-utils: New port

Amazon EFS mount helper and watchdog utilities. Provides mount_efs(8) to mount
EFS filesystems over NFSv4.1, optionally via a local stunnel-like proxy
(efs-proxy) that terminates TLS 1.2 and handles IAM authentication using SigV4.
A watchdog daemon, started by mount_efs, monitors the proxy and restarts it if
it dies.

FreeBSD-specific adaptations:
- Binary installed as mount_efs, not mount.efs
- Uses /sbin/mount_nfs with nfsv4,minorversion=1,oneopenown,retrycnt=1
- Watchdog enumerates /var/run/efs state files cross-checked with
  "mount -t nfs" (FreeBSD has no /proc/mounts and mount(8)/nfsstat(8)
  do not expose the client TCP port)
- aarch64 build fix: the libc crate does not expose max_align_t for
  aarch64-unknown-freebsd; substitute align_of::<u128>() in s2n-tl

Sponsored by:   Netflix
DeltaFile
+889-0filesystems/amazon-efs-utils/distinfo
+443-0filesystems/amazon-efs-utils/Makefile.crates
+86-0filesystems/amazon-efs-utils/files/patch-src_watchdog_____init____.py
+84-0filesystems/amazon-efs-utils/Makefile
+48-0filesystems/amazon-efs-utils/files/patch-src_efs__utils__common_proxy.py
+41-0filesystems/amazon-efs-utils/files/patch-src_efs__utils__common_mount__options.py
+1,591-07 files not shown
+1,710-013 files

FreeNAS/freenas ec8596fsrc/middlewared/middlewared/plugins/apps __init__.py crud.py

Minor fixes
DeltaFile
+5-1src/middlewared/middlewared/plugins/apps/__init__.py
+4-2src/middlewared/middlewared/plugins/apps/crud.py
+1-1src/middlewared/middlewared/plugins/apps/custom_app_ops.py
+1-0src/middlewared/middlewared/plugins/apps/ix_volumes.py
+11-44 files

LLVM/project e3709e3clang/include/clang/Basic DiagnosticSemaKinds.td LangOptions.def, clang/include/clang/Options Options.td

[Clang] [C++26] Expansion Statements (Part 10)
DeltaFile
+69-0clang/test/SemaCXX/cxx2c-expansion-stmts-limit.cpp
+18-0clang/lib/Sema/SemaExpand.cpp
+9-0clang/test/SemaCXX/cxx2c-fexpansion-statements.cpp
+4-0clang/include/clang/Basic/DiagnosticSemaKinds.td
+4-0clang/include/clang/Options/Options.td
+1-0clang/include/clang/Basic/LangOptions.def
+105-01 files not shown
+106-07 files

LLVM/project 9e351ebclang/include/clang/Sema Sema.h, clang/lib/Sema SemaExpand.cpp TreeTransform.h

[Clang] [C++26] Expansion Statements (Part 3)
DeltaFile
+170-0clang/lib/Sema/SemaExpand.cpp
+86-4clang/lib/Sema/TreeTransform.h
+40-40clang/test/Parser/cxx2c-expansion-statements.cpp
+37-1clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+26-3clang/lib/Sema/SemaTemplateInstantiate.cpp
+20-0clang/include/clang/Sema/Sema.h
+379-484 files not shown
+394-6510 files

LLVM/project 95dc9adclang/lib/AST ExprConstant.cpp, clang/lib/AST/ByteCode Compiler.cpp Compiler.h

[Clang] [C++26] Expansion Statements (Part 7)
DeltaFile
+1,472-0clang/test/SemaCXX/cxx2c-expansion-stmts.cpp
+42-0clang/lib/AST/ByteCode/Compiler.cpp
+40-0clang/lib/AST/ExprConstant.cpp
+2-1clang/lib/AST/ByteCode/Compiler.h
+3-0clang/lib/Sema/SemaDeclCXX.cpp
+1,559-15 files

LLVM/project 96d8e55clang/include/clang/Basic DiagnosticSemaKinds.td, clang/lib/Sema SemaExpand.cpp TreeTransform.h

[Clang] [C++26] Expansion Statements (Part 6)
DeltaFile
+105-6clang/lib/Sema/SemaExpand.cpp
+23-3clang/lib/Sema/TreeTransform.h
+2-0clang/include/clang/Basic/DiagnosticSemaKinds.td
+130-93 files

LLVM/project 327d974clang/include/clang/AST StmtCXX.h DeclTemplate.h, clang/lib/AST StmtCXX.cpp ASTImporter.cpp

[Clang] [C++26] Expansion Statements (Part 1)
DeltaFile
+576-0clang/include/clang/AST/StmtCXX.h
+157-0clang/lib/AST/StmtCXX.cpp
+125-0clang/include/clang/AST/DeclTemplate.h
+120-0clang/lib/AST/ASTImporter.cpp
+47-0clang/lib/Serialization/ASTReaderStmt.cpp
+44-0clang/include/clang/AST/ExprCXX.h
+1,069-041 files not shown
+1,435-2947 files

LLVM/project 5bedd6aclang/docs ReleaseNotes.rst, clang/include/clang/Basic DiagnosticCommonKinds.td

[Clang] [C++26] Expansion Statements (Part 11)
DeltaFile
+104-0clang/test/AST/ast-print-expansion-stmts.cpp
+49-0clang/test/AST/ast-dump-expansion-stmt.cpp
+0-4clang/include/clang/Basic/DiagnosticCommonKinds.td
+1-1clang/www/cxx_status.html
+1-0clang/docs/ReleaseNotes.rst
+155-55 files