aboutsummaryrefslogtreecommitdiff
path: root/math/fenv.h
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 /math/fenv.h
parent0b87419b690d1711697ed95808527400910ff997 (diff)
downloadglibc-223d1cacc5dafe8af53e84608c2d130721c4edcd.tar
glibc-223d1cacc5dafe8af53e84608c2d130721c4edcd.tar.gz
glibc-223d1cacc5dafe8af53e84608c2d130721c4edcd.tar.bz2
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 'math/fenv.h')
-rw-r--r--math/fenv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/math/fenv.h b/math/fenv.h
index b80d3c0532..9d4492f36c 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;