mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
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.
This commit is contained in:
parent
0b87419b69
commit
223d1cacc5
@ -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.
|
||||
|
12
NEWS
12
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.
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user