-qstrict

Description

Turns off the aggressive optimizations that have the potential to alter the semantics of your program.

Syntax

Read syntax diagramSkip visual syntax diagram>>- -q--+-nostrict-+-------------------------------------------><
        '-strict---'

See also #pragma options.

Default

Notes

-qstrict turns off the following optimizations:

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

-qstrict sets -qfloat=nofltint:norsqrt.

-qnostrict sets -qfloat=fltint:rsqrt.

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

Related information