[PATCH] x86: Avoid vector/r16-r31 registers and memcpy/memset in mcount_internal

Andreas K. Huettel dilfridge@gentoo.org
Tue Jul 8 09:42:32 GMT 2025


OK with review, thanks.

The impact of -mgeneral-regs-only -mno-apxf is kind of obvious.

Does -fno-tree-loop-distribute-patterns also impact the register selection or is this
a subsequent higher level optimization?


Am Dienstag, 8. Juli 2025, 02:08:54 Mitteleuropäische Sommerzeit schrieb H.J. Lu:
> Since mcount_internal is called from mcount/__fentry__ which preserve
> only RAX, RCX, RDX, RSI, RDI, R8 and R9, compile mcount.c with
> 
> -fno-tree-loop-distribute-patterns -mgeneral-regs-only -mno-apxf
> 
> to void vector/r16-r31 registers and memcpy/memset in mcount_internal.
> This fixes BZ #33134.
> 
> 
> 


-- 
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, toolchain, base-system, perl, libreoffice)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 981 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250708/86c1a2bb/attachment.sig>


More information about the Libc-alpha mailing list