summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-11-15 18:30:28 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-11-15 18:30:28 +0000
commit8645d522c081bc3bcce733f9c7367d7ee02be841 (patch)
tree9c7ea5d0223375781d7d9ea15b81c4ec45eb60dc
parent12fc258f9fb3b6e059102b66a789475b09cab9d1 (diff)
downloadcoreutils-8645d522c081bc3bcce733f9c7367d7ee02be841.tar.xz
Don't bother with #pragma STDC FENV_ACCESS ON, as
coreutils no longer futzes with rounding modes.
-rw-r--r--lib/ChangeLog5
-rw-r--r--lib/xstrtod.c8
2 files changed, 7 insertions, 6 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 6b62579cc..e02f9cdde 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
+
+ * xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
+ coreutils no longer futzes with rounding modes.
+
2005-11-08 Eric Blake <ebb9@byu.net>
* getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
diff --git a/lib/xstrtod.c b/lib/xstrtod.c
index 06360dd3f..8639869f9 100644
--- a/lib/xstrtod.c
+++ b/lib/xstrtod.c
@@ -1,6 +1,7 @@
/* error-checking interface to strtod-like functions
- Copyright (C) 1996, 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1999, 2000, 2003, 2004, 2005 Free Software
+ Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -28,11 +29,6 @@
#include <limits.h>
#include <stdio.h>
-/* Tell the compiler that non-default rounding modes are used. */
-#if 199901 <= __STDC_VERSION__
- #pragma STDC FENV_ACCESS ON
-#endif
-
/* An interface to strtod that encapsulates all the error checking
one should usually perform. Like strtod, but upon successful
conversion put the result in *RESULT and return true. Return