[libcxx-commits] [libcxx] [libc++] Add visibility annotations to the std namespace with GCC (PR #133233)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Apr 2 07:43:15 PDT 2025
================
@@ -60,6 +60,10 @@ Improvements and New Features
- Updated formatting library to Unicode 16.0.0.
+- When using GCC, the ``std`` namespace is now annotated with ``[[gnu::visibility("default")]]``. This may cause changes
+ in the symbols exported from shared libraries when building with ``-fvisibility=hidden``. This also fixes RTTI
+ comparison between shared libraries, since all RTTI has the correct visibility now.
----------------
ldionne wrote:
```suggestion
comparison between shared libraries, since all RTTI has the correct visibility now. There is no behavior change on Clang.
```
https://github.com/llvm/llvm-project/pull/133233
More information about the libcxx-commits
mailing list