This option controls whether inline functions are treated as static or extern. By default, XL C/C++ 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 function appear in different source files.
.-nostaticinline-. >>- -q--+-staticinline---+-------------------------------------><
Using the -qstaticinline option causes function f in the following declaration to be treated as static, even though it is not explicitly declared as such. A separate function body is created for each definition of the function. Note that this can lead to a substantial increase in code size
inline void f() {/*...*/};
Using the default, -qnostaticinline, gives f external linkage.
Related information