HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)
-AP
-AP
NOTE: This option is deprecated and may not be supported in future releases.
The -AP option turns off -AA mode and uses the older C++ runtime libraries.
NOTE: This option is not supported in legacy HP C. This option is ignored with warnings
in C-mode.
-Ax
The -Ax option turns on support for several extensions introduced by the working paper
for the next C++ standard (called C++0x). The -Ax option is available only in C++
compilation mode and is binary compatible with the -AA compilation mode. See the HP
aC++/HP ANSI C Release Notes for a description of extensions supported.
+legacy_cpp
+legacy_cpp
The +legacy_cpp option enables the use of cpp.ansi ANSI C preprocessor. This
option is available in C-mode only.
NOTE: This option is not normally needed and may be deprecated in future.
+legacy_v5
+legacy_v5
This option enables the use of the A.05.60 compiler. The default compiler is the A.06.00
compiler.
+tru64
+tru64
This option causes return types of unprototyped functions to be treated as long, instead
of int, matching Tru64 C behavior. This can prevent segfaults in +DD64 mode, resulting
from pointer truncation, for instance:
long *a;
long sub() {
a = malloc(sizeof(long)); /* no prototype! */
*a = 1234; /* segfault if +DD64 and no +tru64 */
return *a;
}
A preferable solution is to provide the appropriate function prototypes.
Standards Related Options 103