]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Make std::from_chars always round to nearest
authorJonathan Wakely <jwakely@redhat.com>
Mon, 27 Jul 2020 14:51:16 +0000 (15:51 +0100)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:19:51 +0000 (13:19 -0300)
commitb583d3f8d6ad3c26f8efc5d7dbee9f9969a593a0
treef26ba437958a4e6e73460c5662804014dc607aa6
parent7545858073074d395f495d0e09c8921b1b43d163
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.
libstdc++-v3/src/c++17/floating_from_chars.cc
libstdc++-v3/testsuite/20_util/from_chars/4.cc
libstdc++-v3/testsuite/20_util/from_chars/5.cc
libstdc++-v3/testsuite/20_util/from_chars/6.cc [new file with mode: 0644]
This page took 0.057373 seconds and 6 git commands to generate.