[_GLIBCXX_INLINE_VERSION] Add missing symbols

Message ID 1bf2bf67-de92-0031-bd51-a3443b20cee7@gmail.com
State Committed
Commit 7c0ae1a85bf7c33965188ab9d37f01080ab17968
Headers
Series [_GLIBCXX_INLINE_VERSION] Add missing symbols |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gcc_build--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gcc_check--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 warning Patch is already merged

Commit Message

François Dumont Oct. 5, 2023, 5:03 p.m. UTC
  Here is a patch to fix following test case in gcc:

gcc/testsuite/g++.dg/cpp23/ext-floating13.C

     libstdc++: [_GLIBCXX_INLINE_VERSION] Add missing float symbols

     libstdc++-v3/ChangeLog:

             * config/abi/pre/gnu-versioned-namespace.ver: Add missing 
symbols
             for _Float{16,32,64,128,32x,64x,128x}.

Ok to commit ?

François
  

Comments

Jonathan Wakely Oct. 5, 2023, 5:05 p.m. UTC | #1
On Thu, 5 Oct 2023 at 18:04, François Dumont <frs.dumont@gmail.com> wrote:
>
> Here is a patch to fix following test case in gcc:
>
> gcc/testsuite/g++.dg/cpp23/ext-floating13.C
>
>      libstdc++: [_GLIBCXX_INLINE_VERSION] Add missing float symbols
>
>      libstdc++-v3/ChangeLog:
>
>              * config/abi/pre/gnu-versioned-namespace.ver: Add missing
> symbols
>              for _Float{16,32,64,128,32x,64x,128x}.
>
> Ok to commit ?

OK, thanks.


>
> François
>
  

Patch

diff --git a/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver b/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver
index 267ab8fc719..9fab8bead15 100644
--- a/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver
+++ b/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver
@@ -318,6 +318,15 @@  CXXABI_2.0 {
     _ZTIPD[fde];
     _ZTIPKD[fde];
 
+    # typeinfo for _Float{16,32,64,128,32x,64x,128x} and
+    # __bf16
+    _ZTIDF[0-9]*[_bx];
+    _ZTIPDF[0-9]*[_bx];
+    _ZTIPKDF[0-9]*[_bx];
+    _ZTIu6__bf16;
+    _ZTIPu6__bf16;
+    _ZTIPKu6__bf16;
+
     # typeinfo for decltype(nullptr)
     _ZTIDn;
     _ZTIPDn;