Libgloss build issue with GCC16 for arc target
Yuriy Kolerov
Yuriy.Kolerov@synopsys.com
Sun May 24 16:56:33 GMT 2026
Hi Nik,
Please create a GitHub issue for this bug in this repository for Synopsys tools for ARC Classic:
https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain
I will take care of it. Most likely it's an issue with GCC or Binutils.
Regards,
Yuriy Kolerov
________________________________
From: Nik Spaun <spaun2002mobile@gmail.com>
Sent: Monday, May 4, 2026 21:58
To: newlib@sourceware.org <newlib@sourceware.org>
Subject: Libgloss build issue with GCC16 for arc target
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<https://urldefense.com/v3/__https://github.com/crosstool-ng/crosstool-ng/actions/runs/25193796890/job/74152179593?pr=2502__;!!A4F2R9G_pg!YMRMPmPzCSvAsZ3JtgNghDga_KqnIr3-zruGc9NC2Xq0ecGLsNEIgZcJPXRWmAzuxhadx5RKI93JvK9KxHI7iLokR-V3$>
WBR,
Nik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/newlib/attachments/20260524/f58a5c23/attachment.htm>
More information about the Newlib
mailing list