8.91 --gnu

Enables the GNU compiler extensions that the ARM compiler supports.

The version of GCC the extensions are compatible with can be determined by inspecting the predefined macros __GNUC__ and __GNUC_MINOR__.

In addition, in GNU mode, the ARM compiler emulates GCC in its conformance to the C/C++ standards, whether more or less strict.


This option can also be combined with other source language command-line options. For example, armcc --c90 --gnu.

Related reference
8.23 --c90
8.24 --c99
8.37 --cpp
8.173 --strict, --no_strict
2.7 Filename suffixes recognized by the compiler
1.2 Source language modes of the compiler
2.7 Filename suffixes recognized by the compiler
8.92 --gnu_defaults
8.94 --gnu_version=version
9.45 GNU extensions to the C and C++ languages
10.155 Predefined macros
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.