[Bug fortran/32382] missed optimization in internal read
manfred99 at gmx dot ch
gcc-bugzilla@gcc.gnu.org
Sun Sep 2 11:53:00 GMT 2007
------- Comment #3 from manfred99 at gmx dot ch 2007-09-02 11:53 -------
Jerry, any news on this?
I have seen this pattern many times in legacy fortran77 code,
and the code authors seem to assume that ridiculously large loop
stop values do not compromize performance.
After all, in fortran77 you have to do something like this if you don't
know the dimension to the data to read.
Interestingly, ifort seems to have changed their mind,
as ifort 8.1 seems to loop till the end (see comp.lang.fortran
link in BUG 32257), whereas ifort 9.0 stops at value 4, like g77.
And, as mentioned in BUG 32257, the compiler is free to choose.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32382
More information about the Gcc-bugs
mailing list