[Bug web/85917] New: GCC 8 Changes page fails to mention change of default mode for C
Arfrever.FTA at GMail dot Com
gcc-bugzilla@gcc.gnu.org
Fri May 25 05:42:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85917
Bug ID: 85917
Summary: GCC 8 Changes page fails to mention change of default
mode for C
Product: gcc
Version: 8.1.0
URL: https://gcc.gnu.org/gcc-8/changes.html
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: web
Assignee: unassigned at gcc dot gnu.org
Reporter: Arfrever.FTA at GMail dot Com
Target Milestone: ---
GCC 8 changed default mode for C from -std=gnu11 to -std=gnu17, but
https://gcc.gnu.org/gcc-8/changes.html does not mention this change.
$ diff -u <(gcc-7.3.0 -E -dM -x c - < /dev/null | sort) <(gcc-8.1.0 -E -dM -x c
- < /dev/null | sort) | grep -C2 __STDC_VERSION__
#define __STDC_UTF_16__ 1
#define __STDC_UTF_32__ 1
-#define __STDC_VERSION__ 201112L
+#define __STDC_VERSION__ 201710L
#define __STDC__ 1
#define __UINT16_C(c) c
For comparison, https://gcc.gnu.org/gcc-5/changes.html contains:
"""
Caveats
The default mode for C is now -std=gnu11 instead of -std=gnu89.
...
New Languages and Language specific improvements
...
C
The default mode has been changed to -std=gnu11.
"""
More information about the Gcc-bugs
mailing list