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

--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:d1389be011f0fac422e98e795c55156052c4d960

commit r13-4284-gd1389be011f0fac422e98e795c55156052c4d960
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Thu Nov 24 10:37:50 2022 +0100

    libstdc++: Workaround buggy printf on Solaris in to_chars/float128_c++23.cc
test [PR107815]

    As mentioned in the PR, Solaris apparently can handle right
    printf ("%.0Lf\n", 1e+202L * __DBL_MAX__);
    which prints 511 chars long number, but can't handle
    printf ("%.0Lf\n", 1e+203L * __DBL_MAX__);
    nor
    printf ("%.0Lf\n", __LDBL_MAX__);
    properly, instead of printing 512 chars long number for the former and
    4933 chars long number for the second, it handles them as
    if user asked for "%.0Le\n" in those cases.

    The following patch disables the single problematic value that fails
    in the test, and also fixes commented out debugging printouts.

    2022-11-24  Jakub Jelinek  <ja...@redhat.com>

            PR libstdc++/107815
            * testsuite/20_util/to_chars/float128_c++23.cc (test): Disable
            __FLT128_MAX__ test on Solaris.  Fix up commented out debugging
            printouts.

Reply via email to