]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
For now, disable asm definitions of mempcpy and strpcpy
authorStan Shebs <stanshebs@google.com>
Tue, 23 Jan 2018 17:36:14 +0000 (09:36 -0800)
committerStan Shebs <stanshebs@google.com>
Thu, 25 Jan 2018 00:03:40 +0000 (16:03 -0800)
include/string.h

index bb4922cbbe65dd438059106d2ce69508d201e16e..8eb9544169ed81040256177887b3b2a252e39f40 100644 (file)
@@ -163,6 +163,7 @@ extern __typeof (strnlen) strnlen attribute_hidden;
 extern __typeof (strsep) strsep attribute_hidden;
 #endif
 
+#ifndef __clang__
 #if (!IS_IN (libc) || !defined SHARED) \
   && !defined NO_MEMPCPY_STPCPY_REDIRECT
 /* Redirect calls to __builtin_mempcpy and __builtin_stpcpy to call
@@ -170,6 +171,7 @@ extern __typeof (strsep) strsep attribute_hidden;
 extern __typeof (mempcpy) mempcpy __asm__ ("__mempcpy");
 extern __typeof (stpcpy) stpcpy __asm__ ("__stpcpy");
 #endif
+#endif
 
 extern void *__memcpy_chk (void *__restrict __dest,
                           const void *__restrict __src, size_t __len,