Re: GMP and GCC 4.3.2

2009-12-18 Thread Jean Christophe Beyler
--disable-nls --enable-languages=c --with-newlib --disable-libssp --with-mpfr=/home/beyler/myarch64/local Thread model: single gcc version 4.3.3 (GCC) What's myarch64? I got the correct result for your test with vanilla gcc-4.3.2 and gmp-4.3.1 on Debian unstable AMD64. Jie

Re: GMP and GCC 4.3.2

2009-12-17 Thread Andrew Haley
Jean Christophe Beyler wrote: Dear all, Found on http://gmplib.org/. N.B. gcc 4.3.2 miscompiles GMP 4.3.x on 64-bit machines. The problem is specific to that very release; specifically gcc 4.3.1 and 4.3.3 seem to work fine. Since porting to a newer version is difficult for me right now

Re: GMP and GCC 4.3.2

2009-12-17 Thread Jay Foad
If it's the bug being discussed here: http://gmplib.org/list-archives/gmp-discuss/2009-April/003717.html ... then it was reported as fixed here: http://gcc.gnu.org/ml/gcc/2009-04/msg00562.html Jay.

Re: GMP and GCC 4.3.2

2009-12-17 Thread Jean Christophe Beyler
Actually, I just finished updating my 4.3.2 to 4.3.3 and tested it and I still have the same issue. This seems to be a problem more than just 4.3.2. Here is the test program: #include stdio.h #include gmp.h int main() { mpz_t a,b; mpz_init_set_str(a, 100, 10); // program works

Re: GMP and GCC 4.3.2

2009-12-17 Thread Jie Zhang
-1.16.0/newlib/libc/include --prefix=/home/beyler/myarch64/local --disable-nls --enable-languages=c --with-newlib --disable-libssp --with-mpfr=/home/beyler/myarch64/local Thread model: single gcc version 4.3.3 (GCC) What's myarch64? I got the correct result for your test with vanilla gcc-4.3.2

GMP and GCC 4.3.2

2009-12-16 Thread Jean Christophe Beyler
Dear all, Found on http://gmplib.org/. N.B. gcc 4.3.2 miscompiles GMP 4.3.x on 64-bit machines. The problem is specific to that very release; specifically gcc 4.3.1 and 4.3.3 seem to work fine. Since porting to a newer version is difficult for me right now, I was wondering if anybody worked

Re: GMP and GCC 4.3.2

2009-12-16 Thread Richard Guenther
On Wed, Dec 16, 2009 at 7:50 PM, Jean Christophe Beyler jean.christophe.bey...@gmail.com wrote: Dear all, Found on http://gmplib.org/. N.B. gcc 4.3.2 miscompiles GMP 4.3.x on 64-bit machines. The problem is specific to that very release; specifically gcc 4.3.1 and 4.3.3 seem to work fine

Re: GMP and GCC 4.3.2

2009-12-16 Thread Jean Christophe Beyler
: On Wed, Dec 16, 2009 at 7:50 PM, Jean Christophe Beyler jean.christophe.bey...@gmail.com wrote: Dear all, Found on http://gmplib.org/. N.B. gcc 4.3.2 miscompiles GMP 4.3.x on 64-bit machines. The problem is specific to that very release; specifically gcc 4.3.1 and 4.3.3 seem to work fine

Re: GMP and GCC 4.3.2

2009-12-16 Thread Steven Bosscher
, Richard Guenther richard.guent...@gmail.com wrote: On Wed, Dec 16, 2009 at 7:50 PM, Jean Christophe Beyler jean.christophe.bey...@gmail.com wrote: Dear all, Found on http://gmplib.org/. N.B. gcc 4.3.2 miscompiles GMP 4.3.x on 64-bit machines. The problem is specific to that very release