FreeBSD/src 9d26b82lib/libc/stdlib cxa_thread_atexit_impl.c

libc: Fix dtor order in __cxa_thread_atexit

The thread_local variable may creates another thread_local variable
inside its dtor. This new object is immediately be registered in
__cxa_thread_atexit() and need to be freed before processing another
variable.

This fixes the libcxx test thread_local_destruction_order.pass.cpp.

Reported by:    kib
Approved by:    lwhsu (mentor)
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55826
DeltaFile
+2-2lib/libc/stdlib/cxa_thread_atexit_impl.c
+2-21 files

FreeBSD/src 728ae49sys/kern kern_time.c

kern_time: Honor the precise option when counting diff

When preecise option is used, the true elapsed time should also use the
precise timer.

This fixes the test case sleep_for.signals.pass.cpp in libcxx.

Reviewed by:    kib, imp
Approved by:    lwhsu (mentor)
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55824
DeltaFile
+3-1sys/kern/kern_time.c
+3-11 files

FreeBSD/src 4f59a7esys/netinet/tcp_stacks sack_filter.c

tcp: fix up !VIMAGE builds

The tcp_seq.h uses getmicrouptime() in an inline function, but it doesn't
include <sys/time.h>.  This was usually masked by having tcp_var.h always
before tcp_seq.h, so restore that.

Fixes:  c0462c2deafdcfe885e8d6f91b529d8cbddc6014
DeltaFile
+2-1sys/netinet/tcp_stacks/sack_filter.c
+2-11 files

FreeBSD/src a47c870sys/netinet in_pcb.h

inpcb: fix up !VIMAGE builds

There are some files that don't include mutex.h and rwlock.h, but use
inpcb locking macros.  With VIMAGE the net/vnet.h pulls half of the
possible kernel includes, masking the problem.  The in_pcb.h also used to
mask the problem, so restore that.

Fixes:  041e9eb1ae094a81e55fbcaba37eb2ac194658cc
DeltaFile
+3-3sys/netinet/in_pcb.h
+3-31 files

LLVM/project a63a548clang/lib/Driver Driver.cpp, clang/test/Driver ftime-trace-offload.cpp

