Technical data

Cray Standard C/C++ Reference Manual
-G option is the preferred specification. The -Gn and -g options disable all
optimizations and imply -O0.
The debugging options take precedence over any conflicting options that appear
on the command line. If more than one debugging option appears, the last
one specified overrides the others.
2.17.2 -h [no]bounds (cc)
Default option: -h nobounds
The -h bounds option provides checking of pointer and array references to
ensure that they are within acceptable boundaries. -h nobounds disables
these checks.
The pointer check verifies that the pointer is greater than 0 and less than the
machine memory limit. The array check verifies that the subscript is greater than
or equal to 0 and is less than the array size, if declared.
2.17.3 -h indef, -h zero (CC, cc)
The -h indef option causes stack-allocated memory to be initialized to
undefined values. These values cause run-time errors to occur when an
uninitialized stack variable is used, such as in a floating-point operation or in
an array subscript. The -h zero option causes stack-allocated memory to be
initialized to all zeros. These options are especially useful for debugging tasked
codes.
2.18 Compiler Message Options
The following sections describe compiler options that affect messages.
2.18.1 -h msglevel_n (CC, cc)
Default option: -h msglevel_3
The -h msglevel_n option specifies the lowest level of severity of messages to
be issued. Messages at the specified level and above are issued. Argument n can
be 0 (comment), 1 (note), 2 (caution), 3 (warning), or 4 (error).
30 S217936