aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/parse.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-07-24 11:45:43 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-07-24 20:45:14 +0100
commit31c3b67dfc6e67773d13260bc38b833663698b74 (patch)
tree8b6292546baddd0e76103e8add0cb63794aedddc /gcc/fortran/parse.cc
parentbe16bb885ef141dc497f6e7358ac82e9bed4f34d (diff)
downloadgcc-31c3b67dfc6e67773d13260bc38b833663698b74.zip
gcc-31c3b67dfc6e67773d13260bc38b833663698b74.tar.gz
gcc-31c3b67dfc6e67773d13260bc38b833663698b74.tar.bz2
libstdc++; Do not use strtold for hppa-hpux [PR110653]
When I switched std::stold to depend on HAVE_STRTOLD that enabled it for hppa-hpux which defines HAVE_BROKEN_STRTOLD. Add a check for that macro so that we don't use strtold, and fall through to the check for double and long double having the same representation. That should mean we define a conforming std::stold in terms of std::stod, instead of trying to use the broken strtold. Also fix a logic error in the fallback definition of std::stod, which should not treat zero as a subnormal number. libstdc++-v3/ChangeLog: PR libstdc++/110653 * include/bits/basic_string.h [!HAVE_STOF] (stof): Do not throw an exception for zero result. [HAVE_BROKEN_STRTOLD] (stold): Do not use strtold.
Diffstat (limited to 'gcc/fortran/parse.cc')
0 files changed, 0 insertions, 0 deletions