------- Comment #23 from howarth at nitro dot med dot uc dot edu 2009-08-28 13:36 ------- (In reply to comment #20) > It it helps, I get for the reduced test with the line 94: > > [ibook-dhum] lin/test% gfc -m64 -O2 -funsafe-math-optimizations > -fno-signed-zeros -fno-trapping-math -fno-associative-math > -fno-reciprocal-math > air_db.f90 > [ibook-dhum] lin/test% time a.out > /dev/null > > 4.555u > 0.016s 0:04.57 99.7% 0+0k 0+2io 0pf+0w > > without it > > [ibook-dhum] lin/test% gfc -m64 -O2 -funsafe-math-optimizations > -fno-signed-zeros -fno-trapping-math -fno-associative-math > -fno-reciprocal-math > air_db.f90 > [ibook-dhum] lin/test% time a.out > /dev/null > > 6.632u > 0.020s 0:06.66 99.8% 0+0k 0+0io 0pf+0w >
Aren't these compile lines identical? Also, why are you passing funsafe-math-optimizations. I meant that you should use... -fno-signed-zeros -fno-trapping-math -fassociative-math -freciprocal-math instead and work through all of the possible combinations with the inverse forms -fsigned-zeros, -ftrapping-math, -fno-associative-math and -fno-reciprocal-math which is 16 combinations. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40106