Technical data

Compiler Messages [C]
script, any message printed by the compiler appears as though it was generated
by the script. For example, the following C shell script is named newcc:
#
setenv ORIG_CMD_NAME basename $0
cc $*
A message generated by invoking newcc resembles the following:
CC-8 newcc: ERROR File = x.c, Line = 1
A new-line character appears inside a string literal.
Because the environment variable ORIG_CMD_NAME is set to newcc, this appears
as the command name instead of cc(1) in this message.
!
Caution: The ORIG_CMD_NAME environment variable is not part of the
message system. It is supported by the Cray Standard C/C++ compilers as an
aid to programmers. Other products, such as the Fortran compiler and the
loader, may support this variable. However, you should not rely on support
for this variable in any other product.
You must be careful when setting the environment variable ORIG_CMD_NAME.If
you set ORIG_CMD_NAME inadvertently, the compiler may generate messages
with an incorrect command name. This may be particularly confusing if, for
example, ORIG_CMD_NAME is set to newcc when the Fortran compiler prints a
message. The Fortran message will look as though it came from newcc.
C.3 Message Severity
Each message issued by the compiler falls into one of the following categories of
messages, depending on the severity of the error condition encountered or the
type of information being reported.
C
ategory Meaning
COMMENT Inefficient programming practices.
NOTE Unusual programming style or the use of
outmoded statements.
CAUTION Possible user error. Cautions are issued when the
compiler detects a condition that may cause the
program to abort or behave unpredictably.
S217936 175