about summary refs log tree commit diff
path: root/sysdeps/s390
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2018-01-12 00:12:57 +0000
committerJoseph Myers <joseph@codesourcery.com>2018-01-12 00:12:57 +0000
commitc8924f1ff22cb78abc9bb950c3b23d8483ac7bba (patch)
treea20b011757be3a9e8bb289de1dd7e6f8fa41b220 /sysdeps/s390
parentda09e6fa2f8194fbdd82281195145aec195144dc (diff)
downloadglibc-c8924f1ff22cb78abc9bb950c3b23d8483ac7bba.tar.gz
glibc-c8924f1ff22cb78abc9bb950c3b23d8483ac7bba.tar.xz
glibc-c8924f1ff22cb78abc9bb950c3b23d8483ac7bba.zip
Fix s390 linknamespace fallout of bug 22702 patch.
My fix for bug 22702 introduced linknamespace test failures on
s390x-linux-gnu and s390-linux-gnu because it made remainder call
__feholdexcept, and the s390 __feholdexcept calls fegetenv, and
remainder is in Unix98 and XPG4.2 but fegetenv isn't.  This patch
makes __feholdexcept call __fegetenv instead to avoid that namespace
issue.

Tested (compilation) with build-many-glibcs.py for s390x-linux-gnu,
where it resolves the test failures.

	* sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
	instead of fegetenv.
Diffstat (limited to 'sysdeps/s390')
-rw-r--r--sysdeps/s390/fpu/feholdexcpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/s390/fpu/feholdexcpt.c b/sysdeps/s390/fpu/feholdexcpt.c
index 21bcbd74fa..5daee5675d 100644
--- a/sysdeps/s390/fpu/feholdexcpt.c
+++ b/sysdeps/s390/fpu/feholdexcpt.c
@@ -24,7 +24,7 @@ int __feholdexcept (fenv_t *envp)
 {
   fexcept_t fpc;
   /* Store the environment.  */
-  fegetenv (envp);
+  __fegetenv (envp);
   /* Clear the current sticky bits as more than one exception
      may be generated.  */
   fpc = envp->__fpc & ~(FPC_FLAGS_MASK | FPC_DXC_MASK);