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

--- Comment #12 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- Comment #11 from Patrick Palka <ppalka at gcc dot gnu.org> ---
> I posted a patch at
> https://gcc.gnu.org/pipermail/gcc-patches/2021-February/565726.html that does
> this, but also salvages the verification via printf by first checking if the
> leading hex digit of the printf output agrees with that of to_chars. 
> Conveniently, the patch sidesteps the question of choosing a consistent
> representation vs shortest representation :)

I've just tested the patch on both i386-pc-solaris2.11 and
sparc-sun-solaris2.11 (32 and 64-bit each): as before, the 32-bit test
XFAILs while the 64-bit test continues to FAIL:

before:

/vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/20_util/to_chars/long_double.cc:104:
void test01(): Assertion '!strcmp(to_chars_buffer, printf_buffer+strlen("0x"))'
failed.

now:

/vol/gcc/src/hg/master/local/libstdc++-v3/testsuite/20_util/to_chars/long_double.cc:192:
void test02(): Assertion '!memcmp(printf_buffer, to_chars_buffer,
output_length)' failed.

Reply via email to