Patchwork alpha: fix fegetenv namespace

login
register
mail settings
Submitter Aurelien Jarno
Date Dec. 7, 2015, 8:30 p.m.
Message ID <1449520234-7438-1-git-send-email-aurelien@aurel32.net>
Download mbox | patch
Permalink /patch/9927/
State New
Delegated to: Richard Henderson
Headers show

Comments

Aurelien Jarno - Dec. 7, 2015, 8:30 p.m.
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(-)
Mike Frysinger - Dec. 29, 2015, 5:54 p.m.
On 07 Dec 2015 21:30, Aurelien Jarno wrote:
> This fixes a namespace issue for <math.h> functions for alpha.

looks obvious to me :)
-mike

Patch

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);