[LoongArch] Force a frame pointer for large call frames (#242625)
A large reserved call frame can push the emergency spill slot out of
reach of SP. Accessing the emergency spill slot can require a scratch
register. If none is free, scavenging fails with "Incomplete scavenging
after 2nd pass".
Adapt the RISC-V fixes from #181302 and #182124.
Compute the maximum call frame size at the end of ISel, before reserved
registers are frozen, and when loading MIR. Force a frame pointer when
the maximum call frame size exceeds the int12 range on LA32 or the int15
range on LA64, so the emergency spill slot can be addressed from FP.
LLM assisted.
[Mips] Use IMPLICIT_DEF and INSERT_SUBREG to insert an FP value into an MSA vector. NFC (#242320)
The lowering of INSERT_FW, INSERT_FD and the floating-point variants of
INSERT_*_VIDX used SUBREG_TO_REG to view the FP register as an MSA
register. SUBREG_TO_REG means that the instruction defining the FP
register also defined the rest of the MSA register, which is not the
case. Only element 0 is used, so the rest is undefined, which is what
IMPLICIT_DEF and INSERT_SUBREG express. This matches the lowering of
FILL_FW and FILL_FD.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
---
<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[Mips] Use INSERT_SUBREG of IMPLICIT_DEF for the halves of a 64-bit MSA splat. NFC (#242321)
When synthesizing a 64-bit splat value on MIPS64, the high and low
32-bit
halves are computed as i32 values and then combined with dinsu or
dsll32, which do not use the high 32 bits of the halves. Widen the
halves to i64 with INSERT_SUBREG into an IMPLICIT_DEF instead of
SUBREG_TO_REG, since nothing depends on the value of their high bits.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
[AMDGPU][GlobalISel] Fix ds_append/ds_consume addressing
This matches the SelectionDAG fix. For LDS, ds_append and ds_consume
address memory only through the 16 bit instruction offset and ignore
M0, but the selector copied the pointer base into M0. Select a constant,
dword aligned LDS address into the offset field and diagnose any other
LDS address as unsupported.
For GDS, the offset field must be zero and the address comes from
M0.base, so build M0 as `(addr << 16) | gds_size`. Using GDS on a
subtarget without GDS is now diagnosed.
```
; call i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) inttoptr (i32 16 to ptr addrspace(3)), i1 false)
; before
s_mov_b32 m0, 16
ds_append v0
; after
ds_append v0 offset:16
```
[AMDGPU] Fix ds_append/ds_consume addressing in SelectionDAG
For LDS, ds_append and ds_consume address memory only through the 16 bit
instruction offset. M0 is not used, but isel put the pointer (or its
base) into M0, so the counter was read at the wrong address. Select a
constant, dword aligned LDS address into the offset field and diagnose
any other LDS address as unsupported.
For GDS, the ISA requires the offset field to be zero and takes the
address from M0.base, so pack the whole address into M0 as
`(addr << 16) | gds_size`. Using GDS on a subtarget without GDS is now
diagnosed instead of silently encoding a GDS bit.
```
; call i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) inttoptr (i32 16 to ptr addrspace(3)), i1 false)
; before
s_mov_b32 m0, 16
ds_append v0
; after
[4 lines not shown]
[AMDGPU] Stop sinking addresses into ds_append/ds_consume
ds_append and ds_consume have no address register operand. For LDS the
address comes only from the 16 bit offset field, and M0 is not used. The
register plus immediate DS addressing mode reported through
getAddrModeArguments does not apply, so CodeGenPrepare should not sink
address computations into these intrinsics.
```llvm
entry:
%in.gep = getelementptr i32, ptr addrspace(3) %in, i32 7
br i1 %cond, label %endif, label %if
if:
%val = call i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) %in.gep, i1 false)
; before: CodeGenPrepare sinks the address into %if
%sunkaddr = getelementptr i8, ptr addrspace(3) %in, i32 28
%val = call i32 @llvm.amdgcn.ds.append.p3(ptr addrspace(3) %sunkaddr, i1 false)
; after: the call keeps using %in.gep
[5 lines not shown]
[IR] Remove unused PreservedAnalyses::AllAnalysesKey (NFC) (#246512)
The last readers were removed on November 16, 2026 in commit
e46986d56fa367465d141d005eae8a9a4ce1c29a. This patch also removes the
write-only insertion into PreservedIDs in PreservedAnalyses::all.
Assisted-by: Antigravity
print/auctex: Update to 14.2.0
- Switch MASTER_SITES to elpa.gnu.org [0] and replace the autotools
build with a plain install of the package tree under
share/emacs/site-lisp/auctex. Also generate the autoloads file at
build time.
- The preview-latex style files are no longer installed into the texmf
tree. preview.el finds them in the package directory and adds it to
TEXINPUTS at run time. The info manuals and tex-ref.pdf are shipped
prebuilt, so gmake and the TeX build dependency are no longer
required.
- Replace the pkg-message with an upgrade notice telling users to remove
the old load lines from their init file. Nothing is needed there now,
because the site default.el loads the autoloads, which in turn load
tex-site.
- Refresh pkg-descr from upstream's README.
[9 lines not shown]
dns/ddclient: add request timeout to Cloudflare (#5977)
Without a timeout, a connection that drops during an update blocks
the daemon in read() forever and no account is updated again until
the service is restarted.
Use 15 seconds, the timeout the legacy dyndns plugin used for all
providers.
Co-authored-by: Patrick Monfette <13983955+RedVortex at users.noreply.github.com>
bcm2835_fbd: Use the pixel order to choose the 32 bpp palette
Recent Raspberry Pi firmware acts on the pixel order requested through
the mailbox, which older firmware ignored. The order that ends up in
the framebuffer is the requested one combined with framebuffer_swap in
config.txt: when they are the same the red component is in bits 0-7 of
a 32 bpp pixel, when they differ it is in bits 16-23. framebuffer_swap
defaults to on and the firmware reports it as bcm2708_fb.fbswap=1 in
the bootargs.
U-Boot always requests RGB, so with the default config.txt the pixels
have red in bits 0-7. The driver however always configured vt(4) with
red in bits 16-23 for 32 bpp, so red and blue were swapped on the
console.
The firmware does not report the resulting order, only the requested
one, so read the pixel order with GET_PIXEL_ORDER and combine it with
fbswap. If the pixel order cannot be read the previous behavior is
kept. The 24 bpp case is unchanged.
[6 lines not shown]
[mlir][test] Add <arch>-registered-target lit features (#245526)
Align with LLVM, Clang, and Flang's test suites by defining
"<arch>-registered-target" lit features from the LLVM targets that were
built, so tests can require a specific backend. This replaces the
currently manually defined host-supports-* features.
Assisted-by: Claude Sonnet 5.5
[RISCV] Add Codegen support for ACLIC (#238325)
This commit adds support for the `preemptible` and `push-pop` interrupt
kinds from the RISC-V Advanced Core-Local Interrupt Controller (ACLIC)
fast interrupt extensions.
AI Usage: GPT 5.6 Sol/6/6.2 Astra, Opus 5/5.5, Fable 5.1/5.2 and Gemini
Neon were used for pre-commit self-reviewing.
[SandboxVec][LoadStoreVec] Vectorize store chains whose loads have external uses
Loads that feed a store chain used to block vectorization whenever they
had more than one use. The store chain can now be vectorized even if the
loads have external uses. Once the scalar stores are erased, each
original load is rebuilt from the lanes it occupies in the new vector
load, and reinterpreted back to its original type if needed.
The legality check, canUnpack(), runs before any IR is created, so a load
whose lanes cannot be reinterpreted (for example, a non-integral pointer)
rejects the whole chain instead of leaving a partially rewritten block.
The unpacking itself is done by unpackIfNeeded() after the scalar stores
have been removed.
Update the store_seeds.ll and mixed_types.ll checks to match the new
output.
Co-authored-by: Cursor <cursoragent at cursor.com>
arm64: Reject user-mode faults on kernel addresses
On a CPU without FEAT_E0PD, a user-mode store to a mapped kernel
address takes a permission fault, which data_abort() passes to
pmap_fault() with the process's pmap. pmap_pte() then finds the user
mapping whose address has the same low-order bits. If that mapping is
writable, pmap_fault() marks it dirty, although nothing wrote it, and
returns KERN_SUCCESS. The store is retried and faults again, so the
thread spins instead of receiving SIGSEGV. Access flag faults, which
loads also take, have the same flaw when a kernel mapping lacks
ATTR_AF.
Like amd64's trap_pfault(), send SIGSEGV for a user-mode fault in the
kernel address space without calling pmap_fault() or vm_fault_trap().
Also, in pmap_fault(), assert that a kernel address comes with the
kernel pmap and a user address with a user pmap.
Found by: Claude Code (Opus 5.5)
[3 lines not shown]
arm64: Reject user-mode faults on kernel addresses
On a CPU without FEAT_E0PD, a user-mode store to a mapped kernel
address takes a permission fault, which data_abort() passes to
pmap_fault() with the process's pmap. pmap_pte() then finds the user
mapping whose address has the same low-order bits. If that mapping is
writable, pmap_fault() marks it dirty, although nothing wrote it, and
returns KERN_SUCCESS. The store is retried and faults again, so the
thread spins instead of receiving SIGSEGV. Access flag faults, which
loads also take, have the same flaw when a kernel mapping lacks
ATTR_AF.
Like amd64's trap_pfault(), send SIGSEGV for a user-mode fault in the
kernel address space without calling pmap_fault() or vm_fault_trap().
Also, in pmap_fault(), assert that a kernel address comes with the
kernel pmap and a user address with a user pmap.
Found by: Claude Code (Opus 5.5)
[3 lines not shown]
graphics/ect: New port
Efficient Compression Tool (ECT) is a file optimizer that losslessly
reduces the size of PNG, JPEG, gzip and ZIP files. It combines a
modified zopfli deflate encoder, optipng-style PNG filter selection
and mozjpeg-based JPEG optimization.
Upstream unconditionally builds x86 with SSSE3, SSE4.2 and PCLMUL
without runtime dispatch; this is now gated behind the SIMD option
(off by default) so packages run on baseline amd64 CPUs.
WWW: https://github.com/fhanau/Efficient-Compression-Tool
graphics/ect: New port
Efficient Compression Tool (ECT) is a file optimizer that losslessly
reduces the size of PNG, JPEG, gzip and ZIP files. It combines a
modified zopfli deflate encoder, optipng-style PNG filter selection
and mozjpeg-based JPEG optimization.
Upstream unconditionally builds x86 with SSSE3, SSE4.2 and PCLMUL
without runtime dispatch; this is now gated behind the SIMD option
(off by default) so packages run on baseline amd64 CPUs.
WWW: https://github.com/fhanau/Efficient-Compression-Tool
archivers/plzip: Fix decompression from stdin
Decompressing from a pipe or stdin always failed with "Not enough
memory." without reading any input.
clang (seen with 19 and 20) constant-folds the result of
'new (std::nothrow) uint8_t[N]' to a null pointer when the result
is stored in a const pointer and N is a constant larger than the
-fconstexpr-steps limit (default 2^20). The splitter buffer in
dec_stream.cc is 2^20 + 30 bytes, so the compiled splitter thread
unconditionally took the out-of-memory path. GCC is not affected,
which is why upstream could not reproduce this on GNU/Linux.
As a temporary workaround until clang is fixed, drop 'const' from
the pointer, which prevents the folding. Raising -fconstexpr-steps
would also work but depends on the compiler and on the buffer size,
so it was not used.
PR: 301139