summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-29 10:03:26 +0000
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-29 10:03:26 +0000
commitef953679f0831d649f5850ae40b6c250d7c6c754 (patch)
tree31f5df221aaa74f5241c71afd89f24e5e8c589a6
parentce6a6978e7b983220c7f95348e9c8585166f43c2 (diff)
downloadgcc-ef953679f0831d649f5850ae40b6c250d7c6c754.tar.gz
PR c++/69462: Provide FLT_EVAL_METHOD and DECIMAL_DIG in float.h.
gcc/ChangeLog PR c++/69462 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG for C++-11. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232970 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/ginclude/float.h3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 48c16d15af0..f1e2c29e682 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2016-01-29 Jonathan Wakely <jwakely@redhat.com>
+
+ PR c++/69462
+ * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
+ for C++-11.
+
2016-01-29 Richard Biener <rguenther@suse.de>
PR middle-end/69537
diff --git a/gcc/ginclude/float.h b/gcc/ginclude/float.h
index 18f5aacf9ec..862f7cc40b4 100644
--- a/gcc/ginclude/float.h
+++ b/gcc/ginclude/float.h
@@ -127,7 +127,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#undef FLT_ROUNDS
#define FLT_ROUNDS 1
-#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \
+ || (defined (__cplusplus) && __cplusplus >= 201103L)
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and