about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-09-15 20:36:50 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-09-15 20:36:50 +0000
commit223d1cacc5dafe8af53e84608c2d130721c4edcd (patch)
tree87c52d1da19bfde3a8822493e261442afd83360d /include
parent0b87419b690d1711697ed95808527400910ff997 (diff)
downloadglibc-223d1cacc5dafe8af53e84608c2d130721c4edcd.tar.gz
glibc-223d1cacc5dafe8af53e84608c2d130721c4edcd.tar.xz
glibc-223d1cacc5dafe8af53e84608c2d130721c4edcd.zip
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/fenv.h b/include/fenv.h
index 7070199ece..de4d46f8b7 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;