about summary refs log tree commit diff
path: root/sysdeps/ieee754/ldbl-opt
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-01-19 07:29:08 +0000
committerRoland McGrath <roland@gnu.org>2006-01-19 07:29:08 +0000
commit04a8a3c10ad6aa8c2331794dbc572c3c8575b09c (patch)
treeb05582b48b38ed7a07fc276a62b6eb5f3d8bccc5 /sysdeps/ieee754/ldbl-opt
parent536d1a8d50074cf54da2a1f28caa93e62f041983 (diff)
downloadglibc-04a8a3c10ad6aa8c2331794dbc572c3c8575b09c.tar.gz
glibc-04a8a3c10ad6aa8c2331794dbc572c3c8575b09c.tar.xz
glibc-04a8a3c10ad6aa8c2331794dbc572c3c8575b09c.zip
2006-01-18 Roland McGrath <roland@redhat.com>
	* sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h [__ASSEMBLER__]: Don't
	include problematic headers for assembler.
Diffstat (limited to 'sysdeps/ieee754/ldbl-opt')
-rw-r--r--sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h b/sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
index d6f0214991..bba00c1565 100644
--- a/sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
+++ b/sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
@@ -5,8 +5,6 @@
 # error "nldbl-abi.h must define LONG_DOUBLE_COMPAT_VERSION"
 #endif
 
-#include <math.h>
-#include <math/math_private.h>
 #include <shlib-compat.h>
 #define LONG_DOUBLE_COMPAT(lib, introduced) \
   SHLIB_COMPAT(lib, introduced, LONG_DOUBLE_COMPAT_VERSION)
@@ -29,7 +27,7 @@
 /* Note that weak_alias cannot be used - it is defined to nothing
    in most of the files.  */
 # define long_double_symbol_1(lib, local, symbol, version) \
-  _weak_alias (local, symbol)
+  weak_alias (local, symbol)
 #else
 # define ldbl_hidden_def(local, name) libc_hidden_def (name)
 # define ldbl_strong_alias(name, aliasname) strong_alias (name, aliasname)
@@ -38,7 +36,12 @@
   strong_alias (local, symbol)
 #endif
 
+#ifndef __ASSEMBLER__
+# include <math.h>
+# include <math/math_private.h>
+
 /* Set temporarily to non-zero if long double should be considered
    the same as double.  */
 extern __thread int __no_long_double attribute_tls_model_ie attribute_hidden;
-#define __ldbl_is_dbl __builtin_expect (__no_long_double, 0)
+# define __ldbl_is_dbl __builtin_expect (__no_long_double, 0)
+#endif