INFO | NOINFO

Category

Error checking and debugging

Pragma equivalent

#pragma info (C++ only)

Purpose

Produces groups of informational messages.

The compiler does not emit messages for files in the standard search paths for the compiler and system header files.

Syntax

For C:

Read syntax diagramSkip visual syntax diagramNOININ(ALL,subopts)

For C++:

Read syntax diagramSkip visual syntax diagramIN(LAN)(ALL,subopts)NOIN

Defaults

For C++ in the z/OS® UNIX System Services, the default is INFO(LAN) and NOINFO in batch. For C, the default option is NOINFO.

Parameters

subopts
Use subopts if you want to specify the type of warning messages.
A list of the applicable subopts is as follows:
ALS | NOALS
Emits report on possible violations of the ANSI aliasing rule in effect.

(C only) The traceback diagnostic messages refer to the character number as the column number.

CLS | NOCLS
Emits class informational warning messages (C++ only).
CMP | NOCMP
Emits conditional expression check messages.
CND | NOCND
Emits messages on redundancies or problems in conditional expressions.
CNV | NOCNV
Emits messages about conversions.
CNS | NOCNS
Emits redundant operation on constants messages.
CPY | NOCPY
Emits warnings about copy constructors (C++ only).
EFF | NOEFF
Emits information about statements with no effect.
ENU | NOENU
Emits information about ENUM checks.
EXT | NOEXT
Emits warnings about unused variables that have external declarations.
GEN | NOGEN
Emits messages if the compiler generates temporaries, and diagnoses variables that are used without being initialized.
GNR | NOGNR
Emits information about the generation of temporary variables (C++ only).
LAN | NOLAN
Emits language level checks.
PAR | NOPAR
Emits warning messages on unused parameters.
POR | NOPOR
Emits warnings about non-portable constructs.
PPC | NOPPC
Emits messages on possible problems with using the preprocessor.
PPT | NOPPT
Emits trace of preprocessor actions.
PRO | NOPRO
Emits warnings about missing function prototypes.
REA | NOREA
Emits warnings about unreached statements.
RET | NORET
Emits warnings about return statement consistency.
STP | NOSTP
Emits warnings for procedures that are not protected against stack corruption. The INFO(STP) option has no effect unless the STACKPROTECT option is also enabled.
TRD | NOTRD
Emits warnings about possible truncation of data.
UND | NOUND
Emits warnings about undefined classes (C++ only).
USE | NOUSE
Emits information about usage of variables.
VFT | NOVFT
Indicates where vftable is generated (C++ only).
ALL
Enables all of the suboptions except ALS and PPT. Suboptions ALS and PPT have to be turned on explicitly.

Usage

Note: The INFO option may not produce the same diagnostic messages as the previous releases.

Start of changeIf you specify INFO with no suboptions, the suboptions of INFO that do not conflict with other options are enabled while the suboptions that conflict with other options are disabled. INFO(ALL) has the same effect as the INFO option with no suboptions except that the compiler emits warning messages for suboptions that are disabled due to conflicts with other options.End of change

The following information describes how to use INFO as a replacement for CHECKOUT and still retrieve the same messages:
Table 1. Migrating from CHECKOUT to INFO
CHECKOUT suboption Equivalent INFO suboption
ACCURACY TRD
CAST

GEN

Note: Use INFO(GEN) to provide the same messages as CHECKOUT(CAST) and the following messages:
  • some general messages
  • messages for appearance and usage of goto statements
  • messages for variables that are not explicitly initialized
  • messages for obsolete features
  • messages for ambiguous evaluation order
ENUM ENU
EXTERN EXT
GENERAL
Use one of the following options:
  • INFO(CMP,CND,CNS,CNV,EFF,LAN, PRO,REA,RET,USE,GEN)
    Note: Use these options to provide the same messages as CHECKOUT(GENERAL) and messages for CHECKOUT(CAST,GOTO,INIT).
  • INFO(CMP,CND,CNS,CNV,EFF,LAN, PRO,REA,RET,USE)
    Note: Use these options to provide the same messages as CHECKOUT(GENERAL), but not the messages for obsolete features and ambiguous evaluation order.
GOTO

GEN

Note: Use INFO(GEN) to provide the same messages as CHECKOUT(GOTO) and the following messages:
  • some general messages
  • messages for obsolete features
  • messages for ambiguous evaluation order
  • messages for CHECKOUT(CAST, INIT)
INIT

GEN

Note: Use INFO(GEN) to provide the same messages as CHECKOUT(INIT) and the following messages:
  • some general messages
  • messages for obsolete features
  • messages for ambiguous evaluation order
  • messages for CHECKOUT(CAST, GOTO)
PARM PAR
PORT POR
PPCHECK PPC
PPTRACE PPT
TRUNC

USE

Note: INFO(USE) provides more messages than CHECKOUT(TRUNC).
ALL ALL
NONE NOINFO
Note: If you specify CHECKOUT with no suboptions, it is the same as specifying INFO(ALL).

IPA effects

The STP and NOSTP suboptions are the only INFO suboptions that take effect during the IPA link step while other INFO subotpions are ignored. If you specify the INFO(STP) option for any compilation unit in the IPA compile step, the compiler generates information for the IPA link step. This option also affects the regular object module if you request one by specifying the IPA(OBJECT) option.

The IPA link step merges and optimizes the application code; then the IPA link step divides it into sections for code generation. Each of these sections is a partition.

If you specify the INFO(STP) option on the IPA link step, it uses the value of that option for all partitions. The IPA link step Prolog and all Partition Map sections of the IPA link step listing display that value.

If you do not specify the option on the IPA link step, the value used for a partition depends on the value that you specified for the IPA compile step for each compilation unit that provided code for that partition.

The object module and the Partition Map section of the IPA link step listing display the final option value for each partition. If you override this option on the IPA link step, the Prolog section of the IPA link step listing displays the value of the option.

The Compiler Options Map section of the IPA link step listing displays the option value that you specified for each IPA object file during the IPA compile step.

Predefined macros

None.

Related information