ignprag

Applies to C Applies to C++

Purpose

Instructs the compiler to ignore certain pragma statements.

Syntax


Syntax Diagram

where pragma statements affected by this option are:


disjoint Ignores all #pragma disjoint directives in the source file.
isolated Ignores all #pragma isolated_call directives in the source file.
all Ignores all #pragma isolated_call and #pragma disjoint directives in the source file.
omp Ignores all OpenMP parallel processing directives in the source file, such as #pragma omp parallel, #pragma omp critical.

See also #pragma options.

Notes

This option is useful for detecting aliasing pragma errors. Incorrect aliasing gives runtime errors that are hard to diagnose. When a runtime error occurs, but the error disappears when you use -qignprag with the -O option, the information specified in the aliasing pragmas is likely incorrect.

Example

To compile myprogram.c and ignore any #pragma isolated_call directives, enter:

xlc myprogram.c -qignprag=isolated 

Related References

Compiler Command Line Options
#pragma disjoint
#pragma isolated_call
#pragma options
Pragmas to Control Parallel Processing IBM Copyright 2003