diff options
author | Joseph Myers <joseph@codesourcery.com> | 2015-09-15 20:36:50 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2015-09-15 20:36:50 +0000 |
commit | 223d1cacc5dafe8af53e84608c2d130721c4edcd (patch) | |
tree | 87c52d1da19bfde3a8822493e261442afd83360d /include | |
parent | 0b87419b690d1711697ed95808527400910ff997 (diff) | |
download | glibc-223d1cacc5dafe8af53e84608c2d130721c4edcd.zip glibc-223d1cacc5dafe8af53e84608c2d130721c4edcd.tar.gz glibc-223d1cacc5dafe8af53e84608c2d130721c4edcd.tar.bz2 |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/fenv.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |