public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] Let time and gettimeofday use vdso by removing old clang workaround
@ 2021-08-28 0:37 Fangrui Song
0 siblings, 0 replies; 2+ messages in thread
From: Fangrui Song @ 2021-08-28 0:37 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d548adb4ef75dfc9bc1838f46f6c67f11e09906e
commit d548adb4ef75dfc9bc1838f46f6c67f11e09906e
Author: Stan Shebs <stanshebs@google.com>
Date: Tue Oct 6 13:08:18 2020 -0700
Let time and gettimeofday use vdso by removing old clang workaround
Diff:
---
sysdeps/unix/sysv/linux/x86/gettimeofday.c | 3 +--
sysdeps/unix/sysv/linux/x86/time.c | 7 +------
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/x86/gettimeofday.c b/sysdeps/unix/sysv/linux/x86/gettimeofday.c
index 614971bffb..e125859c1a 100644
--- a/sysdeps/unix/sysv/linux/x86/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/x86/gettimeofday.c
@@ -18,8 +18,7 @@
#include <sys/time.h>
-/* Clang ifunc support works, but differently enough that this code breaks. */
-#if defined(SHARED) && !defined(__clang__)
+#ifdef SHARED
# include <dl-vdso.h>
# include <errno.h>
diff --git a/sysdeps/unix/sysv/linux/x86/time.c b/sysdeps/unix/sysv/linux/x86/time.c
index 8992656bad..d19cccd6f6 100644
--- a/sysdeps/unix/sysv/linux/x86/time.c
+++ b/sysdeps/unix/sysv/linux/x86/time.c
@@ -18,8 +18,7 @@
#include <time.h>
-/* Clang ifunc support works, but differently enough that this code breaks. */
-#if defined(SHARED) && !defined(__clang__)
+#ifdef SHARED
#include <dl-vdso.h>
#include <errno.h>
@@ -58,7 +57,3 @@ time (time_t *t)
}
#endif
-
-#if defined(__clang__)
-libc_hidden_weak (time)
-#endif
^ permalink raw reply [flat|nested] 2+ messages in thread
* [glibc/google/grte/v5-2.27/master] Let time and gettimeofday use vdso by removing old clang workaround
@ 2020-10-06 20:08 Stan Shebs
0 siblings, 0 replies; 2+ messages in thread
From: Stan Shebs @ 2020-10-06 20:08 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=52de78c8f5d2d72e32140560cb4470f29617344f
commit 52de78c8f5d2d72e32140560cb4470f29617344f
Author: Stan Shebs <stanshebs@google.com>
Date: Tue Oct 6 13:08:18 2020 -0700
Let time and gettimeofday use vdso by removing old clang workaround
Diff:
---
sysdeps/unix/sysv/linux/x86/gettimeofday.c | 3 +--
sysdeps/unix/sysv/linux/x86/time.c | 7 +------
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/x86/gettimeofday.c b/sysdeps/unix/sysv/linux/x86/gettimeofday.c
index 614971bffb..e125859c1a 100644
--- a/sysdeps/unix/sysv/linux/x86/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/x86/gettimeofday.c
@@ -18,8 +18,7 @@
#include <sys/time.h>
-/* Clang ifunc support works, but differently enough that this code breaks. */
-#if defined(SHARED) && !defined(__clang__)
+#ifdef SHARED
# include <dl-vdso.h>
# include <errno.h>
diff --git a/sysdeps/unix/sysv/linux/x86/time.c b/sysdeps/unix/sysv/linux/x86/time.c
index 8992656bad..d19cccd6f6 100644
--- a/sysdeps/unix/sysv/linux/x86/time.c
+++ b/sysdeps/unix/sysv/linux/x86/time.c
@@ -18,8 +18,7 @@
#include <time.h>
-/* Clang ifunc support works, but differently enough that this code breaks. */
-#if defined(SHARED) && !defined(__clang__)
+#ifdef SHARED
#include <dl-vdso.h>
#include <errno.h>
@@ -58,7 +57,3 @@ time (time_t *t)
}
#endif
-
-#if defined(__clang__)
-libc_hidden_weak (time)
-#endif
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-28 0:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28 0:37 [glibc/google/grte/v5-2.27/master] Let time and gettimeofday use vdso by removing old clang workaround Fangrui Song
-- strict thread matches above, loose matches on Subject: below --
2020-10-06 20:08 Stan Shebs
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).