public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/grte] Let time and gettimeofday use vdso by removing old clang workaround
@ 2021-08-28  0:29 Fangrui Song
  0 siblings, 0 replies; 3+ messages in thread
From: Fangrui Song @ 2021-08-28  0:29 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6e1fd2c4f863892439b7b16dff230dbf0f62f65c

commit 6e1fd2c4f863892439b7b16dff230dbf0f62f65c
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] 3+ messages in thread

* [glibc/maskray/grte] Let time and gettimeofday use vdso by removing old clang workaround
@ 2021-08-28  0:33 Fangrui Song
  0 siblings, 0 replies; 3+ messages in thread
From: Fangrui Song @ 2021-08-28  0:33 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] 3+ messages in thread

* [glibc/maskray/grte] Let time and gettimeofday use vdso by removing old clang workaround
@ 2021-08-27 23:46 Fangrui Song
  0 siblings, 0 replies; 3+ messages in thread
From: Fangrui Song @ 2021-08-27 23:46 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7722aa3b1018811bb3ef69aa7f60ba41b6d922f4

commit 7722aa3b1018811bb3ef69aa7f60ba41b6d922f4
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] 3+ messages in thread

end of thread, other threads:[~2021-08-28  0:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28  0:29 [glibc/maskray/grte] Let time and gettimeofday use vdso by removing old clang workaround Fangrui Song
  -- strict thread matches above, loose matches on Subject: below --
2021-08-28  0:33 Fangrui Song
2021-08-27 23:46 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).