diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-04-08 17:37:32 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2024-04-10 00:21:41 +0100 |
commit | 92b38ec84f2990d217f036dc6c5a32cde5ecfb93 (patch) | |
tree | 55b9031932aecd9623a1d03c1d436752c39b9f53 /gcc | |
parent | 639215c5eb6c56ba3830cd868d1d3ddd700b4c90 (diff) | |
download | gcc-92b38ec84f2990d217f036dc6c5a32cde5ecfb93.zip gcc-92b38ec84f2990d217f036dc6c5a32cde5ecfb93.tar.gz gcc-92b38ec84f2990d217f036dc6c5a32cde5ecfb93.tar.bz2 |
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.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions