public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/grte] For now, disable asm definitions of mempcpy and strpcpy
@ 2021-08-27 23:21 Fangrui Song
  0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-27 23:21 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2224a3d98d3b25892450c1178eb24dc694cbd3d1

commit 2224a3d98d3b25892450c1178eb24dc694cbd3d1
Author: Stan Shebs <stanshebs@google.com>
Date:   Tue Jan 23 09:36:14 2018 -0800

    For now, disable asm definitions of mempcpy and strpcpy

Diff:
---
 include/string.h | 2 ++
 1 file changed, 2 insertions(+)

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,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-27 23:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 23:21 [glibc/maskray/grte] For now, disable asm definitions of mempcpy and strpcpy Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).