GMP test fails with -flto

Martin Liška mliska at suse.cz
Mon Jun 24 13:46:04 UTC 2019


Hi.

Using -flto one can see a test failure:

abuild at marxinbox:~/rpmbuild/BUILD/gmp-6.1.2/tests/mpz> ./t-get_d_2exp 
mpz_get_d_2exp wrong on 2**54-1
result out of range, expect 0.5 <= got < 1.0
   rnd_mode = 0
   data[i]  = 54
   z    =0x3FFFFFFFFFFFFF
   got  =[00 00 00 00 00 00 F0 3F] 1
   got exp  54
Aborted (core dumped)

Step to reproduce: add -flto to CFLAGS. I'm using latest GCC 9.1 release.

Thanks,
Martin



More information about the gmp-bugs mailing list