-qinfo

Description

Produces informational messages.

Syntax

C only

Read syntax diagramSkip visual syntax diagram        .-noinfo-------------------------------------.
        |       .-=--all---------------------------. |
>>- -q--+-info--+-+------------------------------+-+-+---------><
                  |      .-:-----------------.   |
                  |      V                   |   |
                  '-=--+---+----+--+-all---+-+-+-'
                       |   '-no-'  '-group-'   |
                       +-private---------------+
                       '-reduction-------------'

C++ only

Read syntax diagramSkip visual syntax diagram        .-info=lan:trx-------------------------------.
        |       .-=--all:noppt---------------------. |
>>- -q--+-info--+-+------------------------------+-+-+---------><
        |         |      .-:-----------------.   |   |
        |         |      V                   |   |   |
        |         '-=--+---+----+--+-all---+-+-+-'   |
        |              |   '-no-'  '-group-'   |     |
        |              +-private---------------+     |
        |              '-reduction-------------'     |
        '-noinfo-------------------------------------'

where -qinfo options and diagnostic message groups are described in the Notes section below.

See also #pragma info and #pragma options.

Defaults

If you do not specify -qinfo on the command line, the compiler assumes:

  1. C only -qnoinfo
  2. C++ only -qinfo=lan:trx

If you specify -qinfo on the command line without any suboptions, the compiler assumes:

  1. C only -qinfo=all
  2. C++ only -qinfo=all:noppt

Notes

Specifying -qinfo=all or -qinfo with no suboptions turns on all diagnostic messages for all groups except for the ppt (preprocessor trace) group in C++ code.

Specifying -qnoinfo or -qinfo=noall turns off all diagnostic messages for all groups.

You can use the #pragma options info=suboption[:suboption ...] or #pragma options noinfo forms of this compiler option to temporarily enable or disable messages in one or more specific sections of program code.

Available forms of the -qinfo option are:

all Turns on all diagnostic messages for all groups.

C only The -qinfo and -qinfo=all forms of the option have the same effect.

C++ only The -qinfo and -qinfo=all forms of the option both have the same effect, but do not include the ppt group (preprocessor trace).

lan Enables diagnostic messages informing of language level effects. This is the default for C++ compilations.
noall Turns off all diagnostic messages for specific portions of your program.
private Lists shared variables made private to a parallel loop.
reduction Lists all variables that are recognized as reduction variables inside a parallel loop.
group Turns on or off specific groups of messages, where group can be one or more of:
group
Type of messages returned or suppressed
c99|noc99
C code that may behave differently between C89 and C99 language levels.
cls|nocls
C++ classes.
cmp|nocmp
Possible redundancies in unsigned comparisons.
cnd|nocnd
Possible redundancies or problems in conditional expressions.
cns|nocns
Operations involving constants.
cnv|nocnv
Conversions.
dcl|nodcl
Consistency of declarations.
eff|noeff
Statements and pragmas with no effect.
enu|noenu
Consistency of enum variables.
ext|noext
Unused external definitions.
gen|nogen
General diagnostic messages.
gnr|nognr
Generation of temporary variables.
got|nogot
Use of goto statements.
ini|noini
Possible problems with initialization.
inl|noinl
Functions not inlined.
lan|nolan
Language level effects.
obs|noobs
Obsolete features.
ord|noord
Unspecified order of evaluation.
par|nopar
Unused parameters.
por|nopor
Nonportable language constructs.
ppc|noppc
Possible problems with using the preprocessor.
ppt|noppt
Trace of preprocessor actions.
pro|nopro
Missing function prototypes.
rea|norea
Code that cannot be reached.
ret|noret
Consistency of return statements.
trd|notrd
Possible truncation or loss of data or precision.
tru|notru
Variable names truncated by the compiler.
trx|notrx
Hexadecimal floating point constants rounding.
uni|nouni
Uninitialized variables.
upg|noupg
Generates messages describing new behaviors of the current compiler release as compared to the previous release.
use|nouse
Unused auto and static variables.
vft|novft
Generation of virtual function tables in C++ programs.
zea|nozea
Zero-extent arrays.

Example

To compile myprogram.C to produce informational message about all items except conversions and unreached statements, enter:

xlc++ myprogram.C -qinfo=all -qinfo=nocnv:norea

Related information