Bug#524472: gcc-4.3: gcc 4.3.2 miscompiles GMP 4.3.0

2009-04-21 Thread Vincent Lefevre
retitle 524472 [PR tree-optimization/36765] gcc-4.3: gcc 4.3.2 strict-aliasing bug / miscompiles GMP 4.3.0 thanks I've added the upstream bug reference to the title, in case someone else wonders... -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog:

Bug#524472: gcc-4.3: gcc 4.3.2 miscompiles GMP 4.3.0

2009-04-17 Thread Vincent Lefevre
retitle 524472 gcc-4.3: gcc 4.3.2 strict-aliasing bug / miscompiles GMP 4.3.0 thanks I've tracked down the bug and managed to write a simple testcase: /* With GCC 4.3.2 and -O2 option: output value is 1 instead of 0. * If -fno-strict-aliasing is added, this bug disappears. */ #include #includ

Bug#524472: gcc-4.3: gcc 4.3.2 miscompiles GMP 4.3.0

2009-04-17 Thread Vincent Lefevre
Package: gcc-4.3 Version: 4.3.2-1.1 Severity: important Tags: lenny When I build GMP 4.3.0 with gcc 4.3.2, I get the following errors in "make check": rootrem.c:338: GNU MP assertion failed: bn >= qn /bin/sh: line 4: 2231 Aborted (core dumped) ${dir}$tst FAIL: reuse rootrem.c:338