LLVM/project a146f7b — utils/bazel/llvm-project-overlay/clang BUILD.bazel

[Bazel] Fixes for commit b8afba677502 (#227808)

Add missing //llvm:CodeGen, //llvm:Core, and //llvm:Demangle
dependencies to clang:codegen_utils, and add :codegen_utils to
clang:cir_frontend_action.
DeltaFile
+4-0utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+4-01 files

HardenedBSD/src 1153a5b — crypto/openssl/test/recipes/10-test_bn_data bngcd.txt, crypto/openssl/test/recipes/30-test_evp_data evppkey_ecc.txt evpkdf_ssh.txt

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+0-23,927crypto/openssl/test/recipes/30-test_evp_data/evpciph_aes_ccm_cavs.txt
+0-17,330crypto/openssl/test/recipes/10-test_bn_data/bngcd.txt
+0-11,686crypto/openssl/test/recipes/30-test_evp_data/evppkey_kas.txt
+0-5,037crypto/openssl/test/recipes/30-test_evp_data/evpkdf_tls13_kdf.txt
+0-4,943crypto/openssl/test/recipes/30-test_evp_data/evpkdf_ssh.txt
+0-4,563crypto/openssl/test/recipes/30-test_evp_data/evppkey_ecc.txt
+0-67,4862,216 files not shown
+14,899-207,1712,222 files

HardenedBSD/src f64281c — crypto/openssl/test/recipes/10-test_bn_data bngcd.txt, crypto/openssl/test/recipes/30-test_evp_data evppkey_ecc.txt evpkdf_ssh.txt

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+0-23,927crypto/openssl/test/recipes/30-test_evp_data/evpciph_aes_ccm_cavs.txt
+0-17,330crypto/openssl/test/recipes/10-test_bn_data/bngcd.txt
+0-11,686crypto/openssl/test/recipes/30-test_evp_data/evppkey_kas.txt
+0-5,037crypto/openssl/test/recipes/30-test_evp_data/evpkdf_tls13_kdf.txt
+0-4,943crypto/openssl/test/recipes/30-test_evp_data/evpkdf_ssh.txt
+0-4,563crypto/openssl/test/recipes/30-test_evp_data/evppkey_ecc.txt
+0-67,4862,216 files not shown
+14,899-207,1712,222 files

HardenedBSD/src 2e93b0a — sys/fs/cuse cuse.c, tests/sys/pmc pmc_exec_test.c pmc_credexec_test.c

Merge remote-tracking branch 'rad/hardened/15-stable/main' into hardened/15-stable/pledge
DeltaFile
+507-0tests/sys/pmc/pmc_api_test.c
+453-0tests/sys/pmc/pmc_log_test.c
+436-0tests/sys/pmc/pmc_lifecycle_test.c
+348-0tests/sys/pmc/pmc_credexec_test.c
+156-112sys/fs/cuse/cuse.c
+264-0tests/sys/pmc/pmc_exec_test.c
+2,164-1128 files not shown
+2,220-13914 files

LLVM/project 9ef03f1 — flang-rt/include/flang-rt/runtime array.h, flang-rt/lib/runtime external-unit.cpp array.h

Flang improve fidelity of unformatted I/O endianness with FORT_CONVERT_UNIT (#223831)

Add further fidelity to specifying desired endianness of unformatted I/O
file on a per unit basis with the `FORT_CONVERT_UNIT` environment
variable.

To reviewers (friends) I'm not sure about:

1. The correct function prefixing for the FLANG runtime environment.
2. How to test/validate on Windows
3. How to test/validate with CUDA runtime support enabled

Thank you.


https://discourse.llvm.org/t/runtime-unformatted-i-o-conversion-between-big-and-little-endian-formats/91751

Documentation for new environment variable:


    [85 lines not shown]
DeltaFile
+167-0flang-rt/lib/runtime/environment.cpp
+152-0flang-rt/test/Runtime/fort_convert.f90
+75-4flang/docs/RuntimeEnvironment.md
+68-0flang-rt/include/flang-rt/runtime/array.h
+0-59flang-rt/lib/runtime/array.h
+21-0flang-rt/lib/runtime/external-unit.cpp
+483-632 files not shown
+497-648 files

HardenedBSD/src 9a188d8 — crypto/openssl/test/recipes/10-test_bn_data bngcd.txt, crypto/openssl/test/recipes/30-test_evp_data evppkey_ecc.txt evpkdf_ssh.txt

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+0-23,927crypto/openssl/test/recipes/30-test_evp_data/evpciph_aes_ccm_cavs.txt
+0-17,330crypto/openssl/test/recipes/10-test_bn_data/bngcd.txt
+0-11,686crypto/openssl/test/recipes/30-test_evp_data/evppkey_kas.txt
+0-5,037crypto/openssl/test/recipes/30-test_evp_data/evpkdf_tls13_kdf.txt
+0-4,943crypto/openssl/test/recipes/30-test_evp_data/evpkdf_ssh.txt
+0-4,563crypto/openssl/test/recipes/30-test_evp_data/evppkey_ecc.txt
+0-67,4862,216 files not shown
+14,899-207,1712,222 files

HardenedBSD/src 8af92dc — tests/sys/pmc Makefile pmc_exec_test.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+507-0tests/sys/pmc/pmc_api_test.c
+453-0tests/sys/pmc/pmc_log_test.c
+436-0tests/sys/pmc/pmc_lifecycle_test.c
+348-0tests/sys/pmc/pmc_credexec_test.c
+264-0tests/sys/pmc/pmc_exec_test.c
+6-1tests/sys/pmc/Makefile
+2,014-11 files not shown
+2,015-27 files

FreeBSD/ports 7e8bed0 — mail/thunderbird-esr Makefile distinfo

mail/thunderbird-esr: update to 153.4.0 (ga)

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

(cherry picked from commit 0827f5c6854e52cf37289007cbc249a5a6563dd2)
DeltaFile
+3-3mail/thunderbird-esr/distinfo
+2-1mail/thunderbird-esr/Makefile
+5-42 files

LLVM/project 7d812d2 — clang/docs ReleaseNotes.md, clang/lib/CodeGen ItaniumCXXABI.cpp

[Clang] Retain constructor/destructor variants when symbol must be kept (#226572)

With -mconstructor-aliases, complete constructor and destructor variants
with discardable-if-unused linkage can be silently replaced in the IR
(RAUW) rather than emitted as distinct symbols. This prevents
-fkeep-inline-functions and `__attribute__((used))` from retaining the
complete (C1/D1) variants.

Skip RAUW when the declaration requires its symbol to be kept by
introducing structorSymbolMustBeRetained(), which returns true when`
__attribute__((used)) `is present or -fkeep-inline-functions is active
for an inline definition that is not available_externally.

Assisted-by: IBM Bob
DeltaFile
+63-8clang/test/CodeGenCXX/attr-used.cpp
+8-18clang/test/CodeGen/keep-inline-functions.cpp
+14-1clang/lib/CodeGen/ItaniumCXXABI.cpp
+12-0clang/docs/ReleaseNotes.md
+97-274 files

FreeBSD/ports 0827f5c — mail/thunderbird-esr Makefile distinfo

mail/thunderbird-esr: update to 153.4.0 (ga)

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

HardenedBSD/ports 0827f5c — mail/thunderbird-esr Makefile distinfo

mail/thunderbird-esr: update to 153.4.0 (ga)

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

HardenedBSD/ports c86dd3b — net/liferea Makefile distinfo

net/liferea: update to 2.0.2

Release Notes:
  https://github.com/lwindolf/liferea/releases/tag/v2.0.2
DeltaFile
+3-3net/liferea/distinfo
+1-1net/liferea/Makefile
+4-42 files

FreeBSD/ports c86dd3b — net/liferea Makefile distinfo

net/liferea: update to 2.0.2

Release Notes:
  https://github.com/lwindolf/liferea/releases/tag/v2.0.2
DeltaFile
+3-3net/liferea/distinfo
+1-1net/liferea/Makefile
+4-42 files

LLVM/project ce33479 — llvm/lib/Target/RISCV RISCVInstrFormats.td RISCVInstrInfoZclsd.td, llvm/test/MC/RISCV rv32q-invalid.s xqcilo-pseudos-invalid.s

[RISC-V][MC] Reject x0 as the address/temporary register for load/store pseudos (#227512)

Using the zero register as the destination for integer load pseudos or as
the temporary register for floating-point load and store pseudos is
illegal since it is used to synthesize the target address, and using x0
would mean the auipc/qc.e.li result is ignored and we access an invalid
location.

This commit was created with the help of AI tools

Pull-Request: https://github.com/llvm/llvm-project/pull/227512
DeltaFile
+59-14llvm/test/MC/RISCV/rvi-pseudos-invalid.s
+32-0llvm/test/MC/RISCV/xqcilo-pseudos-invalid.s
+14-1llvm/lib/Target/RISCV/RISCVInstrInfoZilsd.td
+0-13llvm/lib/Target/RISCV/RISCVInstrInfoZclsd.td
+5-5llvm/lib/Target/RISCV/RISCVInstrFormats.td
+4-2llvm/test/MC/RISCV/rv32q-invalid.s
+114-355 files not shown
+131-4011 files

LLVM/project a68a8f9 — llvm/lib/Transforms/Utils SimplifyLibCalls.cpp, llvm/test/Transforms/InstCombine exp2-to-ldexp.ll exp2-1.ll

Update for comments
DeltaFile
+11-10llvm/test/Transforms/InstCombine/exp2-1.ll
+8-6llvm/test/Transforms/InstCombine/exp2-to-ldexp.ll
+4-3llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+23-193 files

LLVM/project 1e5ebb6 — llvm/lib/Transforms/Utils SimplifyLibCalls.cpp, llvm/test/Transforms/InstCombine pow_fp_int16.ll pow_fp_int.ll

[InstCombine] Fold exp2(uitofp x) to ldexp(1.0, x) with ninf

`exp2(uitofp iN x) -> ldexp(1.0, zext x)` currently requires N to be
narrower than `int`, because `ldexp` takes a signed `int` exponent.
When N equals the width of `int`, the fold is still correct under `ninf`.
Every LLVM FP type has $E_{\max} \le 16383 < 2^{15} \le 2^{N-1}$, so:

- $x < 2^{N-1}$: signed and unsigned $x$ agree, so $\operatorname{ldexp}(1.0, x) = 2^{x} = \operatorname{exp2}(x)$.
- $x \ge 2^{N-1}$: $\operatorname{exp2}(x) \ge 2^{2^{N-1}} > 2^{E_{\max}}$ overflows to $+\infty$, which is poison under `ninf`.

This only applies to the intrinsic, since the `exp2` libcall may set
`errno` on overflow.

This also enables `pow(2.0, uitofp x) -> ldexp` via the existing
`pow(2^n, x) -> exp2(n * x)` fold.
DeltaFile
+23-30llvm/test/Transforms/InstCombine/exp2-to-ldexp.ll
+33-18llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+8-12llvm/test/Transforms/InstCombine/exp2-1.ll
+4-4llvm/test/Transforms/InstCombine/pow-to-ldexp.ll
+3-4llvm/test/Transforms/InstCombine/pow_fp_int16.ll
+3-4llvm/test/Transforms/InstCombine/pow_fp_int.ll
+74-726 files

LLVM/project d546b88 — llvm/test/Transforms/InstCombine pow_fp_int16.ll

[InstCombine] Autogenerate test checks in pow_fp_int16.ll. NFC
DeltaFile
+121-84llvm/test/Transforms/InstCombine/pow_fp_int16.ll
+121-841 files

LLVM/project dd7efe1 — llvm/test/Transforms/InstCombine exp2-1.ll exp2-to-ldexp.ll

[InstCombine] Pre-commit tests for exp2(uitofp) -> ldexp with ninf. NFC

Add baseline tests for folding `exp2(uitofp iN x)` to `ldexp(1.0, x)`
when N equals the width of C int, including negative tests (no ninf,
source wider than int, libcall).
DeltaFile
+234-0llvm/test/Transforms/InstCombine/exp2-to-ldexp.ll
+160-3llvm/test/Transforms/InstCombine/exp2-1.ll
+394-32 files

LLVM/project bc5b904 — clang/docs ReleaseNotes.md, clang/lib/CodeGen CodeGenModule.cpp CodeGenModule.h

[clang][CodeGen] Fix stack-use-after-return in deferred annotations (#226942)

CodeGenModule::DeferredAnnotations was keyed by StringRef, but not every
mangled name passed to GetOrCreateLLVMFunction outlives the call.
CodeGenVTables::maybeEmitThunk mangles the thunk name into a stack-local
SmallString and hands it to GetAddrOfThunk, so for an annotated virtual
function the map retained a reference into a frame that was gone by the
time EmitGlobalAnnotations looked the key up.

ASan reports this as a stack-use-after-return in EmitGlobalAnnotations,
with the freed frame being maybeEmitThunk's 'Name'. The user-visible
effect is that annotations silently disappear from the this-adjusting
thunks once the dead frame has been reused.

Make the key own its storage, using StringMap<unsigned> as the MapVector
map type so lookups still hash a StringRef without allocating.

The clang/test/CodeGenCXX/attr-annotate-member-functions.cpp‎ test has
been created with help of an AI.
DeltaFile
+65-0clang/test/CodeGenCXX/attr-annotate-member-functions.cpp
+0-10clang/test/CodeGenCXX/attr-annotate-destructor.cpp
+0-10clang/test/CodeGenCXX/attr-annotate-constructor.cpp
+4-1clang/lib/CodeGen/CodeGenModule.h
+2-2clang/lib/CodeGen/CodeGenModule.cpp
+1-0clang/docs/ReleaseNotes.md
+72-236 files

FreeBSD/ports b9dd293 — graphics/colmap Makefile distinfo

graphics/colmap: update to 4.2.1

Changelog: https://github.com/colmap/colmap/releases/tag/4.2.1
DeltaFile
+3-3graphics/colmap/distinfo
+1-2graphics/colmap/Makefile
+4-52 files

HardenedBSD/ports b9dd293 — graphics/colmap Makefile distinfo

graphics/colmap: update to 4.2.1

Changelog: https://github.com/colmap/colmap/releases/tag/4.2.1
DeltaFile
+3-3graphics/colmap/distinfo
+1-2graphics/colmap/Makefile
+4-52 files

HardenedBSD/ports 605e863 — sysutils/snapraid Makefile distinfo

sysutils/snapraid: update to 14.10

Changelog: https://github.com/amadvance/snapraid/releases/tag/v14.10
DeltaFile
+3-3sysutils/snapraid/distinfo
+1-1sysutils/snapraid/Makefile
+4-42 files

FreeBSD/ports ae14532 — devel/simdjson Makefile pkg-plist

devel/simdjson: update to 5.0.1

A major update with some minor ABI changes.

Changelog: https://github.com/simdjson/simdjson/releases/tag/v5.0.0
Changelog: https://github.com/simdjson/simdjson/releases/tag/v5.0.1

MFH:            no (soname change)
DeltaFile
+3-3devel/simdjson/distinfo
+2-2devel/simdjson/pkg-plist
+1-2devel/simdjson/Makefile
+6-73 files

HardenedBSD/ports 5f14e3d — deskutils/remind Makefile distinfo

deskutils/remind: update to 06.03.05

Changelog: https://salsa.debian.org/dskoll/remind/-/blob/master/docs/WHATSNEW?ref_type=heads
DeltaFile
+3-3deskutils/remind/distinfo
+1-1deskutils/remind/Makefile
+4-42 files

HardenedBSD/ports ae29933 — databases/mongosh Makefile, security/bitwarden-cli Makefile

*/*: bump PORTREVISION following libsimdjson soname change
DeltaFile
+1-1www/node20/Makefile
+1-1sysutils/intel-pcm/Makefile
+1-0www/node24/Makefile
+1-0www/node22/Makefile
+1-0security/bitwarden-cli/Makefile
+1-0databases/mongosh/Makefile
+6-21 files not shown
+7-27 files

FreeBSD/ports ae29933 — databases/mongosh Makefile, security/bitwarden-cli Makefile

*/*: bump PORTREVISION following libsimdjson soname change
DeltaFile
+1-1www/node20/Makefile
+1-1sysutils/intel-pcm/Makefile
+1-0www/node24/Makefile
+1-0www/node22/Makefile
+1-0security/bitwarden-cli/Makefile
+1-0databases/mongosh/Makefile
+6-21 files not shown
+7-27 files

HardenedBSD/ports ae14532 — devel/simdjson Makefile pkg-plist

devel/simdjson: update to 5.0.1

A major update with some minor ABI changes.

Changelog: https://github.com/simdjson/simdjson/releases/tag/v5.0.0
Changelog: https://github.com/simdjson/simdjson/releases/tag/v5.0.1

MFH:            no (soname change)
DeltaFile
+3-3devel/simdjson/distinfo
+2-2devel/simdjson/pkg-plist
+1-2devel/simdjson/Makefile
+6-73 files

FreeBSD/ports 5f14e3d — deskutils/remind Makefile distinfo

deskutils/remind: update to 06.03.05

Changelog: https://salsa.debian.org/dskoll/remind/-/blob/master/docs/WHATSNEW?ref_type=heads
DeltaFile
+3-3deskutils/remind/distinfo
+1-1deskutils/remind/Makefile
+4-42 files

FreeBSD/ports 605e863 — sysutils/snapraid Makefile distinfo

sysutils/snapraid: update to 14.10

Changelog: https://github.com/amadvance/snapraid/releases/tag/v14.10
DeltaFile
+3-3sysutils/snapraid/distinfo
+1-1sysutils/snapraid/Makefile
+4-42 files

FreeBSD/ports 5d0782d — net-p2p/jackett Makefile pkg-plist

net-p2p/jackett: update to 0.24.2685 and narrow target framework to net9.0

Update to 0.24.2685 and narrow the TargetFrameworks to net9.0,
dropping net471 and netstandard2.0.

The port only ever publishes net9.0, but restore resolves every target
framework a project declares, so all dependencies for net2.0 and net471
were all being fetched and then ignored.

Rewriting TargetFrameworks takes distinfo from 287 packages to 51.

Changelog: https://github.com/Jackett/Jackett/releases

PR:             297824
Co-authored-by: Pete Diamond <lazeraman at gmail.com>
DeltaFile
+47-649net-p2p/jackett/distinfo
+51-352net-p2p/jackett/Makefile.nuget
+27-13net-p2p/jackett/pkg-plist
+7-2net-p2p/jackett/Makefile
+132-1,0164 files