From 223d1cacc5dafe8af53e84608c2d130721c4edcd Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 15 Sep 2015 20:36:50 +0000 Subject: 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. --- include/fenv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/fenv.h') 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; -- cgit 1.4.1