diff mbox series

Update C Extensions docs for support in latest C++

Message ID 20180904092822.GX4149@redhat.com
State New
Headers show
Series Update C Extensions docs for support in latest C++ | expand

Commit Message

Jonathan Wakely Sept. 4, 2018, 9:28 a.m. UTC
The docs on 'long long' and hexadecimal floating-point literals are
outdated w.r.t what C++ supports.

OK for trunk?
diff mbox series

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 981e7063f97..8e31ec6b610 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@ 
+2018-09-04  Jonathan Wakely  <jwakely@redhat.com>
+
+	* doc/extend.texi (Long Long, Hex Floats): Document support for
+	long long and hex floats in more recent versions of ISO C++.
+
 2018-09-03  Richard Biener  <rguenther@suse.de>
 
 	PR tree-optimization/87200
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 9c3cfdbf022..4b606c007d8 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -843,8 +843,8 @@  for targets with @code{long long} integer less than 128 bits wide.
 @cindex @code{LL} integer suffix
 @cindex @code{ULL} integer suffix
 
-ISO C99 supports data types for integers that are at least 64 bits wide,
-and as an extension GCC supports them in C90 mode and in C++.
+ISO C99 and ISO C++11 support data types for integers that are at least
+64 bits wide, and as an extension GCC supports them in C90 and C++98 modes.
 Simply write @code{long long int} for a signed integer, or
 @code{unsigned long long int} for an unsigned integer.  To make an
 integer constant of type @code{long long int}, add the suffix @samp{LL}
@@ -1121,11 +1121,11 @@  are supported by the DWARF debug information format.
 @section Hex Floats
 @cindex hex floats
 
-ISO C99 supports floating-point numbers written not only in the usual
-decimal notation, such as @code{1.55e1}, but also numbers such as
+ISO C99 and ISO C++17 support floating-point numbers written not only in
+the usual decimal notation, such as @code{1.55e1}, but also numbers such as
 @code{0x1.fp3} written in hexadecimal format.  As a GNU extension, GCC
 supports this in C90 mode (except in some cases when strictly
-conforming) and in C++.  In that format the
+conforming) and in C++98, C++11 and C++14 modes.  In that format the
 @samp{0x} hex introducer and the @samp{p} or @samp{P} exponent field are
 mandatory.  The exponent is a decimal number that indicates the power of
 2 by which the significant part is multiplied.  Thus @samp{0x1.f} is