This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.19-830-g831b989


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  831b9896d8e957580591a3cbe11dcd5ac6743ba2 (commit)
      from  b21c2d5020d85596c0391e03054d7fe031ffd60b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=831b9896d8e957580591a3cbe11dcd5ac6743ba2

commit 831b9896d8e957580591a3cbe11dcd5ac6743ba2
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Jul 17 17:56:43 2014 +0000

    Fix fallback fesetenv and feupdateenv on FE_NOMASK_ENV (bug 17088).
    
    This patch fixes bug 17088, fallback fesetenv and feupdateenv not
    giving an error for an FE_NOMASK_ENV argument when it requires traps
    to be enabled.  (This is the bug tested for by test-fenv-return.c.)
    
    Tested mips64 soft-float.
    
    	[BZ #17088]
    	* math/fesetenv.c (__fesetenv)
    	[FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
    	* math/feupdateenv.c (__feupdateenv)
    	[FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.

diff --git a/ChangeLog b/ChangeLog
index 041839b..d32f47a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
 
+	[BZ #17088]
+	* math/fesetenv.c (__fesetenv)
+	[FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
+	* math/feupdateenv.c (__feupdateenv)
+	[FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
+
 	* sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
 	* sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
 	(__ASSUME_SOCKETCALL): Do not define.
diff --git a/NEWS b/NEWS
index e734baf..aada32b 100644
--- a/NEWS
+++ b/NEWS
@@ -21,8 +21,8 @@ Version 2.20
   16882, 16885, 16888, 16890, 16912, 16915, 16916, 16917, 16918, 16922,
   16927, 16928, 16932, 16943, 16958, 16965, 16966, 16967, 16977, 16978,
   16984, 16990, 16996, 17009, 17022, 17031, 17042, 17048, 17050, 17058,
-  17061, 17062, 17069, 17075, 17079, 17084, 17086, 17092, 17097, 17125,
-  17135, 17137, 17153.
+  17061, 17062, 17069, 17075, 17079, 17084, 17086, 17088, 17092, 17097,
+  17125, 17135, 17137, 17153.
 
 * Optimized strchr implementation for AArch64.  Contributed by ARM Ltd.
 
diff --git a/math/fesetenv.c b/math/fesetenv.c
index acfe5f4..9bf42c0 100644
--- a/math/fesetenv.c
+++ b/math/fesetenv.c
@@ -23,6 +23,10 @@
 int
 __fesetenv (const fenv_t *envp)
 {
+#if defined FE_NOMASK_ENV && FE_ALL_EXCEPT != 0
+  if (envp == FE_NOMASK_ENV)
+    return 1;
+#endif
   /* Nothing to do.  */
   return 0;
 }
diff --git a/math/feupdateenv.c b/math/feupdateenv.c
index 13d819e..08d8ae2 100644
--- a/math/feupdateenv.c
+++ b/math/feupdateenv.c
@@ -23,6 +23,10 @@
 int
 __feupdateenv (const fenv_t *envp)
 {
+#if defined FE_NOMASK_ENV && FE_ALL_EXCEPT != 0
+  if (envp == FE_NOMASK_ENV)
+    return 1;
+#endif
   /* Nothing to do.  */
   return 0;
 }

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog          |    6 ++++++
 NEWS               |    4 ++--
 math/fesetenv.c    |    4 ++++
 math/feupdateenv.c |    4 ++++
 4 files changed, 16 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]