[Bug c++/113958] support visibility attribute for typeinfo symbol

2024-02-16 Thread noelgrandin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113958 --- Comment #3 from Noel Grandin --- Andrew, the specific application here is a very large (10MLoc) codebase (LibreOffice), where we have lots of very large classes with tons of methods, where I want to limit symbol visibility to only the

[Bug c++/113958] support visibility attribute for typeinfo symbol

2024-02-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113958 --- Comment #2 from Andrew Pinski --- I am not 100% sure if type_visibility is needed here or in general. You can also use -fvisibility-inlines-hidden to hide methods that are declared as inline which I suspect you want really too.

[Bug c++/113958] support visibility attribute for typeinfo symbol

2024-02-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113958 --- Comment #1 from Andrew Pinski --- You can use visibility on the type even Like: ``` struct __attribute__ ((visibility("default"))) Foo1{ virtual void some_member() = 0; }; struct __attribute__ ((visibility("default"))) Foo : Foo1 {