gcc, C language
Image generated by ChatGPT
The C compiler gcc in GCC (The GNU Compiler Collection)
supports several C language standards.
If you do not specify a C language standard with the gcc command line option -std=,
the default C language standards are shown in the table below.
If you want to use a newer (or older) C language standard, you must specify it explicitly by the command line option.
| gcc version | release date | default C language standard |
|---|---|---|
| 2.95.3 | 2001-03-16 | gnu89 (ISO9899:1990+GNU extensions) |
| 3.0.4 | 2002-02-20 | gnu89 (C89+GNU extensions) |
| 3.1.1 | 2002-07-25 | gnu89 (C89+GNU extensions) |
| 3.2.3 | 2003-04-22 | gnu89 (C89+GNU extensions) |
| 3.3.6 | 2005-05-03 | gnu89 (C90+GNU extensions) |
| 3.4.6 | 2006-03-06 | gnu89 (C90+GNU extensions) |
| 4.0.4 | 2007-01-31 | gnu89 (C90+GNU extensions) |
| 4.1.2 | 2007-02-13 | gnu89 (C90+GNU extensions) |
| 4.2.4 | 2008-05-19 | gnu89 (C90+GNU dialect) |
| 4.3.6 | 2011-06-27 | gnu89 (C90+GNU dialect) |
| 4.4.7 | 2012-03-13 | gnu89 (C90+GNU dialect) |
| 4.5.4 | 2012-07-02 | gnu90 (C90+GNU dialect) |
| 4.6.4 | 2013-04-12 | gnu90 (C90+GNU dialect) |
| 4.7.4 | 2014-06-12 | gnu90 (C90+GNU dialect) |
| 4.8.5 | 2015-06-23 | gnu90 (C90+GNU dialect) |
| 4.9.4 | 2016-08-03 | gnu90 (C90+GNU dialect) |
| 5.5 | 2017-10-10 | gnu11 (C11+GNU dialect) |
| 6.5 | 2018-10-26 | gnu11 (C11+GNU dialect) |
| 7.5 | 2019-11-14 | gnu11 (C11+GNU dialect) |
| 8.5 | 2021-05-14 | gnu17 (C17+GNU dialect) |
| 9.5 | 2022-05-27 | gnu17 (C17+GNU dialect) |
| 10.5 | 2023-07-07 | gnu17 (C17+GNU dialect) |
| 11.5 | 2024-07-19 | gnu17 (C17+GNU dialect) |
| 12.4 | 2024-06-20 | gnu17 (C17+GNU dialect) |
| 13.4 | 2025-06-05 | gnu17 (C17+GNU dialect) |
| 14.3 | 2025-05-23 | gnu17 (C17+GNU dialect) |
| 15.2 | 2025-08-08 | gnu23 (C23+GNU dialect) |
For gcc 2.95.3 and earlier, specify with the -fstd= option. For gcc-3 and later, specify with the -std= option.
Atsushi NUNOME @ Computer System Laboratory at Kyoto Institute of Technology
(nunome
kit.ac.jp)