5.7.4 Options for Controlling the C++ Dialect

The options tabulated below define the type of C++ dialect used by the compiler and are discussed in the sections that follow. Note that the sections for those options also relevant for the C dialect are located in the 5.7.3 Options for Controlling the C Dialect section.

Table 5-9. C++ Dialect Control Options
Option Definition
-ansi Support all (and only) C90 programs.
-aux-info filename Generates function prototypes from a C module, placing the output in a file with the specified name.
-f[no-]check-new Check that the pointer returned by the new operator is non-null.
-f[no-]enforce-eh-specs Specify generation of code to check for violation of exception specifications at runtime.
-f[no-]freestanding Asserts that the project will be built for a freestanding (as opposed to a hosted) environment.
-f[no-]asm Restricts the recognition of certain keywords, freeing them to be used as identifiers.
-fno-builtin

-fno-builtin-function

Don’t recognize built-in functions that do not begin with __builtin_ as prefix.
-f[no-]rtti Specifies if code for Run Time Type Identification features should be generated.
-f[no-]unsigned-char

-f[no-]signed-char

Changes the signedness of a plain char type.
-f[no-]signed-bitfields

-f[no-]unsigned-bitfields

Changes the signedness of a plain int bit-field.