Bill Hart wrote:
> Thanks for letting us know.
>
> I couldn't even take a guess at this stage, other than a new compiler
> bug. But I've added it to the list of things that need fixing.
Oh, that's a really hard one:
--- mpir-2.6.0/tests/mpz/t-scan.c.orig 2012-10-03 22:07:32.000000000 +0200
+++ mpir-2.6.0/tests/mpz/t-scan.c 2013-04-02 18:39:17.704366985 +0200
@@ -84,7 +84,7 @@
for (isize = 0; isize <= size; isize++)
{
- for (oindex = 0; oindex <= numberof (offset); oindex++)
+ for (oindex = 0; oindex < numberof (offset); oindex++)
{
o = offset[oindex];
if ((int) isize*GMP_NUMB_BITS < -o)
With that, all tests pass for me with GCC 4.8.0, with --enable-cxx, both
with default CFLAGS as well as with '-O3' (and -march=...).
-leif
P.S.: I'll open a Sage trac ticket for that... ;-)
> <mailto:
d...@math.uiuc.edu>> wrote:
>
> The t-scan test crashes, in mpir 2.6.0, under mac os x, with gcc 4.8.0.
>
> /bin/sh: line 1: 73249 Segmentation fault: 11 "$tst" > t-scan.log-t
> 2>&1
> FAIL: t-scan
>
>
> $ gcc -v
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/local/encap/gcc-trunk/libexec/gcc/x86_64-apple-darwin12.0.0/4.8.0/lto-wrapper
> Target: x86_64-apple-darwin12.0.0
> Configured with: ../trunk/configure
> --prefix=/usr/local/encap/gcc-trunk --enable-languages=c,c++
> Thread model: posix
> gcc version 4.8.0 20120805 (experimental) (GCC)
--