diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-07-27 15:51:16 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-07-27 15:51:24 +0100 |
commit | 2251b4a5423efa8ee0d7e67537b63e404a1f6afa (patch) | |
tree | c0b930292fc1a0859bd483df8c9895297557f615 /libcc1 | |
parent | 7355a9408b990cdd20db91e2e1ba0b03e801d6a6 (diff) | |
download | gcc-2251b4a5423efa8ee0d7e67537b63e404a1f6afa.zip gcc-2251b4a5423efa8ee0d7e67537b63e404a1f6afa.tar.gz gcc-2251b4a5423efa8ee0d7e67537b63e404a1f6afa.tar.bz2 |
libstdc++: Make std::from_chars always round to nearest
Also fix the tests that fail on targets without uselocale.
libstdc++-v3/ChangeLog:
* src/c++17/floating_from_chars.cc (from_chars_impl): Ensure
that FE_NEAREST is used.
* testsuite/20_util/from_chars/4.cc: Do not use if constexpr in
a { target c++14 } test.
[!_GLIBCXX_HAVE_USELOCALE]: Disable all tests.
* testsuite/20_util/from_chars/5.cc [!_GLIBCXX_HAVE_USELOCALE]:
Likewise.
* testsuite/20_util/from_chars/6.cc: New test.
Diffstat (limited to 'libcc1')
0 files changed, 0 insertions, 0 deletions