diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-07-13 10:44:57 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-07-13 17:55:00 +0100 |
commit | a1d12752f8d45df5d7962cef6e2a87585002e982 (patch) | |
tree | ae0aab3af85cf7a70dcb52daee9d1e94411ab6e3 /gcc/fortran/dump-parse-tree.cc | |
parent | 337649c1660211db733c1ba34ae260b8c66a3578 (diff) | |
download | gcc-a1d12752f8d45df5d7962cef6e2a87585002e982.zip gcc-a1d12752f8d45df5d7962cef6e2a87585002e982.tar.gz gcc-a1d12752f8d45df5d7962cef6e2a87585002e982.tar.bz2 |
libstdc++: std::stoi etc. do not need C99 <stdlib.h> support [PR110653]
std::stoi, std::stol, std::stoul, and std::stod only depend on C89
functions, so don't need to be guarded by _GLIBCXX_USE_C99_STDLIB
std::stoll and std::stoull don't need C99 strtoll and strtoull if
sizeof(long) == sizeof(long long).
std::stold doesn't need C99 strtold if DBL_MANT_DIG == LDBL_MANT_DIG.
This only applies to the narrow character overloads, the wchar_t
overloads depend on a separate _GLIBCXX_USE_C99_WCHAR macro and none of
them can be implemented in C89 easily.
libstdc++-v3/ChangeLog:
PR libstdc++/110653
* include/bits/basic_string.h (stoi, stol, stoul, stod): Do not
depend on _GLIBCXX_USE_C99_STDLIB.
[__LONG_WIDTH__ == __LONG_LONG_WIDTH__] (stoll, stoull): Define
in terms of stol and stoul respectively.
[__DBL_MANT_DIG__ == __LDBL_MANT_DIG__] (stold): Define in terms
of stod.
Diffstat (limited to 'gcc/fortran/dump-parse-tree.cc')
0 files changed, 0 insertions, 0 deletions