]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix build for targets without FP std::from_chars [PR114633]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 8 Apr 2024 16:37:32 +0000 (17:37 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 9 Apr 2024 23:21:41 +0000 (00:21 +0100)
commit92b38ec84f2990d217f036dc6c5a32cde5ecfb93
tree55b9031932aecd9623a1d03c1d436752c39b9f53
parent639215c5eb6c56ba3830cd868d1d3ddd700b4c90
libstdc++: Fix build for targets without FP std::from_chars [PR114633]

If the faster std::from_chars is not supported for floating-point types
then just extract the value from the stream using operator>>.

This fixes a build error for targets where __cpp_lib_to_chars is not
defined.

libstdc++-v3/ChangeLog:

PR libstdc++/114633
* include/bits/chrono_io.h (_Parser::operator()) <'S'>: Use
stream extraction if std::from_chars is not available.
libstdc++-v3/include/bits/chrono_io.h