[Patch,Fortran] PR45186 - P2 regression - gfortran 4.6 emits wrong line numbers
Tobias Burnus
burnus@net-b.de
Thu Sep 2 19:05:00 GMT 2010
H.J. Lu wrote:
> On Thu, Sep 2, 2010 at 6:21 AM, Tobias Burnus<burnus@net-b.de> wrote:
>> Built and currently regtesting on x86-64-linux.
>> OK for the trunk? (Assuming that there are no testsuite failures
> This may cause:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45505
Maybe. It seems to be a -m32 vs. -m64 problem: I see the warning for
line 13 of gfortran.dg/pr25923.f90 with -m64 on x86-64, which is the
expected line:
function baz(arg) result(res) ! { dg-warning "res.yr' may be" }
gfortran.dg/pr25923.f90:13:0: warning: 'res.yr' may be used
uninitialized in this function [-Wuninitialized]
However, with -m32 I see it as last line of the file, namely
gfortran.dg/pr25923.f90:22:0: warning: 'res.yr' may be used
uninitialized in this function [-Wuninitialized]
If one looks at the optimized dump, one finds for -m32:
[gfortran.dg/pr25923.f90 : 22:0] <retval>.yr = res$yr_8;
and for -m64 I cannot find a "13:0" line (or a "22:0" line)
I think I defer the problem until all files are converted - maybe it
disappears then, or one can find the place where input_location is the
wrong location.
Tobias
More information about the Fortran
mailing list