C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
13-62
MIGRATION_CHECK
int J;
}; // 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 environment, the MIGRATION_CHECK pragma must be entered on
the NMCPLUS or CPPCOMP command line along with the VERSION2 directive.
On OSS environment or Windows, specify the -Wmigration_check option of the
c89 utility along with
-Wversion2.
Running a migration check does:
°
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 environment, a listing is produced only if you also specify -
Wnosuppress. Diagnostics are also sent to stderr.
°
On Guardian environment, 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