From d44a6f8b9995932b20a2ebbf4ca2fb1be673e49d Mon Sep 17 00:00:00 2001 From: Chris Metcalf Date: Tue, 30 Oct 2012 14:11:54 -0400 Subject: tile: improve ABI and #include use in gettimeofday vdso support --- ports/ChangeLog.tile | 4 ++++ ports/sysdeps/unix/sysv/linux/tile/gettimeofday.c | 5 ++--- ports/sysdeps/unix/sysv/linux/tile/init-first.c | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) (limited to 'ports') diff --git a/ports/ChangeLog.tile b/ports/ChangeLog.tile index 8a6cb68..63ca021 100644 --- a/ports/ChangeLog.tile +++ b/ports/ChangeLog.tile @@ -1,5 +1,9 @@ 2012-10-30 Chris Metcalf + * 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 diff --git a/ports/sysdeps/unix/sysv/linux/tile/gettimeofday.c b/ports/sysdeps/unix/sysv/linux/tile/gettimeofday.c index e2bcc45..92136d5 100644 --- a/ports/sysdeps/unix/sysv/linux/tile/gettimeofday.c +++ b/ports/sysdeps/unix/sysv/linux/tile/gettimeofday.c @@ -19,8 +19,6 @@ #include #include #include - -#undef __gettimeofday #include 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 58b6533..9ff63c1 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 -- cgit v1.1