------- Comment #22 from dominiq at lps dot ens dot fr 2009-08-28 12:23 ------- For the original air.f90 I get:
[ibook-dhum] lin/test% gfc -m64 -O2 -funsafe-math-optimizations -fno-strict-overflow air.f90 [ibook-dhum] lin/test% time a.out > /dev/null 9.572u 0.055s 0:09.66 99.5% 0+0k 0+9io 1pf+0w [ibook-dhum] lin/test% gfc -m64 -O2 -funsafe-math-optimizations air.f90 [ibook-dhum] lin/test% time a.out > /dev/null 8.446u 0.046s 0:08.50 99.7% 0+0k 0+8io 0pf+0w [ibook-dhum] lin/test% gfc -m64 -O2 -funsafe-math-optimizations air.f90 Commenting the write in line 139, it becomes [ibook-dhum] lin/test% time a.out > /dev/null 10.083u 0.052s 0:10.15 99.8% 0+0k 0+7io 0pf+0w [ibook-dhum] lin/test% gfc -m64 -O2 -funsafe-math-optimizations -fno-strict-overflow air.f90 [ibook-dhum] lin/test% time a.out > /dev/null 9.531u 0.045s 0:09.58 99.8% 0+0k 0+7io 0pf+0w -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40106