HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)
aCC -Ae
aCC -AC99
-Ae
-Ae
Setting the -Ae option invokes aC++ as an ANSI C compiler, with additional support
for HP C language extensions.
This option is a synonym for the -AC99 option.
For C++, if -Ae is anywhere on the command line, C-mode will be in effect. The options,
-AA and -AP, are ignored with warnings. If both -Ae and -Aa are 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 -Ae and -Aa option 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 39).
-Agcc
This option enables GNU C dialect compatibility. Not all GNU features are available,
for instance, the asm mechanism. See also “-fshort-enums ” (page 39).
NOTE: For HP aC++, the -Ae option must also be used.
-AOa and -AOe
-AOa
-AOe
See the following C mode options:
• “-Aa” (page 100)
• “-Ae” (page 102)
In addition to specifying the ANSI C language dialect, allows the optimizer to aggressively
exploit the assumption that the source code conforms to the ANSI programming language
C standard ISO 9899:1990.
At present, the effect is to make +Otype_safety=ansi the default. As new
independently-controllable optimizations are developed that depend on the ANSI C
standard, the flags that enable those optimizations may also become the default under
-AOa or -AOe.
102 Command-Line Options