7.74 --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.

Usage

This option can also be combined with other source language command-line options. For example, armcc --c90 --gnu.
Related reference
7.19 --c90
7.20 --c99
7.25 --cpp
7.156 --strict, --no_strict
7.26 --cpp11
7.27 --cpp_compat
1.2 Source language modes of the compiler
2.7 Filename suffixes recognized by the compiler
7.75 --gnu_defaults
7.77 --gnu_version=version
8.45 GNU extensions to the C and C++ languages
9.152 Predefined macros
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.