This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2.25] powerpc: Avoid calling strncmp via PLT on GCC 7
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: "Tulio Magno Quites Machado Filho" <tuliom at linux dot vnet dot ibm dot com>
- Cc: libc-alpha at sourceware dot org, joseph at codesourcery dot com, acsawdey at linux dot vnet dot ibm dot com, segher at kernel dot crashing dot org, siddhesh at sourceware dot org
- Date: Mon, 16 Jan 2017 22:22:27 +0100
- Subject: Re: [PATCH 2.25] powerpc: Avoid calling strncmp via PLT on GCC 7
- Authentication-results: sourceware.org; auth=none
- References: <1484573359-7879-1-git-send-email-tuliom@linux.vnet.ibm.com>
* 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?