On Tue, 11 Sep 2018, Qing Zhao wrote: > '-finline-visibility=[all|extern|static]' > By default, GCC inlines functions without considering their > visibility. This flag allows finer control of inlining based on > their visibility. > > The value 'extern' tells the compiler to only inline functions with > external visibility. The value 'static' tells the compiler to only > inline functions with static visibility. The value 'all' tells the > compilers to inline functions without considering their visibility.
Is there a use case for -finline-visibility=extern? This use of "visibility" is inappropriate. Symbol visibility already means something else in the ELF standard. What you're referring to as static/extern is termed either internal/external linkage in C language, or local/global binding in ELF. Alexander