The optional level 1, 2, 3,or 4 controls how verbosely the performance advisory messages are emitted. The higher the level, the more messages generated. Level 1 emits only the most important messages, while level 4 emits all the messages.

If the optional level is not specified, it defaults to 2.

+wsecurity

The +wsecurity option enables compile-time diagnostics for potential security violations. Warnings are emitted for cases where untrusted (tainted) data may reach a critical reference point in the program. This is based on cross-module analysis performed by the compiler. Hence the +wsecurity option implicitly enables a limited form of cross-module analysis, even if -ipoor +O4 options are not specified. This may lead to a significant increase in the compile time compared to a build without the +wsecurity option. Using this option may result in the compiler invoking optimizations other than those that are part of the user-specified optimization level. If +wsecurity is used in addition to -ipoor +O4, the generated code is not affected and the compile time does not significantly increase.

This option can optionally take an argument to control how verbosely the security messages are emitted:

+wsecurity[={1234}]

The higher the check level, the more warnings can be generated. Note that this may also generate more false positives.

The default level is 2.

Exception Handling

By default, exception handling is enabled. To turn off exception handling, use the following option.

+noeh

+noeh

The +noeh option disables exception handling. With exception handling disabled, the keywords throw and try generate an error.

Mixing code compiled with and without +noeh may give undesired results.

Example:

aCC +noeh progex.C

This command compiles and links progex.C, which does not use exception handling.

See Chapter 8: “Exception Handling” (page 161) for more information.

Extensions to the Language

These options support extensions to the C++ language.

-ext

-ext

Exception Handling 41

Page 41
Image 41
HP C/aC++ for PA-RISC Software manual Exception Handling, Extensions to the Language, +wsecurity, +noeh