-qstaticinline (C++ only)
Category
Pragma equivalent
None.
Purpose
Controls whether inline functions are treated as having static or extern linkage.
When -qnostaticinline is in effect, the compiler treats inline functions as extern: only one function body is generated for a function marked with the inline function specifier, regardless of how many definitions of the same function appear in different source files. When -qstaticinline is in effect, the compiler treats inline functions as having static linkage: a separate function body is generated for each definition in a different source file of the same function marked with the inline function specifier.
Defaults
-qnostaticinline
Usage
When -qnostaticinline is in effect, any redundant functions definitions for which no bodies are generated are discarded by default.
Predefined macros
None.
Examples
inline void f() {/*...*/};