https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110653

--- Comment #22 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:31c3b67dfc6e67773d13260bc38b833663698b74

commit r14-2753-g31c3b67dfc6e67773d13260bc38b833663698b74
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Mon Jul 24 11:45:43 2023 +0100

    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.

Reply via email to