Issue |
133905
|
Summary |
clang: add `-ftype-visibility` compiler flag
|
Labels |
|
Assignees |
|
Reporter |
milianw
|
For reference, please see https://github.com/llvm/llvm-project/issues/133725, esp. https://github.com/llvm/llvm-project/issues/133725#issuecomment-2769215037
The gist is that it is currently very easy to silently encounter runtime breakage when using types relying on RTTI (like `std::any`) across DSO boundaries when compiling with `-fvisibility=hidden -fvisibility-inlines-hidden`.
It would be ideal if one could globally define the type visibility, and possibly more (vtables are separate?).
Once that is in, it can be used to globally make type information stable across DSO boundaries to prevent accidental `std::any` breakage and similar.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs