[Patch, Fortran] PR 45186 - Improve location of expressions for debugging

Tobias Burnus burnus@net-b.de
Fri Oct 15 12:10:00 GMT 2010


  On 10/13/2010 01:27 PM, Mikael Morin wrote:
> On Wednesday 13 October 2010 10:28:57 Tobias Burnus wrote:
>>    PR 45186 is "[4.6 Regression] Gfortran 4.5.0 emits wrong linenumbers".
>> While most of it was fixed, I found two cases where the location was
>> wrong or at least surprising. That's fixes with the following patch. I
>> am sure there are more cases, but I intent to close the PR after those
>> fixes are in.
> locus' gfc_linebuf has a source_location field, and location_t is typedef-ed
> from source_location in input.h.

I have now updated the patch - and tests with some DO / DO WHILE and IF 
examples in gdb work as one would expect :-)

Build and regtested on x86-64-linux.
OK for the trunk?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug-lines2.diff
Type: text/x-patch
Size: 21732 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20101015/0e7af403/attachment.bin>


More information about the Fortran mailing list