strict_induction

Applies to C Applies to C++

Purpose

Disables loop induction variable optimizations that have the potential to alter the semantics of your program. Such optimizations can change the result of a program if truncation or sign extension of a loop induction variable should occur as a result of variable overflow or wrap-around.

Syntax

>>- -q--+-nostrict_induction-+---------------------------------><
        '-strict_induction---'
 
 

Default

Notes

The specifying option -O2 implies -qnostrict_induction. Specifying both is unnecessary.

Use of option -qstrict_induction is generally not recommended because it can cause considerable performance degradation.

Related references

IBM Copyright 2003