------- Comment #5 from jv244 at cam dot ac dot uk 2007-01-17 07:14 ------- (In reply to comment #0) > The program below shows (at all the optimization levels) a miscompilation of > the remainder expression that causes INT_MIN % -1 to cause a SIGFPE on CPUs of > the i386 family.
notice that this is language dependent. I.e. in Fortran the equivalent of the above 'INT_MIN % -1' is undefined. So, whatever the fix for C and friends, it should not slow down Fortran programs using MOD. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30484