]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/20_util/to_chars/long_double.cc
libstdc++: Disable floating_to_chars.cc on 16 bit targets
authorJoern Rennecke <joern.rennecke@riscy-ip.com>
Thu, 20 May 2021 12:21:41 +0000 (13:21 +0100)
committerJoern Rennecke <joern.rennecke@riscy-ip.com>
Thu, 20 May 2021 12:21:41 +0000 (13:21 +0100)
commit66c5f24788652a49b528f14e23e8121ad0935ace
tree6ff082292f9467871f06345fa7873dd956b6e2b6
parent928e4ff1aea45165efbdc8ba6e409b191c2dde6c
libstdc++: Disable floating_to_chars.cc on 16 bit targets

This patch conditionally disables the compilation of floating_to_chars.cc
on 16 bit targets, thus fixing a build failure for these targets as
the POW10_SPLIT_2 array exceeds the maximum object size.

libstdc++-v3/
PR libstdc++/100361
* include/std/charconv (to_chars): Hide the overloads for
floating-point types for 16 bit targets.
* src/c++17/floating_to_chars.cc: Don't compile for 16 bit targets.
* testsuite/20_util/to_chars/double.cc: Run this test only on
size32plus targets.
* testsuite/20_util/to_chars/float.cc: Likewise.
* testsuite/20_util/to_chars/long_double.cc: Likewise.
libstdc++-v3/include/std/charconv
libstdc++-v3/src/c++17/floating_to_chars.cc
libstdc++-v3/testsuite/20_util/to_chars/double.cc
libstdc++-v3/testsuite/20_util/to_chars/float.cc
libstdc++-v3/testsuite/20_util/to_chars/long_double.cc