-qignerrno

Purpose

Allows the compiler to perform optimizations as if system calls would not modify errno.

Some system library functions set errno when an exception occurs. When ignerrno is in effect, the setting and subsequent side effects of errno are ignored. This option allows the compiler to perform optimizations without regard to what happens to errno.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-noignerrno-.   
>>- -q--+-ignerrno---+-----------------------------------------><

Defaults

  • -qnoignerrno
  • -qignerrno when the -O3 or higher optimization level is in effect.

Usage

If you require both -O3 or higher and the ability to set errno, you should specify -qnoignerrno after the optimization option on the command line.

Predefined macros

C++ only __IGNERRNO__ is defined to 1 when -qignerrno is in effect; otherwise, it is undefined.

Related information



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us