FORTRAN Reference Manual
Compiler Directives
FORTRAN Reference Manual—528615-001
10-52
POP Compiler Directive
POP Compiler Directive
The POP directive restores the state of a directive that was saved by a previous PUSH
directive.
directive
is any of the following FORTRAN compiler directives:
BOUNDSCHECK
CODE
ICODE
LIST
MAP
PRINTSYM
WARN
The PUSH and POP directives can be useful in auxiliary source input files that are
referenced from other files by SOURCE directives. Within an auxiliary source file, you
can save the state of certain compiler directives when you begin compiling statements
from the file, and restore the state of those directives when you complete reading from
the auxiliary source file, without knowing what the surrounding context was.
Considerations
•
You can specify a POP directive on the FORTRAN command line, or anywhere in
any source input file, provided that directive is permitted there. You can have
any number of POP directives in a compilation.
•
The compiler maintains a push-down stack with a maximum of 16 elements for
each directive that can be pushed and popped. If more than 16 elements have
been pushed into a directive’s stack, the oldest elements are lost. No message is
given when an element is lost.
•
If more than 16 elements have been popped from a directive’s stack, the POP
directive restores the default state for that directive.
POP
directive
directive , directive[]. . .










