This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.22-241-g223d1ca
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 15 Sep 2015 20:37:28 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.22-241-g223d1ca
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 223d1cacc5dafe8af53e84608c2d130721c4edcd (commit)
from 0b87419b690d1711697ed95808527400910ff997 (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=223d1cacc5dafe8af53e84608c2d130721c4edcd
commit 223d1cacc5dafe8af53e84608c2d130721c4edcd
Author: Joseph Myers <joseph@codesourcery.com>
Date: Tue Sep 15 20:36:50 2015 +0000
Mark fegetround pure (bug 16296).
Bug 16296 notes that fegetround is a pure function and should be
marked as such in fenv.h. This patch implements that.
Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by this patch).
[BZ #16296]
* math/fenv.h (fegetround): Use __attribute_pure__.
* include/fenv.h (__fegetround): Likewise.
diff --git a/ChangeLog b/ChangeLog
index 56782dd..fd28199 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2015-09-15 Joseph Myers <joseph@codesourcery.com>
+ [BZ #16296]
+ * math/fenv.h (fegetround): Use __attribute_pure__.
+ * include/fenv.h (__fegetround): Likewise.
+
[BZ #18595]
* math/s_ctan.c (__ctan): Force underflow exception for results
whose real or imaginary part has small absolute value.
diff --git a/NEWS b/NEWS
index 797d717..b35d542 100644
--- a/NEWS
+++ b/NEWS
@@ -9,12 +9,12 @@ Version 2.23
* The following bugs are resolved with this release:
- 2542, 2543, 2558, 2898, 14341, 14912, 15786, 15918, 16141, 16517, 16519,
- 16520, 16521, 16734, 16973, 16985, 17787, 17905, 18084, 18086, 18240,
- 18265, 18370, 18421, 18480, 18525, 18595, 18610, 18618, 18647, 18661,
- 18674, 18675, 18681, 18757, 18778, 18781, 18787, 18789, 18790, 18795,
- 18796, 18820, 18823, 18824, 18863, 18870, 18873, 18875, 18887, 18921,
- 18952, 18961, 18966.
+ 2542, 2543, 2558, 2898, 14341, 14912, 15786, 15918, 16141, 16296, 16517,
+ 16519, 16520, 16521, 16734, 16973, 16985, 17787, 17905, 18084, 18086,
+ 18240, 18265, 18370, 18421, 18480, 18525, 18595, 18610, 18618, 18647,
+ 18661, 18674, 18675, 18681, 18757, 18778, 18781, 18787, 18789, 18790,
+ 18795, 18796, 18820, 18823, 18824, 18863, 18870, 18873, 18875, 18887,
+ 18921, 18952, 18961, 18966.
* The obsolete header <regexp.h> has been removed. Programs that require
this header must be updated to use <regex.h> instead.
diff --git a/include/fenv.h b/include/fenv.h
index 7070199..de4d46f 100644
--- a/include/fenv.h
+++ b/include/fenv.h
@@ -13,7 +13,7 @@ extern int __fesetexceptflag (const fexcept_t *__flagp, int __excepts);
extern int __fegetenv (fenv_t *__envp);
extern int __fesetenv (const fenv_t *__envp);
extern int __feupdateenv (const fenv_t *__envp);
-extern __typeof (fegetround) __fegetround;
+extern __typeof (fegetround) __fegetround __attribute_pure__;
extern __typeof (feholdexcept) __feholdexcept;
extern __typeof (fesetround) __fesetround;
diff --git a/math/fenv.h b/math/fenv.h
index b80d3c0..9d4492f 100644
--- a/math/fenv.h
+++ b/math/fenv.h
@@ -82,7 +82,7 @@ extern int fetestexcept (int __excepts) __THROW;
/* Rounding control. */
/* Get current rounding direction. */
-extern int fegetround (void) __THROW;
+extern int fegetround (void) __THROW __attribute_pure__;
/* Establish the rounding direction represented by ROUND. */
extern int fesetround (int __rounding_direction) __THROW;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
NEWS | 12 ++++++------
include/fenv.h | 2 +-
math/fenv.h | 2 +-
4 files changed, 12 insertions(+), 8 deletions(-)
hooks/post-receive
--
GNU C Library master sources