Test Error on GMP6.0.0.a
Sun May 3 19:30:00 GMT 2015
On Sun, 3 May 2015, Henning Thedens wrote:
> On my System (Ubuntu14.04 on an Intel Sandy-bridge) gcc 4.9.2 builds gmp 6.0.0.a fine with -flto -fuse-linker-plugin as CFLAGS, but testing gives the following error:
> 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
> Adding -ffat-lto-objects to the flags, testing gives no errors.
> Is this an gcc problem?
> There was an discussion on gmplib.org about this error on GMP 5.1 using Clang, but i did not figure out whether there was any resolution.
I assume you are talking about this thread?
But the following posts say quite clearly that the issues are in GMP, not
in the compilers (so this is the wrong list). I don't think it was fixed,
but you could download a snapshot from gmplib.org and test it.
More information about the Gcc-help