ykominami
6/29/2018 - 5:14 PM

gcc-command-liine-option #memo

gcc-command-liine-option #memo

none-eabi-gcc -v --help 2>/dev/null | grep -E "^\s+\-std=.*$"

-std=<standard> Assume that the input sources are for <standard>.

-std=f2003 Conform to the ISO Fortran 2003 standard.

-std=f2008 Conform to the ISO Fortran 2008 standard.

-std=f2008ts Conform to the ISO Fortran 2008 standard

-std=f95 Conform to the ISO Fortran 95 standard.

-std=gnu Conform to nothing in particular.

-std=legacy Accept extensions to support legacy code.

-std=c++03 Conform to the ISO 1998 C++ standard revised by

-std=c++98.

-std=c++0x Deprecated in favor of -std=c++11. Same as

-std=c++11.

-std=c++11 Conform to the ISO 2011 C++ standard.

-std=c++14 Conform to the ISO 2014 C++ standard.

-std=c++17 Same as -std=c++1z. Use the latter option

-std=c++1y Deprecated in favor of -std=c++14. Same as

-std=c++14.

-std=c++1z Conform to the ISO 2017(?) C++ draft standard

-std=c++98 Conform to the ISO 1998 C++ standard revised by

-std=c11 Conform to the ISO 2011 C standard.

-std=c1x Deprecated in favor of -std=c11. Same as

-std=c11.

-std=c89 Conform to the ISO 1990 C standard. Same as

-std=c90.

-std=c90 Conform to the ISO 1990 C standard.

-std=c99 Conform to the ISO 1999 C standard.

-std=c9x Deprecated in favor of -std=c99. Same as

-std=c99.

-std=gnu++03 Conform to the ISO 1998 C++ standard revised by

-std=gnu++0x Deprecated in favor of -std=gnu++11. Same as

-std=gnu++11.

-std=gnu++11 Conform to the ISO 2011 C++ standard with GNU

-std=gnu++14 Conform to the ISO 2014 C++ standard with GNU

-std=gnu++17 Same as -std=gnu++1z. Use the latter option

-std=gnu++1y Deprecated in favor of -std=gnu++14. Same as

-std=gnu++14.

-std=gnu++1z Conform to the ISO 201z(7?) C++ draft standard

-std=gnu++98 Conform to the ISO 1998 C++ standard revised by

-std=gnu11 Conform to the ISO 2011 C standard with GNU

-std=gnu1x Deprecated in favor of -std=gnu11. Same as

-std=gnu11.

-std=gnu89 Conform to the ISO 1990 C standard with GNU

-std=gnu90 Conform to the ISO 1990 C standard with GNU

-std=gnu99 Conform to the ISO 1999 C standard with GNU

-std=gnu9x Deprecated in favor of -std=gnu99. Same as

-std=gnu99.

-std=iso9899:1990 Conform to the ISO 1990 C standard. Same as

-std=c90.

-std=iso9899:199409 Conform to the ISO 1990 C standard as amended in

-std=iso9899:1999 Conform to the ISO 1999 C standard. Same as

-std=c99.

-std=iso9899:199x Deprecated in favor of -std=iso9899:1999. Same

-std=iso9899:2011 Conform to the ISO 2011 C standard. Same as

-std=c11.