------- Comment #6 from jamborm at gcc dot gnu dot org 2010-09-14 13:55 -------
Jakub, I have not understood whether you think the warning emitted
when compiling the c code from comment #4 has the correct line number
or not. I see it attributed to the line with the return statement
which I think is correct.
Nevertheless, SRA currently does not set locations of gimple
statements it generates and is quite confused when it comes to tree
locations. I was already looking into the latter problem and added
setting gimple statement locations appropriately because it fitted in
well. The patch
(http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01175.html) has just
been approved and I am going to commit it in a few moments but it does
not change the line the Fortran warning is reported at. It is
probably because the gimple return statement, which is where I get the
location for the newly generated load, has a location corresponding to
the end of the function.