From 53fbd16918791258ebc1684b1a1afd543b814780 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 14 Jan 2015 21:35:40 +0000 Subject: [PATCH] Fix powerpc-nofpu fesetenv namespace (bug 17748). When fixing namespace issues for functions I missed one call to fesetenv for powerpc-nofpu. This patch changes this to a call to __fesetenv. Tested for powerpc-nofpu; it fixes the previously observed math.h linknamespace test failures. [BZ #17748] * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call __fesetenv instead of fesetenv. --- ChangeLog | 6 ++++++ sysdeps/powerpc/nofpu/feholdexcpt.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 33e232c..a410620 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-01-14 Joseph Myers + + [BZ #17748] + * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call + __fesetenv instead of fesetenv. + 2015-01-14 Siddhesh Poyarekar * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr diff --git a/sysdeps/powerpc/nofpu/feholdexcpt.c b/sysdeps/powerpc/nofpu/feholdexcpt.c index 5bb18a8..a3d0121 100644 --- a/sysdeps/powerpc/nofpu/feholdexcpt.c +++ b/sysdeps/powerpc/nofpu/feholdexcpt.c @@ -36,7 +36,7 @@ __feholdexcept (fenv_t *envp) u.l[1] = FE_ALL_EXCEPT; /* Put the new state in effect. */ - fesetenv (&u.fenv); + __fesetenv (&u.fenv); return 0; } -- 2.7.4