Libgloss build issue with GCC16 for arc target
Nik Spaun
spaun2002mobile@gmail.com
Mon May 4 20:58:36 GMT 2026
Hello,
The crosstool-ng project is adding GCC16 support and has encountered an issue with the newlib build for the arc target (arc-multilib-elf32).
The problem is the generated assembly instructions:
GCC 16 can compile the hostlink buffer copy in _hl_pack_ptr into an ARC uncached byte store with a register-indexed address:
stb.di r2,[r13,r1]
binutils rejects that instruction for ARC EM/HS targets, breaking the
arc-multilib-elf32 build while compiling libgloss/arc/hl/hl_api.c.
The attached patch fixes the issue, but I'm not sure if it's the best solution.
The failing crosstool-ng CI job is here https://github.com/crosstool-ng/crosstool-ng/actions/runs/25193796890/job/74152179593?pr=2502
WBR,
Nik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/newlib/attachments/20260504/2a4b3369/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgloss_gcc16.patch
Type: application/octet-stream
Size: 1667 bytes
Desc: libgloss_gcc16.patch
URL: <https://sourceware.org/pipermail/newlib/attachments/20260504/2a4b3369/attachment.obj>
More information about the Newlib
mailing list