C/C++ Programmer's Guide (G06.25+)
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
13-63
MIGRATION_CHECK
}; // Aligned at 16 bytes, with size 16 bytes and
// 8 bytes of padding at the end
MIGRATION_CHECK
The MIGRATION_CHECK pragma directs the TNS/R native C++ compiler to perform a
migration check, to aid in migrating from VERSION2 of the Standard C++ Library to
VERSION3.
The pragma default settings are:
Usage Guidelines
•
On Guardian, the MIGRATION_CHECK pragma must be entered on the NMCPLUS
or CPPCOMP command line along with the VERSION2 directive. On OSS or
Windows, specify the -Wmigration_check option of the c89 utility along with
-Wversion2.
•
Running a migration check does the following:
°
Analyses VERSION2 source code using the compiler and header files provided
beginning with G06.20
°
Issues a warning when a class or member function is used that has changed or
become obsolete for VERSION3
•
When MIGRATION_CHECK is specified, no object file is produced by NMCPLUS,
CPPCOMP, or c89. The listing, if enabled, itemizes the functions called from the
VERSION2 library that are not supported in VERSION3.
°
On OSS, a listing is produced only if you also specify -Wnosuppress.
Diagnostics are also sent to stderr.
°
On Guardian, a listing is produced by default unless you also specify NOLIST
on the command line. The listing is directed to the hometerm unless an OUT
file is specified.
MIGRATION_CHECK
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler Not set Not set
G-series TNS c89 utility Not set Not set
TNS/R native C and C++ compilers Not set Not set
Native c89 utility Not set Not set
TNS/E native C and C++ compilers Not set Not set