[Mips] Use the local GOT sequence for forward references to local symbols (#242758)
In PIC mode the la and jal macros need to know if the symbol is local
or global. The assembler made that choice while parsing, so a symbol
that is defined later in the file was always treated as global. For
O32 this gave an R_MIPS_GOT16 without the matching R_MIPS_LO16 for la,
and an R_MIPS_CALL16 against a local symbol for jal, which GNU ld
rejects. jal on N32/N64 had the same R_MIPS_CALL16 problem.
GNU as waits until the end of the file to choose. Do the same: if the
symbol is not defined yet and has no explicit binding, emit a
PseudoGOTLoadGlobal. MipsAsmBackend relaxes it to PseudoGOTLoadLocal if
the symbol ends up local, and MipsMCCodeEmitter expands both into the
real instructions.
Symbols that stay undefined or become global get the same code as
before. XGOT and -mrelax-all keep the old behavior.
cplocal.s had a jal to a local symbol defined after it, so it now
[7 lines not shown]
www/cef: fix lib/cef/cmake/cef_variables.cmake
chrome-sandbox is not installed, but it is still listed in
CEF_BINARY_FILES. And also libvulkan.so is not versioned,
and unset USE_SANDBOX.
PR: 300987
Approved by: Martin Filla
www/kiwix-tools: Restore USE_RC_SUBR
It seems that USE_RC_SUBR was mistakenly removed in 2d6db201
while files/kiwix_serve.in has been kept intact.
PR: 287703
Approved by: olce.freebsd.ports at certner.fr (maintainer timeout)
MFH: 2026Q4
(cherry picked from commit 27bc06cb92efa1b886e0e0c6c3a5a43e695c7410)
www/kiwix-tools: Restore USE_RC_SUBR
It seems that USE_RC_SUBR was mistakenly removed in 2d6db201
while files/kiwix_serve.in has been kept intact.
PR: 287703
Approved by: olce.freebsd.ports at certner.fr (maintainer timeout)
MFH: 2026Q4
[Mips] Fix MSA constant splats on big endian (#242740)
When selecting a constant BUILD_VECTOR, the splat value was computed in
big endian order on big endian targets. The result is then retyped with
COPY_TO_REGCLASS, which leaves the register as is. MSA lanes are laid
out the same way on both endians, so a v16i8 splat of
<0x11, 0x22, 0x33, 0x44, ...> was built with fill.w 0x11223344, which
puts the bytes in reverse order.
Always compute the splat value in little endian order here.
On O32 this also fixes 64-bit splats that type legalization turns into
v4i32 BUILD_VECTORs, such as <2 x i64> <i64 1, i64 1>, which were
built with the two words swapped. These now use a longer
fill.w/insert.w/splati.d sequence instead of ldi.d.
Fixes #236458
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[VPlan] Only form partial reductions from Add/Sub-like kinds. (#244935)
When forming partial reductions, the kind was never checked, which lead
to partial add reductions being formed for other linds, like
multiply reductions.
Bail out if the kind is not suported and assert at the end that we only
have supported opcodes.
Fixes a miscompile in the added test.
[OpenMP] Remove redundant check in z_Linux_asm.S (#244478)
KMP_ARCH_X86 and KMP_ARCH_PPC64 are never both set, so drop the
!KMP_ARCH_PPC64 check.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[OpenMP] Fix swapped #endif comments in z_Linux_asm.S (#244479)
The #endif comments for the !KMP_ASM_INTRINS and !KMP_MIC blocks
around the x86_64 __kmp_xchg_real32/__kmp_xchg_real64 were swapped.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[AMDGPU] Add FUNC_ALTERNATE_WAVESIZE for object linking info flag
Add an INFO_FLAGS bit that is set when a function does not use the
default wave size of its target. The default wave size is wave32 if the
target supports wave32, and wave64 otherwise.
So the bit is 0 for a function that uses the default wave size, on
every target. Today only +wavefrontsize64 on a target that supports both
wave sizes sets it. The linker knows the target, so it can get the wave
size of each function from the bit.
[AMDGPU] Add FUNC_HALF_SIMD_MODE for object linking info flag
Add an INFO_FLAGS bit that is set when a function uses half SIMD mode,
where the waves of a workgroup can use only two of the four SIMDs. Today
this is CU mode on a target that supports WGP mode. If the bit is not
set, the function uses full SIMD mode.
Full SIMD mode is the default on every target: a gfx6-gfx9 CU has four
SIMDs, gfx10 and later targets use WGP mode by default, and gfx1250 is
always full SIMD, even in CU mode. So the bit is 0 for a default compile
on every target.
[AMDGPU] Introduce ABI occupancy for object linking
This PR introduces ABI occupancy as the contract used to compile functions under
object linking. The default is the occupancy needed for a 1024 workitem
workgroup. It can be overridden for a module by the `amdgpu_abi_waves_per_eu`
module flag, replaced for a function by `amdgpu-flat-work-group-size`, or
tightened by an accepted `amdgpu-waves-per-eu` hint.
The ABI occupancy replaces the workgroup-derived minimum that an
`amdgpu-waves-per-eu` hint is validated against, so the hint can only make the
contract stricter.
The backend emits the selected occupancy in `.amdgpu.info` and uses it to
enforce the object linking register budget.
build: use a modified setup_clone() and remove setup_copy()
We clone the .git metadata now but leave the working dir to be modified.
Also remove the HEAD use since that is the default behavior. This should
still be quite fast while allowing us to modify the working tree without
fatal errors in the future.