From 52412049809da45dccba9f6e8d98d61ec7c024a2 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 14 Jan 2006 12:32:50 +0000 Subject: * sysdeps/unix/sysv/linux/sparc/sparc32/nldbl-abi.h: New file. * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: #include to define LONG_DOUBLE_COMPAT_VERSION. Use that in place of NLDBL_VERSION. * sysdeps/ieee754/ldbl-opt/Versions: Include . * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Revert last change. --- ChangeLog | 9 +++++++++ sysdeps/ieee754/ldbl-opt/Versions | 3 ++- sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h | 9 +++++---- sysdeps/unix/sysv/linux/sparc/sparc32/Versions | 5 ----- sysdeps/unix/sysv/linux/sparc/sparc32/nldbl-abi.h | 8 ++++++++ 5 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 sysdeps/unix/sysv/linux/sparc/sparc32/nldbl-abi.h diff --git a/ChangeLog b/ChangeLog index 04e51a1ddb..b22df2716e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-01-14 Roland McGrath + + * sysdeps/unix/sysv/linux/sparc/sparc32/nldbl-abi.h: New file. + * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: #include + to define LONG_DOUBLE_COMPAT_VERSION. Use that in place of + NLDBL_VERSION. + * sysdeps/ieee754/ldbl-opt/Versions: Include . + * sysdeps/unix/sysv/linux/sparc/sparc32/Versions: Revert last change. + 2006-01-14 Jakub Jelinek * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New diff --git a/sysdeps/ieee754/ldbl-opt/Versions b/sysdeps/ieee754/ldbl-opt/Versions index 337db192d6..d22b18ec89 100644 --- a/sysdeps/ieee754/ldbl-opt/Versions +++ b/sysdeps/ieee754/ldbl-opt/Versions @@ -1,5 +1,6 @@ +%include %ifndef NLDBL_VERSION -% error "CPU-specific sysdeps/.../Version file must %define NLDBL_VERSION" +% error "nldbl-abi.h must define NLDBL_VERSION" %endif libc { diff --git a/sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h b/sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h index c37ed861dc..d6f0214991 100644 --- a/sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h +++ b/sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h @@ -1,16 +1,17 @@ /* -mlong-double-64 compatibility mode macros. */ -#ifndef NLDBL_VERSION -# define NLDBL_VERSION GLIBC_2_4 +#include +#ifndef LONG_DOUBLE_COMPAT_VERSION +# error "nldbl-abi.h must define LONG_DOUBLE_COMPAT_VERSION" #endif #include #include #include #define LONG_DOUBLE_COMPAT(lib, introduced) \ - SHLIB_COMPAT(lib, introduced, NLDBL_VERSION) + SHLIB_COMPAT(lib, introduced, LONG_DOUBLE_COMPAT_VERSION) #define long_double_symbol(lib, local, symbol) \ - long_double_symbol_1 (lib, local, symbol, NLDBL_VERSION) + long_double_symbol_1 (lib, local, symbol, LONG_DOUBLE_COMPAT_VERSION) #if defined HAVE_ELF && defined SHARED && defined DO_VERSIONING # define ldbl_hidden_def(local, name) libc_hidden_ver (local, name) # define ldbl_strong_alias(name, aliasname) \ diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/Versions b/sysdeps/unix/sysv/linux/sparc/sparc32/Versions index 99458e85a7..c585af3602 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/Versions +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/Versions @@ -21,8 +21,3 @@ libc { posix_fadvise64; posix_fallocate64; } } - -/* This is used by sysdeps/ieee754/ldbl-opt/Versions. It gives the - ABI version where long double == double was replaced with proper - long double for libm *l functions and libc functions using long double. */ -%define NLDBL_VERSION GLIBC_2.4 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/nldbl-abi.h b/sysdeps/unix/sysv/linux/sparc/sparc32/nldbl-abi.h new file mode 100644 index 0000000000..bd985cc59c --- /dev/null +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/nldbl-abi.h @@ -0,0 +1,8 @@ +/* ABI version for long double switch. + This is used by the Versions and math_ldbl_opt.h files in + sysdeps/ieee754/ldbl-opt/. It gives the ABI version where + long double == double was replaced with proper long double + for libm *l functions and libc functions using long double. */ + +#define NLDBL_VERSION GLIBC_2.4 +#define LONG_DOUBLE_COMPAT_VERSION GLIBC_2_4 -- cgit 1.4.1