This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3 3/9] s390: Refactor ifunc resolvers due to false debuginfo.
On 08/24/2016 04:04 PM, Stefan Liebler wrote:
#if defined SHARED && IS_IN (libc)
+# define mempcpy __redirect_mempcpy
+# define __mempcpy __redirect___mempcpy
+/* Omit the mempcpy inline definitions because it would redefine mempcpy. */
+# define _HAVE_STRING_ARCH_mempcpy 1
+# include <string.h>
+# undef mempcpy
+# undef __mempcpy
# include <ifunc-resolve.h>
The long-term maintainability of such #define trickery still concerns
me. What would be needed to avoid that?
(This obviously shouldn't be part of this patch sequence, I'm just curious.)
Thanks,
Florian