LLVM/project bdfe03bclang/lib/CodeGen CodeGenModule.cpp CGCall.cpp, clang/test/CodeGen/Mips musttail-pic.c musttail.c

[MIPS][ISel] Fix musttail (#161860)

Properly handle clang::musttail attribute on MIPS backend.

It fixes: https://github.com/llvm/llvm-project/issues/161193
DeltaFile
+120-0llvm/test/CodeGen/Mips/musttail.ll
+36-16llvm/lib/Target/Mips/MipsISelLowering.cpp
+32-9clang/lib/CodeGen/CodeGenModule.cpp
+21-0clang/test/CodeGen/Mips/musttail-pic.c
+19-0clang/test/CodeGen/Mips/musttail.c
+17-1clang/lib/CodeGen/CGCall.cpp
+245-265 files not shown
+296-3511 files

FreeBSD/ports dd39003security/netbird distinfo Makefile

security/netbird: Update 0.64.1 => 0.64.2

Changelog:
https://github.com/netbirdio/netbird/releases/tag/v0.64.2

Commit log:
https://github.com/netbirdio/netbird/compare/v0.64.1...v0.64.2

PR:     292762
DeltaFile
+5-5security/netbird/distinfo
+1-1security/netbird/Makefile
+6-62 files

LLVM/project cd13943clang/lib/CodeGen CGExpr.cpp

Fixup code comments regarding matrix element indexing
DeltaFile
+2-3clang/lib/CodeGen/CGExpr.cpp
+2-31 files

LLVM/project 98e55a9clang/test/CodeGenHLSL/BasicFeatures MatrixToVectorCast.hlsl VectorElementwiseCast.hlsl

Move tests to existing VectorElementwiseCast test file
DeltaFile
+0-68clang/test/CodeGenHLSL/BasicFeatures/MatrixToVectorCast.hlsl
+60-1clang/test/CodeGenHLSL/BasicFeatures/VectorElementwiseCast.hlsl
+60-692 files

LLVM/project a2fb416libcxx/test/benchmarks/algorithms lower_bound.bench.cpp, libcxx/test/benchmarks/algorithms/nonmodifying lower_upper_bound.bench.cpp

[libc++] Rewrite the std::lower_bound benchmark to be more efficient and add an upper_bound benchmark (#177180)

The current benchmark is incredibly slow to run. This patch refactors
the benchmark to be faster and also adds an equivalent benchmark for
`std::upper_bound`.

Fixes #177026
DeltaFile
+86-0libcxx/test/benchmarks/algorithms/nonmodifying/lower_upper_bound.bench.cpp
+0-42libcxx/test/benchmarks/algorithms/lower_bound.bench.cpp
+86-422 files

LLVM/project 18280cfflang/include/flang/Optimizer/OpenACC/Support FIROpenACCTypeInterfaces.h, flang/lib/Optimizer/OpenACC/Support FIROpenACCTypeInterfaces.cpp RegisterOpenACCExtensions.cpp

[flang][acc] Use ReducibleType interface on LogicalType (#178253)

Introduce a new ReducibleType type interface in the OpenACC dialect that
provides a type-aware mechanism for translating OpenACC reduction
operators to arith::AtomicRMWKind values. This interface should be
attached to value types that can participate in OpenACC reductions.

For FIR, implement this interface on fir::LogicalType to handle the
AccLand and AccLor reduction operators, which map to
arith::AtomicRMWKind::andi and ori respectively.
DeltaFile
+93-0mlir/unittests/Dialect/OpenACC/OpenACCTypeInterfacesTest.cpp
+29-0mlir/include/mlir/Dialect/OpenACC/OpenACCTypeInterfaces.td
+19-0flang/lib/Optimizer/OpenACC/Support/FIROpenACCTypeInterfaces.cpp
+7-0flang/include/flang/Optimizer/OpenACC/Support/FIROpenACCTypeInterfaces.h
+2-0flang/lib/Optimizer/OpenACC/Support/RegisterOpenACCExtensions.cpp
+1-0mlir/include/mlir/Dialect/OpenACC/OpenACC.h
+151-01 files not shown
+152-07 files

LLVM/project 4ccdd2flibcxx/include/__algorithm pstl.h, libcxx/include/__pstl backend_fwd.h

[libc++][pstl] Generic implementation of parallel std::is_sorted (#176129)

This PR implements a generic backend-agnostic parallel `std::is_sorted`
based on `std::transform_reduce`.

While this approach is suboptimal comparing a direct backend-specific
implementation, since it doesn't support early termination and requires
a reduction operation, it does show speedup when the dataset is large
enough and the comparator is not absolutely trivial.

Parent issue: #99938
DeltaFile
+230-0libcxx/test/std/algorithms/alg.sorting/alg.sort/is.sorted/pstl.is_sorted_comp.pass.cpp
+229-0libcxx/test/std/algorithms/alg.sorting/alg.sort/is.sorted/pstl.is_sorted.pass.cpp
+32-0libcxx/include/__pstl/backends/default.h
+25-0libcxx/include/__algorithm/pstl.h
+8-0libcxx/test/std/algorithms/pstl.exception_handling.pass.cpp
+6-0libcxx/include/__pstl/backend_fwd.h
+530-01 files not shown
+534-07 files

LLVM/project 774279fllvm/docs/CommandGuide llvm-cov.rst, llvm/test/tools/llvm-cov include-filename-regex.test include-and-exlude-filename-regex.test

[llvm-cov] Introduce `-include-filename-regex` (#175779)

This allows to filter the source directory so the coverage outputs only includes the files matching the regex.
DeltaFile
+59-0llvm/test/tools/llvm-cov/include-filename-regex.test
+40-0llvm/test/tools/llvm-cov/include-and-exlude-filename-regex.test
+17-8llvm/tools/llvm-cov/CodeCoverage.cpp
+11-1llvm/tools/llvm-cov/CoverageFilters.h
+4-0llvm/docs/CommandGuide/llvm-cov.rst
+2-1llvm/tools/llvm-cov/CoverageFilters.cpp
+133-101 files not shown
+134-117 files

FreeBSD/src 72a6991sys/netgraph/bluetooth/include ng_hci.h

bluetooth: Don't use a non-string to initialize NG_HCI_BDADDR_ANY

Explicitly use an array of 6 zeroes instead of a C string containing
nul characters.  GCC 15 warns about the truncation, but this is
cleaner regardless.

In file included from /usr/obj/.../amd64.amd64/tmp/usr/include/bluetooth.h:51,
                 from usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c:45:
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c: In function 'register_sdp':
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c:96:13: error: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (7 chars into 6 available) [-Werror=unterminated-string-initialization]
   96 |             NG_HCI_BDADDR_ANY, (const uint8_t *)&record, sizeof(record),
      |             ^~~~~~~~~~~~~~~~~

Reviewed by:    dim
Differential Revision:  https://reviews.freebsd.org/D54869
DeltaFile
+2-2sys/netgraph/bluetooth/include/ng_hci.h
+2-21 files

OPNSense/core f456d15src/etc/inc util.inc

backend: buh-bye mwexec() and mwexec_bg()
DeltaFile
+0-24src/etc/inc/util.inc
+0-241 files

FreeBSD/src 5c504c6usr.bin/kyua Makefile

kyua: Workaround unclear warning from GCC

GCC 15 does not like a push_back() invocation in utils::find_core()
and incorrectly believes libc++ will free a non-heap pointer.  Disable
the warning to pacify GCC.

In function 'void std::__1::__libcpp_operator_delete(_Args ...) [with _Args = {void*, long unsigned int}]',
    inlined from 'void std::__1::__do_deallocate_handle_size(void*, size_t, _Args ...) [with _Args = {}]' at /usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/new:298:39,
    inlined from 'void std::__1::__libcpp_deallocate(void*, size_t, size_t)' at /usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/new:311:39,
    inlined from 'void std::__1::allocator<_Tp>::deallocate(_Tp*, size_t) [with _Tp = utils::fs::path]' at /usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/__memory/allocator.h:132:31,
    inlined from 'static void std::__1::allocator_traits<_Alloc>::deallocate(allocator_type&, pointer, size_type) [with _Alloc = std::__1::allocator<utils::fs::path>]' at /usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/__memory/allocator_traits.h:314:19,
    inlined from 'std::__1::__split_buffer<_Tp, _Allocator>::~__split_buffer() [with _Tp = utils::fs::path; _Allocator = std::__1::allocator<utils::fs::path>&]' at /usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/__split_buffer:365:31,
    inlined from 'std::__1::vector<_Tp, _Alloc>::pointer std::__1::vector<_Tp, _Alloc>::__push_back_slow_path(_Up&&) [with _Up = utils::fs::path; _Tp = utils::fs::path; _Allocator = std::__1::allocator<utils::fs::path>]' at /usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/vector:1504:1,
    inlined from 'void std::__1::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = utils::fs::path; _Allocator = std::__1::allocator<utils::fs::path>]' at /usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/vector:1526:34,
    inlined from 'utils::optional<utils::fs::path> utils::find_core(const fs::path&, const process::status&, const fs::path&)' at contrib/kyua/utils/stacktrace.cpp:217:25:
/usr/obj/.../amd64.amd64/tmp/usr/include/c++/v1/new:274:38: error: 'void operator delete(void*, size_t)' called on pointer '<unknown>' with nonzero offset [24, 9223372036854775807] [-Werror=free-nonheap-object]
  274 |   __builtin_operator_delete(__args...);
      |                                      ^
In function 'void* std::__1::__libcpp_operator_new(_Args ...) [with _Args = {long unsigned int}]',

    [13 lines not shown]
DeltaFile
+2-0usr.bin/kyua/Makefile
+2-01 files

Linux/linux 1f97d9ddrivers/vfio/pci vfio_pci_dmabuf.c

Merge tag 'vfio-v6.19-rc8' of https://github.com/awilliam/linux-vfio

Pull VFIO fix from Alex Williamson:

 - Fix a gap in the initial VFIO DMABUF implementation where it's
   required to explicitly implement a failing pin callback to prevent
   pinned importers that cannot properly support move_notify.
   (Leon Romanovsky)

* tag 'vfio-v6.19-rc8' of https://github.com/awilliam/linux-vfio:
  vfio: Prevent from pinned DMABUF importers to attach to VFIO DMABUF
DeltaFile
+12-0drivers/vfio/pci/vfio_pci_dmabuf.c
+12-01 files

FreeBSD/src 6fb87a1share/mk bsd.sys.mk

bsd.sys.mk: Silence a few GCC warnings for C++

These warnings were already marked with -Wno-error=, but they trigger
so many false positives in libc++ headers to be utterly useless for
C++ code, so disable them entirely for C++.

Reviewed by:    imp, dim
Differential Revision:  https://reviews.freebsd.org/D54867
DeltaFile
+6-0share/mk/bsd.sys.mk
+6-01 files

FreeBSD/src 2dea50acontrib/netbsd-tests/lib/libc/regex t_regex_att.c

netbsd-tests t_regex_att: Use __nonstring for a non-string constant

Fixes the following warning from GCC 15:

contrib/netbsd-tests/lib/libc/regex/t_regex_att.c:54:30: error: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (4 chars into 3 available) [-Werror=unterminated-string-initialization]
   54 | static const char delim[3] = "\\\\\0";
      |                              ^~~~~~~~

Reviewed by:    ngie, imp, dim
Differential Revision:  https://reviews.freebsd.org/D54866
DeltaFile
+1-1contrib/netbsd-tests/lib/libc/regex/t_regex_att.c
+1-11 files

FreeBSD/src bfc6e56contrib/llvm-project/libcxx/include/__type_traits remove_all_extents.h remove_extent.h

Merge commit 81b20e110b3f from llvm git (by Roland McGrath):

    [libc++] Work around new GCC 15 type_traits builtins that can't be
    used as Clang's can (#137871)

    GCC 15 has added builtins for various C++ type traits that Clang
    already had.  Since `__has_builtin(...)` now finds these, the #if
    branches previously only used for Clang are now used for GCC 15.
    However, GCC 15 requires that these builtins only be used in type
    aliases, not in template aliases.

    For now, just don't use the `__has_builtin(...)` branches under newer
    GCC versions, so both 14 and 15 work during the transition.  This
    can be cleaned up later to use all the GCC 15 builtins available.

    Fixed: #137704
    Fixed: #117319

Reviewed by:    dim
Differential Revision:  https://reviews.freebsd.org/D54865
DeltaFile
+1-1contrib/llvm-project/libcxx/include/__type_traits/remove_all_extents.h
+1-1contrib/llvm-project/libcxx/include/__type_traits/remove_extent.h
+1-1contrib/llvm-project/libcxx/include/__type_traits/add_lvalue_reference.h
+1-1contrib/llvm-project/libcxx/include/__type_traits/add_pointer.h
+1-1contrib/llvm-project/libcxx/include/__type_traits/add_rvalue_reference.h
+1-1contrib/llvm-project/libcxx/include/__type_traits/decay.h
+6-66 files

LLVM/project 16722ffllvm/include/llvm/Support SourceMgr.h BranchProbability.h

llvm: Add `LLVM_ABI` annotations in SourceMgr and BranchProbability (#177344)

These were found as part of an unrelated change in #174892 [1].

This effort is tracked in #109483.

[1]
https://github.com/llvm/llvm-project/pull/174892#issuecomment-3740884157
DeltaFile
+4-4llvm/include/llvm/Support/SourceMgr.h
+1-1llvm/include/llvm/Support/BranchProbability.h
+5-52 files

LLVM/project beb4405llvm/utils/gn/secondary/llvm/unittests/CAS BUILD.gn

[gn] Handle llvm_enable_ondisk_cas better for CASTests
DeltaFile
+3-3llvm/utils/gn/secondary/llvm/unittests/CAS/BUILD.gn
+3-31 files

FreeBSD/src 093fffasys/amd64/amd64 vm_machdep.c, sys/i386/i386 vm_machdep.c

sys: Use __is_aligned and __align_down for some kstack alignment operations

Reviewed by:    kib, jhibbits
Effort:         CHERI upstreaming
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D54840
DeltaFile
+2-3sys/powerpc/powerpc/machdep.c
+2-2sys/powerpc/powerpc/vm_machdep.c
+2-2sys/powerpc/powerpc/exec_machdep.c
+1-2sys/amd64/amd64/vm_machdep.c
+2-1sys/i386/i386/vm_machdep.c
+9-105 files

FreeBSD/src 9272b78sys/powerpc/powerpc exec_machdep.c vm_machdep.c

powerpc: Fix alignment of initial PCB on kstack

Commit cc81c44dd806737f98b4fd4094674dd71c8749f3 aimed to consolidate
duplicated code between the Book-E and AIM backends.  For
cpu_thread_alloc cpu_thread_alloc and cpu_fork it used the AIM
functions which used a bogus alignment mask (~0x2f).  The Book-E
functions used a proper alignment mask (~0x3f).  The AIM functions
appear to have been busted since they were first imported in commit
919cb3362fded33aca682a6ac57777f8fff86e36.

To fix, use the Book-E mask which requests 64 byte alignment.
Probably this was harmless in practice since td_kstack is page aligned
and struct pcb is probably a multiple of 32 bytes in size, so the 0x10
bit should have been clear anyway.

Reviewed by:    fuz, jhibbits
Fixes:          cc81c44dd806 ("Unify ABI-related bits of the Book-E and AIM...")
Effort:         CHERI upstreaming
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D54839
DeltaFile
+1-1sys/powerpc/powerpc/exec_machdep.c
+1-1sys/powerpc/powerpc/vm_machdep.c
+2-22 files

FreeBSD/src 05609c5sys/arm/arm machdep.c, sys/arm/include machdep.h

arm: Make init_proc0 static

This function is not used outside of machdep.c and is already static
on arm64 and riscv.

Reviewed by:    imp
Effort:         CHERI upstreaming
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D54838
DeltaFile
+1-1sys/arm/arm/machdep.c
+0-1sys/arm/include/machdep.h
+1-22 files

OPNSense/core 98811e4src/etc/inc console.inc, src/opnsense/scripts/shell setaddr.php

console: fix overwrite of 'dhcp' configuration

Although this is correct from a pure config.xml.sample perspective
it clearly purges further configuration from the file which we better
avoid.

(cherry picked from commit 660fa8210bec8acf41c2b615fb3212e39ce64e33)
DeltaFile
+2-1src/etc/inc/console.inc
+2-1src/opnsense/scripts/shell/setaddr.php
+4-22 files

LLVM/project 3f5a5d4mlir/include/mlir/Dialect/Tosa/IR TosaShapeOps.td, mlir/lib/Dialect/Tosa/IR TosaCanonicalizations.cpp

[mlir][tosa] Add constant folding support for `tosa.dim` (#176975)

This enhances shape inference.
DeltaFile
+27-0mlir/test/Dialect/Tosa/constant_folding.mlir
+15-0mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
+2-0mlir/include/mlir/Dialect/Tosa/IR/TosaShapeOps.td
+44-03 files

LLVM/project c960499clang/lib/Sema HLSLBuiltinTypeDeclBuilder.cpp, clang/test/AST/HLSL StructuredBuffers-AST.hlsl TypedBuffers-AST.hlsl

Revert "[HLSL] Improve HLSL resource method generation" (#178266)

Reverts llvm/llvm-project#176806

This is causing memsan failures related to the source locations for cast
instructions we are not generating. The failure is not straight forward
to fix, so I will revert this while I work on a fix.
DeltaFile
+74-72clang/test/AST/HLSL/StructuredBuffers-AST.hlsl
+34-33clang/test/AST/HLSL/TypedBuffers-AST.hlsl
+17-37clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.cpp
+13-23clang/test/AST/HLSL/ByteAddressBuffers-AST.hlsl
+138-1654 files

LLVM/project 42ce6f1llvm/tools/llvm-tli-checker llvm-tli-checker.cpp

llvm-tli-checker: Print custom name instead of standard name (#178265)

Previously this always printed the standard name if the function
was available, leaving any custom name override untested. Print the
target's name instead. The message should possibly include the standard
name for reference.

Closes #142537
DeltaFile
+11-2llvm/tools/llvm-tli-checker/llvm-tli-checker.cpp
+11-21 files

OPNSense/core fce3f79src/etc/inc system.inc

system: Persian into development mode
DeltaFile
+0-1src/etc/inc/system.inc
+0-11 files

OpenBSD/ports xxJI6Dpgraphics/oxipng distinfo crates.inc

   Update oxipng to 10.1.0.
VersionDeltaFile
1.10+32-16graphics/oxipng/distinfo
1.9+15-7graphics/oxipng/crates.inc
1.11+1-1graphics/oxipng/Makefile
+48-243 files

LLVM/project 6826f1acompiler-rt/lib/asan asan_rtl.cpp

[ASan] Fix UnpoisonDefaultStack stack bottom estimation (#178137)

UnpoisonDefaultStack estimates the stack bottom as:

```
    bottom = ((uptr)&local_stack - page_size) & ~(page_size - 1);
```

However, this can try to poision memory that doesn't have a shadow (i.e.
AddrIsInMem(x) is false) if the local_stack variable is within two pages
of the actual bottom of the space available for stack. This causes the
unpoison-alternate-stack.cpp test (which allocates a very small stack)
to fail.

This PR changes this computation to check AddrIsInMem before subtracting
the additional page.

rdar://82645815
DeltaFile
+3-1compiler-rt/lib/asan/asan_rtl.cpp
+3-11 files

FreeBSD/src 4054439usr.sbin/ctld kernel.cc

ctld: Do not remove item from an nvlist while iterating it

While here, make use of cnvlist_* to simplify this code.

Fixes:          d42a73fb6a85 ("ctld: Add a dedicated API between parse.y and the rest of the program")
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D49650
(cherry picked from commit 30020689fb1e5c9549e430bd23600c88e1257697)
DeltaFile
+4-3usr.sbin/ctld/kernel.cc
+4-31 files

FreeBSD/src 4ecaa02usr.sbin/ctld ctld.hh ctld.h

ctld: Rename {ctld,isns}.h to {ctld,isns}.hh

Subsequent commits will use C++ in these headers rather than only C.
conf.h remains as a C-only header since it is intended for use by the
C code generated from parse.y.

Sponsored by:   Chelsio Communications
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1794

(cherry picked from commit 34e8d66412cd81d020f0e75d078a4404ec39cf5a)
DeltaFile
+362-0usr.sbin/ctld/ctld.hh
+0-362usr.sbin/ctld/ctld.h
+0-90usr.sbin/ctld/isns.h
+90-0usr.sbin/ctld/isns.hh
+2-2usr.sbin/ctld/isns.cc
+2-2usr.sbin/ctld/ctld.cc
+456-4565 files not shown
+461-46111 files

FreeBSD/src e11dec7usr.sbin/ctld login.cc

ctld: Remove dead logging code

Portal discovery auth groups are always named auth groups

Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D49649

(cherry picked from commit ce8cfd998b4fc01cfd47e009b0f6dead404841b4)
DeltaFile
+2-6usr.sbin/ctld/login.cc
+2-61 files