On Sun, May 21, 2006 at 12:36:46AM +0200, Martin Michlmayr wrote: > minc produces a floating point exception on Alpha when I compile > it with a snapshot of GCC 4.2. I'm not entirely sure whether this is > a compiler bug or one in your package, but from other cases like these > it is likely that your package is doing something wrong and that newer > optimizations exhibit the problem.
What "other cases like these" show SIGFPE? What kinds of errors should one be looking for? I have to say that I'm more inclined to blame GCC, especially on non-i386, and especially its optimizer. Could you try building it on i386? > I've done some preliminary investigation which shows where the error > is: > > in : short, out : double, norm : true, imgmax : true, valid : false > > Program received signal SIGFPE, Arithmetic exception. > MI_convert_type (number_of_values=1, intype=NC_SHORT, insign=1, > invalues=0x11faed910, > outtype=NC_DOUBLE, outsign=1, outvalues=0x12001d350, icvp=0x1200141b0) > at libsrc/value_conversion.c:585 > 585 do_scale=icvp->do_scale; This line is an integer assignment. Do you believe that this is the cause of the SIGFPE? -Steve -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]