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-11. C++ Dialect Control Options
Option

(links to explanatory section)

Definition
-ansiSupport all (and only) ANSI-standard C++ programs.
-aux-info filenameGenerates function prototypes from a C module, placing the output in a file with the specified name.
-f[no-]check-newCheck that the pointer returned by operator new is non-null.
-f[no-]enforce-eh-specsSpecify generation of code to check for violation of exception specifications at runtime.
-f[no-]freestandingAsserts that the project will be built for a freestanding (as opposed to a hosted) environment.
-f[no-]asmRestricts 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-]rttiSpecifies if code for Run Time Type Identification features should be generated.
-std=standard Specifies the language standard with which to build programs
-f[no-]signed-bitfields

-f[no-]unsigned-bitfields

Changes the signedness of a plain int bit-field.
-f[no-]signed-char-f[no-]unsigned-char

Changes the signedness of a plain char type.