]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix libstdc++ build on some targets [PR107811]
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Nov 2022 10:53:54 +0000 (11:53 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 23 Nov 2022 10:53:54 +0000 (11:53 +0100)
commite6a32c12b4ef87c084d29863c79503344126d101
treeab19abc9bd8f46fd886a1f143c8a3dd97f08b7fe
parent1cac00d013856fea4cee0f13c4959c8e21afd2d9
libstdc++: Fix libstdc++ build on some targets [PR107811]

fast_float library relies on size_t being 32-bit or larger and float/double
being IEEE single/double.  Otherwise we only use strtod/strtof.
In 3 spots I've used fast_float namespace stuff unconditionally in one
function, which breaks the build if fast_float is disabled.

2022-11-23  Jakub Jelinek  <jakub@redhat.com>

PR libstdc++/107811
* src/c++17/floating_from_chars.cc (__floating_from_chars_hex): Guard
fast_float uses with #if USE_LIB_FAST_FLOAT and for mantissa_bits and
exponent_bits provide a fallback.
libstdc++-v3/src/c++17/floating_from_chars.cc