]> sourceware.org Git - glibc.git/commitdiff
Fix fallout from bits/string.h removal.
authorZack Weinberg <zackw@panix.com>
Tue, 20 Jun 2017 13:39:08 +0000 (09:39 -0400)
committerZack Weinberg <zackw@panix.com>
Tue, 20 Jun 2017 13:39:08 +0000 (09:39 -0400)
Remove one more string inline that was defined directly in string.h;
in the absence of the rest of the inlines, it broke the build.

Like other ifunc shims for these functions,
x86_64/multiarch/{mem,st}pcpy.c need to define __NO_STRING_INLINES and
NO_MEMPCPY_STPCPY_REDIRECT.

* string/string.h (__mempcpy_inline): Delete.
* sysdeps/x86_64/multiarch/mempcpy.c
* sysdeps/x86_64/multiarch/stpcpy.c:
Define NO_MEMPCPY_STPCPY_REDIRECT and __NO_STRING_INLINES
before including string.h.

ChangeLog
string/string.h
sysdeps/x86_64/multiarch/mempcpy.c
sysdeps/x86_64/multiarch/stpcpy.c

index d33157eaef94c44fd157222a08f04cfc0fc64202..2d81375287f4731e5b5ab1f1f47f37007be61ac3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-06-20  Zack Weinberg  <zackw@panix.com>
+
+       * string/string.h (__mempcpy_inline): Delete.
+       * sysdeps/x86_64/multiarch/mempcpy.c
+       * sysdeps/x86_64/multiarch/stpcpy.c:
+       Define NO_MEMPCPY_STPCPY_REDIRECT and __NO_STRING_INLINES
+       before including string.h.
+
 2017-06-20  Paul A. Clarke  <pc@us.ibm.com>
 
        * benchtests/Makefile (bench-math): Add powf.
index 3b68579c2e4825c33d92250ca4cde5e8954e0664..5aec0efe7f9b5f028d88d99fff2ac3c755c0ff67 100644 (file)
@@ -494,23 +494,6 @@ extern char *basename (const char *__filename) __THROW __nonnull ((1));
 # endif
 #endif
 
-#if defined __USE_GNU && defined __OPTIMIZE__ \
-    && defined __extern_always_inline && __GNUC_PREREQ (3,2)
-# if !defined _FORCE_INLINES && !defined _HAVE_STRING_ARCH_mempcpy
-
-#define mempcpy(dest, src, n) __mempcpy_inline (dest, src, n)
-#define __mempcpy(dest, src, n) __mempcpy_inline (dest, src, n)
-
-__extern_always_inline void *
-__mempcpy_inline (void *__restrict __dest,
-                 const void *__restrict __src, size_t __n)
-{
-  return (char *) memcpy (__dest, __src, __n) + __n;
-}
-
-# endif
-#endif
-
 __END_DECLS
 
 #endif /* string.h  */
index f6e9b8acc03b73533dcf6087ea3bbf015b9522d9..e627b0082c41179119631794f21fe0bccdd505a9 100644 (file)
@@ -23,6 +23,8 @@
 #if defined SHARED && IS_IN (libc)
 # define mempcpy __redirect_mempcpy
 # define __mempcpy __redirect___mempcpy
+# define NO_MEMPCPY_STPCPY_REDIRECT
+# define __NO_STRING_INLINES
 # include <string.h>
 # undef mempcpy
 # undef __mempcpy
index 7043584ba8558fa57f6a4fe775cf5020ab9b55b1..b66237e29b6734582fac4523b597ec401198c752 100644 (file)
@@ -22,6 +22,8 @@
 # define _HAVE_STRING_ARCH_stpcpy 1
 # define stpcpy __redirect_stpcpy
 # define __stpcpy __redirect___stpcpy
+# define NO_MEMPCPY_STPCPY_REDIRECT
+# define __NO_STRING_INLINES
 # include <string.h>
 # undef stpcpy
 # undef __stpcpy
This page took 0.153364 seconds and 5 git commands to generate.