]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix s390 linknamespace fallout of bug 22702 patch.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 12 Jan 2018 00:12:57 +0000 (00:12 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 12 Jan 2018 00:12:57 +0000 (00:12 +0000)
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.

ChangeLog
sysdeps/s390/fpu/feholdexcpt.c

index f5147a8f0c4d67c405778ce76094e797760bc244..7dea263d924aa074b956e03d111374ee631c9007 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-12  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
+       instead of fegetenv.
+
 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #22702]
index 21bcbd74fae37955eec0ae37625968b371776e02..5daee5675d59a4efec83e19ef05e5a459e2eb4eb 100644 (file)
@@ -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);