strict

Option Type Default Value #pragma options C C++
-qoption see below STRICT x x

Syntax

    -qstrict | -qnostrict 
    STRICT | NOSTRICT 

Purpose
Turns off the aggressive optimizations that have the potential to alter the semantics of your program. The default is -qnostrict for -O3 and higher optimizations. It is -qstrict for -O2

Notes
-qstrict turns off the following optimizations:

This option is only valid with -O2 or higher optimization levels.

-qstrict sets -qfloat=nofltint:nosqrt.

-qnostrict sets -qfloat=fltint:sqrt.

You can use -qfloat=fltint and -qfloat=rsqrt to override the -qstrict settings.

For example:

If there is a conflict between the options set with -qnostrict and -qfloat=options, the last option specified is recognized.

Example
To compile myprogram.c so that the aggressive optimizations of -O3 are turned off, range checking is turned off (-qfloat=fltint), and division by the result of a square root is replaced by multiplying by the reciprocal (-qfloat=rsqrt), enter:

xlC myprogram.c -O3 -qstrict -qfloat=fltint:rsqrt


List of Batch Compiler Options and Their Defaults
Equivalent Batch Compile-Link and Incremental Build Options