aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-01-14 21:35:40 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-01-14 21:35:40 +0000
commit53fbd16918791258ebc1684b1a1afd543b814780 (patch)
tree2ec9c5d3e90eca49321771f0682f106bf6f82370
parentd639a36345dfce12cbb69e254e8d2f32e5da9ed9 (diff)
downloadglibc-53fbd16918791258ebc1684b1a1afd543b814780.tar
glibc-53fbd16918791258ebc1684b1a1afd543b814780.tar.gz
glibc-53fbd16918791258ebc1684b1a1afd543b814780.tar.bz2
glibc-53fbd16918791258ebc1684b1a1afd543b814780.zip
Fix powerpc-nofpu fesetenv namespace (bug 17748).
When fixing namespace issues for <fenv.h> 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.
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/powerpc/nofpu/feholdexcpt.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 33e232c5b8..a410620b38 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-01-14 Joseph Myers <joseph@codesourcery.com>
+
+ [BZ #17748]
+ * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
+ __fesetenv instead of fesetenv.
+
2015-01-14 Siddhesh Poyarekar <siddhesh@redhat.com>
* 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 5bb18a82a9..a3d0121680 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;
}