------- Comment #5 from kargl at gcc dot gnu dot org 2008-03-02 01:33 ------- (In reply to comment #4) > I got > > Running 172.mgrid ref base o2 default > *** Miscompare of mgrid.out, see > /export/gnu/import/rrs/spec/2000/spec/benchspec > /CFP2000/172.mgrid/run/00000002/mgrid.out.mis > Invalid run; unable to continue. If you wish to ignore errors please use '-I' > o > r ignore_errors > > Remove -ffast-math fixes the problem. -fbounds-check doesn't make > a difference. I'd like to know why > > --- old/c.f.003t.original 2008-03-01 14:15:12.000000000 -0800 > +++ new/c.f.003t.original 2008-03-01 14:14:53.000000000 -0800 > @@ -36,39 +36,39 @@ resid (u, v, r, n, a) > > ubound.0 = (integer(kind=8)) *n; > stride.2 = NON_LVALUE_EXPR <ubound.0>; > - stride.2 = stride.2 >= 0 ? stride.2 : 0; > + stride.2 = MAX_EXPR <stride.2, 0>;
This looks like a middle-end problem. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35418