https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107370
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I get the following output from ubuntu 1804's gcc and the trunk of gcc from
20220808:
ubuntu@ubuntu:~/src/upstream-gcc\# ~/upstream-gcc/bin/gcc t54.c -O2
ubuntu@ubuntu:~/src/upstream-gcc\# ./a.out
1.4142135623730950488
trunk gcc:
.LC1:
.word 325511829
.word -922176773
.word -429395012
.word 1073703433
ubuntu gcc:
.LC0:
.word 325511829
.word 3372790523
.word 3865572284
.word 1073703433
Both of these are the same, just unsigned vs signed output.
As far as I can tell, this is not a GCC issue. It might be a binutils issue or
a glibc issue with printf.