diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-07-13 10:44:57 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-07-19 11:03:31 +0100 |
commit | 58303d42809f0e01f23262f592d37943f7703f71 (patch) | |
tree | 464e441812242893c5e468b7a0a13db32385a270 /gcc/tree-ssa-phiopt.cc | |
parent | 85da0b40538fb0d17d89de1e7905984668e3dfef (diff) | |
download | gcc-58303d42809f0e01f23262f592d37943f7703f71.zip gcc-58303d42809f0e01f23262f592d37943f7703f71.tar.gz gcc-58303d42809f0e01f23262f592d37943f7703f71.tar.bz2 |
libstdc++: Check autoconf macros for strtof and strtold [PR110653]
As well as the _GLIBCXX_USE_C99_STDLIB check, we also have a separate
check in linkage.m4 for just strtof and strtold. We can use that to
declare std::strtof and std::strtold in <cstdlib> for additional
targets. That allows us to enable std::stold on hpux11.11 which is
missing strtoll, strtoull and strtof, so doesn't define
_GLIBCXX_USE_C99_STDLIB. Although it doesn't help hpux11.11, we can
define std::stof for more targets this way too.
As with the previous commit for PR110653, this only affects the narrow
character overloads. std::stof and std::stold for wstring still requires
C99 <wchar.h> support.
libstdc++-v3/ChangeLog:
PR libstdc++/110653
* include/bits/basic_string.h [_GLIBCXX_HAVE_STRTOF] (stof):
Define.
[_GLIBCXX_HAVE_STRTOLD] (stold): Define.
* include/c_global/cstdlib [_GLIBCXX_HAVE_STRTOF] (strtof):
Declare in namespace std.
[_GLIBCXX_HAVE_STRTOLD] (strtold): Likewise.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions