[Bug fortran/45505] [4.6 Regression] gfortran.dg/pr25923.f90
jamborm at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 14 13:55:00 GMT 2010
------- 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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45505
More information about the Gcc-bugs
mailing list