[PATCH] D50968: [AST] make a static local variable in a hidden inlined fuction visible
Jinsong Ji via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 20 08:36:13 PDT 2018
jsji added subscribers: steven.zhang, jsji.
jsji added a comment.
GCC option document mentions explicitly that local static variables should NOT be affected by -fvisibility-inlines-hidden.
https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html
-fvisibility-inlines-hidden
...
The behavior of this switch is not quite the same as marking the methods as hidden directly, because it does not affect static variables local to the function or cause the compiler to deduce that the function is defined in only one shared object.
FYI. @steven.zhang
https://reviews.llvm.org/D50968
More information about the llvm-commits
mailing list