-qlibansi

Pragma equivalent

#pragma options [no]libansi

Purpose

Assumes that all functions with the name of an ANSI C library function are in fact the system functions.

When libansi is in effect, the optimizer can generate better code because it will know about the behavior of a given function, such as whether or not it has any side effects.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-nolibansi-.   
>>- -q--+-libansi---+------------------------------------------><

Defaults

-qnolibansi

Predefined macros

C++ only __LIBANSI__ is defined to 1 when libansi is in effect; otherwise, it is not defined.



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