gmp-4.1.3-rc1 ... p5 gcc 2.95 -O3
user42 at zip.com.au
Sat Apr 24 22:49:55 CEST 2004
David Newman <david.newman at jesus.ox.ac.uk> writes:
> I've had a few problems compiling with -O3, are these known?
The only problems are unknown.
> pentium-pc-linux-gnu (P200) running gcc 2.95 and configured with
> --enable-mpfr CFLAGS="-O3 -march=pentium -fomit-frame-pointer" ::
> failed as follows:
I don't get that with recent debian 2.95.4.
> ERROR: mpz_add or mpz_sub incorrect in test 729
> op1 =
> op2 =
> FAIL: t-addsub
Hmm. Might have to trace that through to see what happens. It adds
then subtracts and expects to get back where it started, or something
> mpz_congruent_2exp_p wrong
> expected 1 got 0
> FAIL: t-cong_2exp
If this is from check_random in that program then it might be add/sub
related too. It tries to get numbers it expects should be congruent
by subtracting the difference between the remainders.
> Again, all tests passed after changing "-O3" to "-O2".
A bit suggestive of gcc trouble.
More information about the gmp-devel