[PATCH 1/2] LoongArch: Fix ptr mangling/demangling features.

Xi Ruoyao xry111@xry111.site
Thu Aug 25 15:27:55 GMT 2022


On Thu, 2022-08-25 at 12:08 -0300, Adhemerval Zanella Netto wrote:
> Does is really pay off the complexity to use HAVE_LOONGARCH_EXPLICIT_RELOCS? The
> PTR_MANGLE is used some specific cases and hardly a hotstop.

LDST_PCREL added as a macro in sysdep.h, so further assembly
implementations might reuse it then it may appear in some hot spot.

If we quote "optimization too early is the ultimate evil", we can drop
it for now and review once we use LDST_PCREL somewhere else. But to me
this is rather a simple autoconf check and I can't figure out a
situation where it's evil...
-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University


More information about the Libc-alpha mailing list