+2017-11-16 Joseph Myers <joseph@codesourcery.com>
+
+ * doc/invoke.texi (-std=c17): Refer to 2018 expected publication
+ date of C17.
+ (-std=c18, -std=iso9899:2018, -std=gnu18): Document option
+ aliases.
+
2017-11-16 Thomas Koenig <tkoenig@gcc.gnu.org>
PR bootstrap/82856
+2017-11-16 Joseph Myers <joseph@codesourcery.com>
+
+ * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
+ expected publication date of C17.
+ (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
+
2017-11-15 Joseph Myers <joseph@codesourcery.com>
PR c/81156
std=c17
C ObjC
-Conform to the ISO 2017 C standard.
+Conform to the ISO 2017 C standard (expected to be published in 2018).
+
+std=c18
+C ObjC Alias(std=c17)
+Conform to the ISO 2017 C standard (expected to be published in 2018).
std=c89
C ObjC Alias(std=c90)
std=gnu17
C ObjC
-Conform to the ISO 2017 C standard with GNU extensions.
+Conform to the ISO 2017 C standard (expected to be published in 2018) with GNU extensions.
+
+std=gnu18
+C ObjC Alias(std=gnu17)
+Conform to the ISO 2017 C standard (expected to be published in 2018) with GNU extensions.
std=gnu89
C ObjC Alias(std=gnu90)
std=iso9899:2017
C ObjC Alias(std=c17)
-Conform to the ISO 2017 C standard.
+Conform to the ISO 2017 C standard (expected to be published in 2018).
+
+std=iso9899:2018
+C ObjC Alias(std=c17)
+Conform to the ISO 2017 C standard (expected to be published in 2018).
traditional
Driver
interfaces) and L (Analyzability). The name @samp{c1x} is deprecated.
@item c17
+@itemx c18
@itemx iso9899:2017
-ISO C17, the 2017 revision of the ISO C standard. This standard is
+@itemx iso9899:2018
+ISO C17, the 2017 revision of the ISO C standard (expected to be
+published in 2018). This standard is
same as C11 except for corrections of defects (all of which are also
applied with @option{-std=c11}) and a new value of
@code{__STDC_VERSION__}, and so is supported to the same extent as C11.
The name @samp{gnu1x} is deprecated.
@item gnu17
+@itemx gnu18
GNU dialect of ISO C17. This is the default for C code.
@item c++98
+2017-11-16 Joseph Myers <joseph@codesourcery.com>
+
+ * gcc.dg/c18-version-1.c, gcc.dg/c18-version-2.c: New tests.
+
2017-11-15 Michael Meissner <meissner@linux.vnet.ibm.com>
* gcc.target/powerpc/bfp/bfp.exp: Look for *.c files, not *.c*
--- /dev/null
+/* Test __STDC_VERSION__ for C17. Test -std=c18. */
+/* { dg-do compile } */
+/* { dg-options "-std=c18 -pedantic-errors" } */
+
+#if __STDC_VERSION__ == 201710L
+int i;
+#else
+#error "Bad __STDC_VERSION__."
+#endif
--- /dev/null
+/* Test __STDC_VERSION__ for C17. Test -std=iso9899:2018. */
+/* { dg-do compile } */
+/* { dg-options "-std=iso9899:2018 -pedantic-errors" } */
+
+#if __STDC_VERSION__ == 201710L
+int i;
+#else
+#error "Bad __STDC_VERSION__."
+#endif