[AMDGPU] Teach isMaskedByExec that S_CSELECT x, 0 is masked iff x is (#239495)
S_CSELECT x, 0 produces x or 0, so inactive-lane bits are already clear
iff x is exec-masked. tryFoldAndExec can then drop the redundant s_and
exec that GISel emits after s_cselect exec, 0 in lane-mask merges.
Follow-up of https://github.com/llvm/llvm-project/pull/239090 (need to
be rebased on it.)
www/mod_auth_kerb2: Deprecate and mark BROKEN
The module uses the krb5_rc_dfl_* interfaces, which MIT Kerberos no
longer exports. The module builds but cannot be loaded with the
GSSAPI_MIT option, and with the default GSSAPI_BASE option on
FreeBSD 15.1, where the base Kerberos is MIT. The last upstream release
is from 2008.
Mark GSSAPI_MIT and GSSAPI_BASE on FreeBSD 15.1 and later as BROKEN and
deprecate the port in favor of www/mod_auth_gssapi, with removal on
2027-01-31.
PR: 279586
Sponsored by: Netzkommune GmbH
(cherry picked from commit bd300f00c97dfd58dae7337ef7b0ee812cdb1477)
www/mod_auth_kerb2: Fix build with the GSSAPI_HEIMDAL option
With the GSSAPI_HEIMDAL option enabled the build fails with
"incompatible function pointer types", because accept_sec_token is
declared with a const gss_cred_id_t argument while Heimdal's
gss_accept_sec_context() takes a gss_const_cred_id_t. Use
gss_const_cred_id_t in the pointer type, applied only for this option.
PR: 277660
Sponsored by: Netzkommune GmbH
(cherry picked from commit 8a6b778f837584591f037034a557423f12a6c967)
www/mod_auth_kerb2: Deprecate and mark BROKEN
The module uses the krb5_rc_dfl_* interfaces, which MIT Kerberos no
longer exports. The module builds but cannot be loaded with the
GSSAPI_MIT option, and with the default GSSAPI_BASE option on
FreeBSD 15.1, where the base Kerberos is MIT. The last upstream release
is from 2008.
Mark GSSAPI_MIT and GSSAPI_BASE on FreeBSD 15.1 and later as BROKEN and
deprecate the port in favor of www/mod_auth_gssapi, with removal on
2027-01-31.
PR: 279586
Sponsored by: Netzkommune GmbH
[libc] Derive the default thread stack size from RLIMIT_STACK (#244571)
Our default thread stack size was a hard-coded 64KB, which is a lot
smaller than what most programs expect. As far as I can tell, there was
never a deliberate discussion on the default value. The current value
(first 32KB, then bumped to 64KB) was set back when thrd_create was
first implemented and has stuck around since.
This patch makes the default follow the soft RLIMIT_STACK limit:
- the limit is read once at startup (in do_start, before constructors
and main run), so later setrlimit calls don't change the default
- if the limit is RLIM_INFINITY (or too large to be page-aligned), we
use 2MB
- the value is raised to PTHREAD_STACK_MIN and rounded up to the page
size
POSIX leaves the default stack size unspecified, and this is the kind of
thing that has no one-size-fits-all solution. Using RLIMIT_STACK is an
idea I got from glibc. I'm implementing that here because it makes sense
[22 lines not shown]
[mlir][bufferization] Refuse an incompatible default cast, not assert (#245373)
The `bufferization` dialect's `defaultCreateCast` currently `assert`s
that both types of a buffer cast are `memref`s and that they are
compatible. This change turns that assertion into a failure, which
callers report as a diagnostic. Also introduces a fallible
`bufferization::castBuffer` utility to centralize that behavior.
Add new tests for incompatible cast diagnostics, and a test that the
`to_buffer(to_tensor)` fold leaves a non-`memref` pair in place.
Assisted-by: Claude
---------
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[Mips] Select constrained FP conversions (#246059)
STRICT_FP_ROUND, STRICT_FP_EXTEND and STRICT_SINT_TO_FP were left at
the default Expand action even though the patterns already match them,
so they were mutated to the non-strict nodes and could be removed when
their result was unused. With strict node mutation disabled they would
instead become libcalls (or the magic-number sequence for
STRICT_SINT_TO_FP).
Mark them Legal where the corresponding non-strict nodes are, switch the
microMIPS fpround/fpextend patterns to any_fpround/any_fpextend, and
mark the PseudoCVT int-to-FP pseudos as raising FP exceptions and
reading FCR31, as the CVT instructions they expand to do.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[ARM][MachineOutliner] Ignore debug instructions when checking LR in a block (#242649)
`isMBBSafeToOutlineFrom` accumulates `LiveRegUnits` over every
instruction
in the block, including `DBG_VALUE`s. A `DBG_VALUE $lr` makes LR look
used
in the block, so the outliner treats LR as unavailable there and may not
outline from it. Keeping `__builtin_return_address(0)` in a variable is
enough to block outlining under `-g` (`thumbv7m`, `-Oz -moutline`).
Iterate with `instructionsWithoutDebug` instead.
The new MIR test runs the outliner on two functions with the same
sequence
in a block where LR is dead, one of them with a `DBG_VALUE $lr`. Without
the
change the sequence is not outlined; with it both functions call the
outlined function. It is a new file because adding these functions to
`machine-outliner-remove-debug-instr.mir` renumbers that test's outlined
[5 lines not shown]
[CodeGen][AMDGPU] Skip meta instructions in required export priority checks (#230074)
GCNHazardRecognizer’s GFX11.5 required export priority workaround
inspects neighboring instructions by raw position, so meta instructions
change its result. For example, the entry-block CFI_INSTRUCTIONs emitted
with debug info cause an extra S_SETPRIO to be inserted.
Add skipMetaInstructionsForward (moved from GCNHazardRecognizer.cpp) and
skipMetaInstructionsBackward to MachineBasicBlock.h, and use them to
skip meta instructions in these checks. The workaround is still inserted
directly after the export.
[RISCV] Do not let debug uses block the load-immediate branch rewrite (#242628)
`optimizeCondBranch` rewrites a branch such as `blt Y, X`, where `Y` is
a
load immediate `C0`, to `bge X, Z` when `Z` already holds `C0 + 1` (and
`blt X, Y` to `bge Z, X` when `Z` holds `C0 - 1`). It only does so if
`Y`
has a single use, checked with `hasOneUse()`, which counts `DBG_VALUE`s.
Early tail duplication can copy a variable's debug value into the
predecessor, where it becomes a debug use of the `li`, so the rewrite
happens only with `-g0`.
Use `hasOneNonDBGUse()` in both cases. The rewrite only changes the
branch
operands, so the debug use of `Y` stays valid.
The new functions in `branch-opt.mir` cover both rewrites, and a new RUN
line runs the file with `-debugify-and-strip-all-safe`, which gives the
load
[7 lines not shown]
[AArch64] Ignore debug instructions when placing the SLH CSDB (#242756)
`lowerSpeculationSafeValuePseudos` inserts a `CSDB` before the first
instruction that reads a register masked by speculative load hardening.
A
`DBG_VALUE` of that register counts as such a read, so with `-g` the
`CSDB`
is inserted at the debug value, before instructions that the barrier
would
otherwise follow, and the code differs from `-g0`.
Skip debug instructions when looking for a use of a masked register, so
the
`CSDB` is placed before the first real use with and without debug info.
The new test runs `mir-debugify` before the pass and strips the debug
info
after it. Without the change the `CSDB` (`HINT 20`) is placed before the
`SUBSWri`, at the debug value of the loaded register; with it the `CSDB`
[3 lines not shown]
[Mips] Accept the two-operand forms of the mul and dmul macros (#246595)
GAS accepts mul rd, imm, dmul rd, rs and dmul rd, imm as short forms of
mul rd, rd, imm, dmul rd, rd, rs and dmul rd, rd, imm. The integrated
assembler only had the two-operand form for the register mul macro, so
it rejected the others on MIPS I to MIPS64r5.
Add the same two-operand alias to the mul immediate macro and to the
dmul register and immediate macros.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
mesa: carry over atexit() patches from MesaLib, simplified
Fixes coredumps on exit.
Reported upstream, let's see what happens.
XXX: there are a couple more atexit() locations remaining that might
need patching as well.
Bump PKGREVISION.
[MLIR] Print (u)int8_t args as numbers and properly support char args (#225680)
Adds printing overloads for 8-bit integers to make sure that the
tablegen generated `assemblyFormat` code prints them as numbers instead
of resolving to the `raw_ostream` char overload. This solves
inconsistent round-trips where the parser accepted a number but the
printer emitted a glyph (e.g. `<65>`->`<A>`).
Adds support for printing/parsing raw char arguments to make sure that
it is possible to have glyphs as arguments.
This is also a behaviour change for hand-written printers and parsers:
streaming an `int8_t`/`uint8_t` into an `AsmPrinter` now prints a
decimal number instead of a raw character, and `char` parameters are now
parsed and printed as a single-character keyword or quoted strings.
Hand-written `printer << c` still prints a raw char.
---------
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
firmware: add a reusable append_update() helper
For now use it for base and kernel, but eventually also use it for
all the package updates to make the script a bit shorter.
py-pylint: updated to 4.1.5
4.1.5
Security Fixes
Someone with write access to the cache directory (a predictable PYLINTHOME
on a multi-user host) can no longer plant a symlink or hard link there to make
pylint overwrite, or append to, another file the user running pylint can write.
The stats cache and the crash report are now opened in exclusive creation mode,
which refuses any existing path, and PYLINTHOME is created with mode
0700. If you cannot upgrade, do not point PYLINTHOME to an untrusted,
shared, or group-writable directory. The default, ~/.cache/pylint on Linux,
is writable only by the user running pylint.