[clang] [Clang] Honor asm labels on library functions for compiler-emitted calls (PR #244853)

Stian Halseth via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 21 05:46:35 PST 2026


shalseth wrote:

Tested on a SPARC M7 (Linux sparc64), on top of main 1ed0efd70af1 together with #244836, #244838, #244842 and #244854. clang/test/CodeGen/asm-label.c and asm-label-inline-builtins.c pass.

`__builtin_stpcpy`, `__builtin_abort` and the terminate landing pad now call `__GI_stpcpy` and `__GI_abort`, on sparc64 and in the x86_64 IR.

In a clang-built glibc, `stpcpy` and `abort` are gone from the elf/check-localplt failures.


https://github.com/llvm/llvm-project/pull/244853


More information about the cfe-commits mailing list