-qstrict_induction
Category
Pragma equivalent
None.
Purpose
Prevents the compiler from performing induction (loop counter) variable optimizations. Such optimizations might be problematic when integer overflow operations involving the induction variables occurs.
Defaults
- -qstrict_induction
- -qnostrict_induction when -O2 or higher optimization level is in effect
Usage
When using -O2 or higher optimization, if the intended truncation or sign extension of a loop induction variable resulting from variable overflow or wrap-around does not occur, you can specify -qstrict_induction to prevent induction variable optimizations. However, use of -qstrict_induction is generally not recommended because it can cause considerable performance degradation.
Predefined macros
None.