diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2022-11-26 08:51:58 +0100 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2023-01-14 14:24:35 +0100 |
commit | e176c031f02d01623b697c3c78c85cebb0506e87 (patch) | |
tree | 684eff3d8163e31106427391c40744691700fe89 | |
parent | 5b3a88640f962d4ffca31ae651bed2d8672f1a8c (diff) | |
download | gcc-e176c031f02d01623b697c3c78c85cebb0506e87.zip gcc-e176c031f02d01623b697c3c78c85cebb0506e87.tar.gz gcc-e176c031f02d01623b697c3c78c85cebb0506e87.tar.bz2 |
libstdc++: [_GLIBCXX_INLINE_VERSION] Add to_chars/from_chars symbols export
libstdc++-v3/ChangeLog
* include/std/format [_GLIBCXX_INLINE_VERSION](to_chars): Adapt __asm symbol
specifications.
* config/abi/pre/gnu-versioned-namespace.ver: Add to_chars/from_chars symbols
export.
-rw-r--r-- | libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver | 6 | ||||
-rw-r--r-- | libstdc++-v3/include/std/format | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver b/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver index 06ccaa8..7fc8151 100644 --- a/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver +++ b/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver @@ -142,6 +142,12 @@ GLIBCXX_8.0 { _ZN14__gnu_parallel9_Settings3getEv; _ZN14__gnu_parallel9_Settings3setERS0_; + # to_chars/from_chars _Float128 + _ZNSt3__88to_charsEPcS0_DF128_; + _ZNSt3__88to_charsEPcS0_DF128_NS_12chars_formatE; + _ZNSt3__88to_charsEPcS0_DF128_NS_12chars_formatEi; + _ZNSt3__810from_charsEPKcS1_RDF128_NS_12chars_formatE; + local: *; }; diff --git a/libstdc++-v3/include/std/format b/libstdc++-v3/include/std/format index 77f7c9f..1cce4eb 100644 --- a/libstdc++-v3/include/std/format +++ b/libstdc++-v3/include/std/format @@ -1296,15 +1296,27 @@ namespace __format // Make them available as std::__format::to_chars. to_chars_result to_chars(char*, char*, _Float128) noexcept +# if _GLIBCXX_INLINE_VERSION + __asm("_ZNSt3__88to_charsEPcS0_DF128_"); +# else __asm("_ZSt8to_charsPcS_DF128_"); +# endif to_chars_result to_chars(char*, char*, _Float128, chars_format) noexcept +# if _GLIBCXX_INLINE_VERSION + __asm("_ZNSt3__88to_charsEPcS0_DF128_NS_12chars_formatE"); +# else __asm("_ZSt8to_charsPcS_DF128_St12chars_format"); +# endif to_chars_result to_chars(char*, char*, _Float128, chars_format, int) noexcept +# if _GLIBCXX_INLINE_VERSION + __asm("_ZNSt3__88to_charsEPcS0_DF128_NS_12chars_formatEi"); +# else __asm("_ZSt8to_charsPcS_DF128_St12chars_formati"); +# endif # endif #endif |