GMP test fails with -flto

2019-06-24 Thread Martin Liška
Hi. Using -flto one can see a test failure: abuild@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=0x3F got =[00 00 00 00 00 00 F0 3F] 1 got ex

Re: GMP test fails with -flto

2019-06-24 Thread Marc Glisse
On Mon, 24 Jun 2019, Martin Liška wrote: Using -flto one can see a test failure: This is well known, see the archives for details. It is a combination of 2 issues: - (thin) LTO prevents configure from guessing the floating point format - a bug in the generic GMP code (fixed in master IIRC)