This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2.25] powerpc: Avoid calling strncmp via PLT on GCC 7


Florian Weimer <fw@deneb.enyo.de> writes:

> [ text/plain ]
> * Tulio Magno Quites Machado Filho:
>
>> +/* GCC 7.0 added support for a builtin strncmp that is used on POWER >= 7.  */
>> +#if !defined __ASSEMBLER__ && IS_IN (libc) && defined SHARED \
>> +    && defined _ARCH_PWR7
>> +asm ("strncmp = __GI_strncmp");
>> +#endif
>
> Would it be safe to do this unconditionally, in the generic header?

Do you mean without _ARCH_PWR7?
If so, I think that's possible and in the generic header.

If this issue won't be fixed in GCC, I'll make that change here.

-- 
Tulio Magno


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]