RuntimeLibcalls: Add attributes to printf variants
Give the integer-only and size-optimized printf variants the
attributes of the corresponding printf functions.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
RuntimeLibcalls: Add attributes to ObjC runtime calls
Mark the ObjC runtime functions nounwind, and mark the argument of
the functions whose intrinsics mark their argument returned.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
RuntimeLibcalls: Add attributes to libc libcalls (#244442)
Annotate C library functions with the attributes InferFunctionAttrs
gives. This isn't fully captured in the DeclareRuntimeLibcalls testing
because not all of these functions are yet associated with a library.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[OpenMP][OMPT] Enable OMPT on 32-bit PowerPC (#227540)
The tests' return-address offsets are the same as on LoongArch64: a nop,
optionally followed by one or two branches.
Tested with check-openmp under qemu-ppc with OMPT enabled.
Assisted-by: Claude Code
[OpenMP] Add __kmp_invoke_microtask for 32-bit PowerPC (#227541)
32-bit PowerPC ELF targets use the generic C++ `__kmp_invoke_microtask`,
which exits when a parallel region has more than 15 arguments, so
misc_bugs/many-microtask-args.c fails. Add an assembly version for the
SysV ABI, based on the ppc64 one.
AIX also defines `KMP_ARCH_PPC` and already has its own version in
z_AIX_asm.S.
Tested with check-openmp under qemu-ppc.
gpgme: update to 2.3.1.
Noteworthy changes in version 2.3.1 (2026-11-19)
================================================
[compared to version 2.2.0]
* New constants GPGME_PK_MLKEM, GPGME_PK_MLDSA, and GPGME_PK_DLTHM.
Add mappings for algos used bei backends. [rMa85fa49236]
* Fix a double free in the status line read code.
[T8557,CVE-2026-129975]
* Interface changes relative to the 2.2.0 release:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GPGME_PK_DLTHM NEW.
GPGME_PK_MLKEM NEW.
GPGME_PK_MLDSA NEW.
zfsbootcfg.8: list each form in the synopsis and document -d
The synopsis listed every option as optional in a single form, which
doesn't show that -k needs -v, and it didn't mention -d at all. List
the distinct forms instead: setting boot.config(5) options (or printing
them, with none), setting or deleting a key, and printing the bootenv
area. Document -d alongside the other options.
Reviewed by: avg, bcr
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D61834
zfsbootcfg: don't crash on bad or incomplete options
getopt() errors fell through the switch without a default case, so
zfsbootcfg carried on with whatever options it had. Setting a key
without a value, whether with -k alone or after such an error, then
crashed in add_pair() on a NULL value.
Print a usage message and fail for unknown options, missing option
arguments, and a key with no value to set it to.
While we're here, clean up some pre-existing style issues and ensure we
properly route warnings/errors to stderr.
Reviewed by: avg, des
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D61833
nix: build src incrementally with tools/src_workspace
tools/src_workspace proto|build|image builds this checkout's src and man
in place, as gmake world does, into proto (filled first with illumos and
illumos-extra's packages, as 0-extra-stamp installs them), with the Nix
build's strap, compiler and tools (nixpkgs-illumos'
smartos-live.srcWorkspace), and makes a platform with that whole proto
area (build_nix --proto). tools/illumos_workspace image takes the whole
area too once src_workspace has filled it. The pin moves to
nixpkgs-illumos d5ac4bc, which has them.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
[CMake] Name languages explicitly in llvm_add_warning_options
Address review feedback: instead of a hardcoded C|CXX|ALL selector,
llvm_add_warning_options() now takes any number of enabled languages followed
by options. Arguments starting with '-' or '/' are options and everything
else is a language, which must already be enabled (checked against
ENABLED_LANGUAGES). Every option is added to every named language, and the
per-language lists are LLVM_WARNING_OPTIONS_<lang>.
The ALL selector is removed so that adding a language later cannot change the
meaning of existing calls; callers now say "C CXX". llvm_apply_warning_options(),
the -Wno- stripping and the runtimes fold-back loop iterate over the enabled
languages instead of assuming C and CXX, so languages such as Fortran work
once something populates their list. The helper is now a function, and the
temporaries introduced by this patch are unset after use.
LLM-aided
netipsec: Send the packet when the rest of a bundle is skipped
A policy can bundle several requests, for example an ESP tunnel and an AH
transport request. A request at level "use" that has no SA is skipped (as
is "default", which the net.inet.ipsec.*_deflev and
net.inet6.ipsec6.*_deflev sysctls make "use" by default), and the packet
is meant to leave with the transforms of the other requests.
ipsec_process_done() applies the next request of a bundle once a transform
completes. When all remaining requests are skipped,
ipsec{4,6}_perform_request() returns EJUSTRETURN and leaves the packet to
its caller, but ipsec_process_done() returned that to the transform, which
does not send the packet or free it. Keep the references to the SP and the
SA across the call, and on EJUSTRETURN send the packet with the transforms
applied so far, after the UDP encapsulation of the last SA applied.
ipcomp_output() calls ipsec_process_done() directly for packets below the
compression threshold and passed the EJUSTRETURN on to ip_output(), which
then went on with a packet that tunnel mode encapsulation had already
[7 lines not shown]
[AMDGPU] Keep soft waitcnts unchanged until SIInsertWaitcnts converges
On the first visit to a loop header only the preheader state is known.
A soft waitcnt there (e.g. from a release fence) can have some of its
counters simplified away while another counter keeps the instruction
alive: the fence's own vmcnt(0), a preceding wait.asyncmark, or an
explicit s_waitcnt. The soft waitcnt was then rewritten with the
simplified value and promoted to a hard waitcnt, or merged into a
preceding hard one. When the back edge later brought a pending LDS
store, the original lgkmcnt(0) request was gone, and the s_barrier after
the release fence no longer waited for it.
Treat soft waitcnts as requests that depend on the incoming state: never
merge, promote or rewrite them while the analysis iterates. They are
kept unchanged in DeferredErasures, a hard waitcnt (existing or new)
carries what is needed on each visit, and the soft waitcnts are erased
once the analysis converges. This extends #220357, which did the same
only for soft waitcnts that were simplified away entirely.
[11 lines not shown]
[AMDGPU] Pre-commit tests for soft waitcnt requests lost at a loop header (NFC)
Two cases where a soft waitcnt at a loop header loses its lgkmcnt(0)
request: on the first visit no LDS operation is pending, so lgkmcnt is
simplified away while vmcnt keeps the instruction alive (either the soft
waitcnt's own vmcnt, or a preceding hard vmcnt(0) it is merged into).
The DS write in the loop is then not waited for before the S_BARRIER on
the next iteration. The checks show the current, incorrect output.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
uefisign: rename to efisign
uefisign seems to have come first, but the efi* naming has won out in
our UEFI tooling and consistency is good. This fixes it so that
"efi<tab>" gives a reasonable view of what efitools we have in base.
uefi* links are added for compatibility, at least for now. Maybe it's
a reasonable idea to add such links for all of the efi tools, but I'm
punting on that for a moment.
Reviewed by: emaste, imp (both previous version), ziaee
Relnotes: maybe
Differential Revision: https://reviews.freebsd.org/D58187
[OpenMP][flang] Score unknown context selector properties by selector (#232960)
Flang records an unknown property such as kind(bogus) or vendor(bogus)
as TraitProperty::invalid, which belongs to no selector. Under
match_any or match_none, where such a variant can still be selected,
the property therefore lost its selector's weight: kind(bogus) added
nothing, while an unmatched kind(gpu) adds 2^l, where l is the number of
constructs in the context. A score on a selector that mixes known and
unknown properties was also added twice, once for the known property and
once for invalid, and unknown properties in different selectors shared
a single score.
Add VariantMatchInfo::addUnknownTrait, which keeps the property
unmatched and records its selector and score, and score that selector
like any other. Use it in Flang. Clang drops unknown properties while
parsing and is unaffected.
Fixes: https://github.com/llvm/llvm-project/issues/233029
Assisted-by: GitHub Copilot (Claude Opus 5.5)