This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] alpha: fix fegetenv namespace
- From: Aurelien Jarno <aurelien at aurel32 dot net>
- To: libc-alpha at sourceware dot org
- Cc: Richard Henderson <rth at twiddle dot net>, Aurelien Jarno <aurelien at aurel32 dot net>
- Date: Mon, 7 Dec 2015 21:30:34 +0100
- Subject: [PATCH] alpha: fix fegetenv namespace
- Authentication-results: sourceware.org; auth=none
This fixes a namespace issue for <math.h> functions for alpha.
---
ChangeLog | 5 +++++
sysdeps/alpha/fpu/feholdexcpt.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 7be1eb1..815a300 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-12-07 Aurelien Jarno <aurelien@aurel32.net>
+ * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
+ instead of fegetenv.
+
+2015-12-07 Aurelien Jarno <aurelien@aurel32.net>
+
* sysdeps/unix/sysv/linux/alpha/bits/termios.h (IXANY, IUCLC,
IMAXBEL, IUTF8): Make always visible since they're needed by POSIX.
(NL2, NL3): Guard BSD terminal modes definitions with [__USE_MISC].
diff --git a/sysdeps/alpha/fpu/feholdexcpt.c b/sysdeps/alpha/fpu/feholdexcpt.c
index d226046..d54fa7d 100644
--- a/sysdeps/alpha/fpu/feholdexcpt.c
+++ b/sysdeps/alpha/fpu/feholdexcpt.c
@@ -23,7 +23,7 @@ int
__feholdexcept (fenv_t *envp)
{
/* Save the current state. */
- fegetenv(envp);
+ __fegetenv(envp);
/* Clear all exception status bits and exception enable bits. */
__ieee_set_fp_control(*envp & SWCR_MAP_MASK);
--
2.6.2