about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2018-01-23 09:36:14 -0800
committerStan Shebs <stanshebs@google.com>2018-01-24 16:03:40 -0800
commiteb218d6b8ba4c32b61c02929ed1fd39f925fd176 (patch)
treeea016104ce5ccfca15542d80eb3cdfb3ba884664
parent74926dde57d052737e2e2561b4e7fed5d0fe712f (diff)
downloadglibc-eb218d6b8ba4c32b61c02929ed1fd39f925fd176.tar.gz
glibc-eb218d6b8ba4c32b61c02929ed1fd39f925fd176.tar.xz
glibc-eb218d6b8ba4c32b61c02929ed1fd39f925fd176.zip
For now, disable asm definitions of mempcpy and strpcpy
-rw-r--r--include/string.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h
index bb4922cbbe..8eb9544169 100644
--- a/include/string.h
+++ b/include/string.h
@@ -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,