This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch,Fortran] PR45186 - P2 regression - gfortran 4.6 emits wrong line numbers


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]