diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-10-30 14:11:54 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-10-30 14:11:54 -0400 |
commit | d44a6f8b9995932b20a2ebbf4ca2fb1be673e49d (patch) | |
tree | 1b150c86b0f60a55dca1dfd3305079b2dfb10b5f | |
parent | 5ff3789785b2a6ef90754b9bec6aaff65b2fa9db (diff) | |
download | glibc-d44a6f8b9995932b20a2ebbf4ca2fb1be673e49d.tar.gz glibc-d44a6f8b9995932b20a2ebbf4ca2fb1be673e49d.tar.xz glibc-d44a6f8b9995932b20a2ebbf4ca2fb1be673e49d.zip |
tile: improve ABI and #include use in gettimeofday vdso support
-rw-r--r-- | ports/ChangeLog.tile | 4 | ||||
-rw-r--r-- | ports/sysdeps/unix/sysv/linux/tile/gettimeofday.c | 5 | ||||
-rw-r--r-- | ports/sysdeps/unix/sysv/linux/tile/init-first.c | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/ports/ChangeLog.tile b/ports/ChangeLog.tile index 8a6cb68d47..63ca021a5c 100644 --- a/ports/ChangeLog.tile +++ b/ports/ChangeLog.tile @@ -1,5 +1,9 @@ 2012-10-30 Chris Metcalf <cmetcalf@tilera.com> + * sysdeps/unix/sysv/linux/tile/init-first.c: Use better #include. + * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Use gettimeofday + aliases that match existing tile ABI. + * sysdeps/tile/libm-test-ulps: Account for new tests. 2012-10-26 Chris Metcalf <cmetcalf@tilera.com> diff --git a/ports/sysdeps/unix/sysv/linux/tile/gettimeofday.c b/ports/sysdeps/unix/sysv/linux/tile/gettimeofday.c index e2bcc45018..92136d54b6 100644 --- a/ports/sysdeps/unix/sysv/linux/tile/gettimeofday.c +++ b/ports/sysdeps/unix/sysv/linux/tile/gettimeofday.c @@ -19,8 +19,6 @@ #include <stddef.h> #include <sys/time.h> #include <time.h> - -#undef __gettimeofday #include <bits/libc-vdso.h> int @@ -34,5 +32,6 @@ __gettimeofday (struct timeval *tv, struct timezone *tz) return INLINE_SYSCALL (gettimeofday, 2, tv, tz); } -strong_alias (__gettimeofday, __gettimeofday_internal) +libc_hidden_def (__gettimeofday) weak_alias (__gettimeofday, gettimeofday) +libc_hidden_weak (gettimeofday) diff --git a/ports/sysdeps/unix/sysv/linux/tile/init-first.c b/ports/sysdeps/unix/sysv/linux/tile/init-first.c index 58b6533c0f..9ff63c1d18 100644 --- a/ports/sysdeps/unix/sysv/linux/tile/init-first.c +++ b/ports/sysdeps/unix/sysv/linux/tile/init-first.c @@ -31,4 +31,4 @@ _libc_vdso_platform_setup (void) #define VDSO_SETUP _libc_vdso_platform_setup #endif -#include "../init-first.c" +#include <csu/init-first.c> |