This option enables the Tru64 UNIX C++ Annotated Reference Manual (ARM) dialect. This dialect was the default for Tru64 UNIX C++ compilers through compiler version 5.x. Support of this dialect is intended only to ease porting of existing Tru64 UNIX applications to HP-UX, and not for development of new programs.

For more information on the ARM dialect, refer to the The Annotated C++ Reference Manual, (Margaret A. Ellis and Bjarne Stroustrup, Addison-Wesley, ISBN 0-201-51459-1, 1990).

-AC89

-AC89

The -AC89option invokes the compiler in ANSI C89 compilation mode. This option, when specified with the -extoption, invokes a part of ANSI C99 features.

NOTE: This option will be removed in a future version of the compiler. Use the equivalent option +std=c89 to ensure that your builds do not break in future.

-AC99

-AC99

The -AC99option invokes the compiler in ANSI C99 compilation mode with its features. This is the default C compilation mode, and the following commands are equivalent:

cc

cc-Ae

cc -AC99 aCC -Ae aCC -AC99

NOTE: This option will be removed in a future version of the compiler. Use the equivalent option +std=c99 to ensure that your builds do not break in future.

-Ae

-Ae

Setting the -Aeoption invokes aC++ as an ANSI C compiler, with additional support for HP C language extensions.

This option is a synonym for the -AC99option.

For C++, if -Aeis anywhere on the command line, C-mode will be in effect. The options, -AAand -AP,are ignored with warnings. If both -Aeand -Aaare present, C-mode will be in effect and the right most option determines whether extended ANSI (-Ae) or strict ANSI (-Aa) is in effect. To get strict ANSI, both -Aeand -Aaoption are required.

NOTE: Some code that is a warning in C may be a fatal error in HP aC++.

-Ag++

This option enables GNU C++ dialect compatibility. Not all GNU features are available, for instance, the asm mechanism. See also “-fshort-enums ” (page 35).

NOTE: This option will be removed in a future version of the compiler. Use the equivalent option +std=g++ to ensure that your builds do not break in future.

-Agcc

This option enables GNU C dialect compatibility. Not all GNU features are available, for instance, the asm mechanism. See also “-fshort-enums ” (page 35).

Standards Related Options

83