[Driver] Enable -ftime-trace for CUDA/HIP device compilation (#179701)

Previously, -ftime-trace only generated trace files for host compilation
when compiling CUDA/HIP code. Device compilation was excluded because
the OffloadingPrefix was non-empty, causing handleTimeTrace() to be
skipped.

This patch enables -ftime-trace for offload device compilation by:
1. Passing the offloading prefix to handleTimeTrace()
2. Including the bound architecture in the trace filename
3. Deriving the trace output directory from the -o option for device
   compilation (since the device output is a temp file)

Trace files are now generated for each offload target:
- Host: output.json
- Device: output-hip-amdgcn-amd-amdhsa-gfx906.json

Note: When using --save-temps, multiple compilation phases (preprocess,
compile, codegen) write to the same trace file, with each phase

    [3 lines not shown]
DeltaFile
+37-7clang/lib/Driver/Driver.cpp
+37-0clang/test/Driver/ftime-trace-offload.cpp
+74-72 files

LLVM/project cc4ff7fclang/docs HIPSupport.rst, clang/lib/Sema Sema.cpp

[CUDA/HIP][SYCL] Deduplicate deferred diagnostics across multiple callers (#185926)

[CUDA/HIP][SYCL] Deduplicate deferred diagnostics across multiple
callers

Deferred diagnostics for a function were emitted once per caller that
forced the function into device context. When multiple device functions
called the same host-device function containing errors, the diagnostics
were repeated for each caller, producing noisy duplicate output.

Change the deferred diagnostic emission to a two-pass approach:
1. During the call graph walk, collect callers in DeviceKnownEmittedFns
   (now storing multiple callers per function) and mark functions that
   need diagnostics, but don't emit yet.
2. After the walk completes, emit diagnostics once per function with
   all callers listed as notes.

Call chain notes now use "called by" for the first caller in each chain
and "which is called by" for subsequent callers in the chain, making it

    [5 lines not shown]
DeltaFile
+84-0clang/docs/HIPSupport.rst
+41-23clang/lib/Sema/Sema.cpp
+56-0clang/test/SemaCUDA/deferred-diags-dedup.cu
+12-11clang/test/SemaSYCL/sycl-kernel-entry-point-attr-device-odr-use.cpp
+10-10clang/test/SemaCUDA/deferred-diags.cu
+12-5clang/test/SemaCUDA/deferred-diags-limit.cu
+215-494 files not shown
+236-5310 files

LLVM/project f87ce0fllvm/include/llvm/DebugInfo/CodeView SymbolRecord.h

[CodeView] Initialize RegisterId members to RegisterId::NONE (#186551)

All other fields in these tracts are already initialized.
Fixes Msan report in DebugInfoCodeViewTests after #183172.

https://lab.llvm.org/buildbot/#/builders/sanitizer-x86_64-linux-fast
DeltaFile
+3-3llvm/include/llvm/DebugInfo/CodeView/SymbolRecord.h
+3-31 files

LLVM/project b1ab83ellvm/include/llvm/DebugInfo/CodeView SymbolRecord.h

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+3-3llvm/include/llvm/DebugInfo/CodeView/SymbolRecord.h
+3-31 files

LLVM/project 5c38a68clang/lib/Format TokenAnnotator.cpp, clang/unittests/Format FormatTest.cpp

[clang-format] Fix an assertion failure on invalid C++ lambda (#185349)

Fixes #185268
DeltaFile
+4-0clang/unittests/Format/FormatTest.cpp
+1-1clang/lib/Format/TokenAnnotator.cpp
+5-12 files

LLVM/project e945f7alibclc/cmake/modules AddLibclc.cmake

[libclc][CMake] Rename opencl to clc in add_libclc_library, update comment (#186544)

Align with cmake function name.
DeltaFile
+7-7libclc/cmake/modules/AddLibclc.cmake
+7-71 files

OpenBSD/ports lzneD15mail/postfix/stable distinfo Makefile

   update to postfix-3.10.8, ok Brad
VersionDeltaFile
1.163+2-2mail/postfix/stable/distinfo
1.278+1-2mail/postfix/stable/Makefile
+3-42 files

LLVM/project ecc8894clang/test/OpenMP target_teams_distribute_parallel_for_simd_schedule_codegen.cpp teams_distribute_parallel_for_simd_schedule_codegen.cpp, libc/AOR_v20.02/math/test/traces sincosf.txt exp.txt

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.6-beta.1

[skip ci]
DeltaFile
+0-31,999libc/AOR_v20.02/math/test/traces/sincosf.txt
+0-16,000libc/AOR_v20.02/math/test/traces/exp.txt
+5,294-4,814clang/test/OpenMP/target_teams_distribute_parallel_for_simd_schedule_codegen.cpp
+5,238-4,758clang/test/OpenMP/teams_distribute_parallel_for_simd_schedule_codegen.cpp
+4,350-4,098clang/test/OpenMP/distribute_parallel_for_simd_codegen.cpp
+4,004-3,524clang/test/OpenMP/teams_distribute_parallel_for_schedule_codegen.cpp
+18,886-65,1933,045 files not shown
+215,055-229,5713,051 files

LLVM/project 9ceef33clang/test/OpenMP target_teams_distribute_parallel_for_simd_schedule_codegen.cpp teams_distribute_parallel_for_simd_schedule_codegen.cpp, libc/AOR_v20.02/math/test/traces sincosf.txt exp.txt

[𝘀𝗽𝗿] initial version

Created using spr 1.3.6-beta.1
DeltaFile
+0-31,999libc/AOR_v20.02/math/test/traces/sincosf.txt
+0-16,000libc/AOR_v20.02/math/test/traces/exp.txt
+5,294-4,814clang/test/OpenMP/target_teams_distribute_parallel_for_simd_schedule_codegen.cpp
+5,238-4,758clang/test/OpenMP/teams_distribute_parallel_for_simd_schedule_codegen.cpp
+4,350-4,098clang/test/OpenMP/distribute_parallel_for_simd_codegen.cpp
+4,004-3,524clang/test/OpenMP/teams_distribute_parallel_for_schedule_codegen.cpp
+18,886-65,1933,056 files not shown
+215,370-229,9203,062 files

LLVM/project e3bb71c.github CODEOWNERS

[lldb][FreeBSD] Add myself to CODEOWNERS (#180052)

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
DeltaFile
+1-0.github/CODEOWNERS
+1-01 files

LLVM/project f45cf97lldb Maintainers.md

[lldb] Nominate myself for FreeBSD maintainer (#180053)

I've been FreeBSD src contributor since 2022 and started working for the
FreeBSD Foundation starting from January. I created and have been
actively working on #180061 to achieve [LLDB improvement on
FreeBSD](https://wiki.freebsd.org/SummerOfCodeIdeas#Improve_LLDB_on_FreeBSD)
which was originally Google Summer of Code idea.

The initial LLDB support for userspace and kernel debugging on FreeBSD
was initiated by Moritz system back in 2020, but there are some missing
bits like architecture support due to lack of time. Due to this, FreeBSD
developers still depend on GDB-derived kernel debugger and it still
remains de-facto tier 1 debugger (e.g. no scripts in source tree for
lldb).

To track what/how I'm working on this task, please take a look at my
foundation [status report on LLDB
improvement](https://github.com/FreeBSDFoundation/status-updates/blob/main/Minsoo_Choo/kdb.md).
As you see, I will also improve Lua scripting on LLDB as Lua remains

    [13 lines not shown]
DeltaFile
+3-0lldb/Maintainers.md
+3-01 files

LLVM/project 8175bd9libclc/cmake/modules AddLibclc.cmake

[libclc][CMake] Check SOURCES and LIBRARIES arguments are not empty (#186542)
DeltaFile
+6-0libclc/cmake/modules/AddLibclc.cmake
+6-01 files

LLVM/project c31ffbfflang/lib/Lower OpenACC.cpp, flang/lib/Optimizer/Builder CUFCommon.cpp

[flang][cuda][openacc] Fix interoperability when host_data is not generated (#186516)

Update lowering to not process operands if the operation will not be
generated because of a `if(.false.)` clause. This was breaking when
enabling CUDA Fortran on the same test.
DeltaFile
+20-21flang/lib/Lower/OpenACC.cpp
+4-3flang/test/Lower/OpenACC/acc-host-data.f90
+2-0flang/lib/Optimizer/Builder/CUFCommon.cpp
+26-243 files

LLVM/project 5a87cbacompiler-rt/test/sanitizer_common/TestCases/Linux getpwnam_r_invalid_user.cpp

[NFC][sanitizer] Accept ETIMEDOUT in getpwnam_r_invalid_user.cpp (#186538)

On some systems, looking up an result in a timeout.

Error here is not a sign of compiler-rt issue.

Fixes flakiness on
https://lab.llvm.org/buildbot/#/builders/sanitizer-ppc64le-linux
DeltaFile
+2-1compiler-rt/test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cpp
+2-11 files

LLVM/project bbb6417compiler-rt/test/sanitizer_common/TestCases/Linux getpwnam_r_invalid_user.cpp

Document inconsistent failure of getpwnam_r test

Added comment about inconsistent failure on some bots.
DeltaFile
+1-0compiler-rt/test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cpp
+1-01 files

OpenBSD/src 9eHYcjTsys/net fq_codel.c

   plug a memory leak when detaching codel ifq disciplines on an interface.

   fqcodel_alloc() takes (moves) ownership of memory allocated as part
   of the pf queue code that sets up the queue discipline, but nothing
   releases it when the discipline is removed from the interface. every
   time you load a pf rulese that uses codel, it temporarily resets
   an interface to priq before creating and attaching new codel
   instances. this means every ruleset load would leak memory, to the
   point where M_DEVBUF allocations exhaust the kernel map.

   this has fqcodel_free() call fqcodel_pf_free to free the now unused
   codel discipline.

   found and fixed by lexi wilson
VersionDeltaFile
1.20+2-2sys/net/fq_codel.c
+2-21 files

NetBSD/pkgsrc-wip 9859c88prusaslicer distinfo, prusaslicer/patches patch-src_libslic3r_Geometry_VoronoiUtilsCgal.cpp patch-src_libslic3r_SLA_SupportIslands_VoronoiDiagramCGAL.cpp

prusaslicer: Fix build with latest CGAL/boost.
DeltaFile
+23-0prusaslicer/patches/patch-src_libslic3r_Geometry_VoronoiUtilsCgal.cpp
+22-0prusaslicer/patches/patch-src_libslic3r_SLA_SupportIslands_VoronoiDiagramCGAL.cpp
+15-0prusaslicer/patches/patch-src_libslic3r_Triangulation.cpp
+15-0prusaslicer/patches/patch-src_libslic3r_MeshBoolean.cpp
+4-0prusaslicer/distinfo
+79-05 files

LLVM/project e1ddff1compiler-rt/test/sanitizer_common/TestCases/Linux getpwnam_r_invalid_user.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+1-1compiler-rt/test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cpp
+1-11 files

LLVM/project 0088575lldb/source/Plugins/LanguageRuntime/CPlusPlus CPPLanguageRuntime.cpp

[lldb] Upstream missing FixCodeAddress in CPPLanguageRuntime (#186519)
DeltaFile
+12-0lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp
+12-01 files

HardenedBSD/src 4e9c1bcsys/contrib/zlib gzread.c zlib.h, sys/contrib/zlib/contrib/gcc_gvmat64 gvmat64.S

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+0-574sys/contrib/zlib/contrib/gcc_gvmat64/gvmat64.S
+190-124sys/contrib/zlib/gzread.c
+213-94sys/contrib/zlib/zlib.h
+168-99sys/contrib/zlib/gzwrite.c
+38-151sys/contrib/zlib/inflate.c
+91-91sys/contrib/zlib/inffixed.h
+700-1,13342 files not shown
+1,704-1,81048 files

HardenedBSD/src b795742sys/contrib/zlib gzread.c zlib.h, sys/contrib/zlib/contrib/gcc_gvmat64 gvmat64.S

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+0-574sys/contrib/zlib/contrib/gcc_gvmat64/gvmat64.S
+190-124sys/contrib/zlib/gzread.c
+213-94sys/contrib/zlib/zlib.h
+168-99sys/contrib/zlib/gzwrite.c
+38-151sys/contrib/zlib/inflate.c
+91-91sys/contrib/zlib/inffixed.h
+700-1,13342 files not shown
+1,704-1,81048 files

HardenedBSD/ports f78769asysutils/froxlor pkg-plist, sysutils/logstash91 Makefile

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+388-7sysutils/froxlor/pkg-plist
+117-0sysutils/logstash93/files/logstash.in
+92-0sysutils/logstash93/Makefile
+27-25sysutils/logstash91/Makefile
+27-25sysutils/logstash92/Makefile
+25-0sysutils/logstash93/files/pkg-message.in
+676-5727 files not shown
+790-11933 files

LLVM/project 696208bllvm/test/CodeGen/RISCV short-forward-branch-opt-with-branch-with-immediates_48_ne.ll short-forward-branch-opt-with-branch-with-immediates_48_eq.ll

[RISCV] Add codegen patterns to support short forward branches with immediates (#185643)

This is a follow-up to #182456. This PR adds support for short forward
branches where branches are from Qualcomm uC `Xqcibi` extension.
DeltaFile
+952-0llvm/test/CodeGen/RISCV/short-forward-branch-opt-with-branch-with-immediates_48_ne.ll
+952-0llvm/test/CodeGen/RISCV/short-forward-branch-opt-with-branch-with-immediates_48_eq.ll
+948-0llvm/test/CodeGen/RISCV/short-forward-branch-opt-with-branch-with-immediates_48_sge.ll
+948-0llvm/test/CodeGen/RISCV/short-forward-branch-opt-with-branch-with-immediates_48_slt.ll
+948-0llvm/test/CodeGen/RISCV/short-forward-branch-opt-with-branch-with-immediates_48_uge.ll
+948-0llvm/test/CodeGen/RISCV/short-forward-branch-opt-with-branch-with-immediates_48_ult.ll
+5,696-010 files not shown
+11,180-616 files

HardenedBSD/src 7aa1dbasys/contrib/zlib gzread.c zlib.h, sys/contrib/zlib/contrib/gcc_gvmat64 gvmat64.S

MFV: zlib 1.3.2.

Relnotes:       yes
MFC after:      2 weeks
DeltaFile
+0-574sys/contrib/zlib/contrib/gcc_gvmat64/gvmat64.S
+190-124sys/contrib/zlib/gzread.c
+213-94sys/contrib/zlib/zlib.h
+168-99sys/contrib/zlib/gzwrite.c
+38-151sys/contrib/zlib/inflate.c
+91-91sys/contrib/zlib/inffixed.h
+700-1,13331 files not shown
+1,622-1,75137 files

FreeBSD/src 7aa1dbasys/contrib/zlib gzread.c zlib.h, sys/contrib/zlib/contrib/gcc_gvmat64 gvmat64.S

MFV: zlib 1.3.2.

Relnotes:       yes
MFC after:      2 weeks
DeltaFile
+0-574sys/contrib/zlib/contrib/gcc_gvmat64/gvmat64.S
+190-124sys/contrib/zlib/gzread.c
+213-94sys/contrib/zlib/zlib.h
+168-99sys/contrib/zlib/gzwrite.c
+38-151sys/contrib/zlib/inflate.c
+91-91sys/contrib/zlib/inffixed.h
+700-1,13331 files not shown
+1,622-1,75137 files

FreeBSD/src 280d433contrib/gcc_gvmat64 gvmat64.S, contrib/vstudio/vc14 zlibvc.vcxproj

Vendor import of zlib 1.3.2.
DeltaFile
+570-574contrib/gcc_gvmat64/gvmat64.S
+0-1,100contrib/vstudio/vc9/zlibvc.vcproj
+0-875contrib/vstudio/vc17/zlibvc.vcxproj
+0-796contrib/vstudio/vc9/testzlib.vcproj
+0-781contrib/vstudio/vc9/zlibstat.vcproj
+0-668contrib/vstudio/vc14/zlibvc.vcxproj
+570-4,794244 files not shown
+10,397-25,093250 files