[PATCH] Fix up Fortran line numbers (PR fortran/45186)

H.J. Lu hjl.tools@gmail.com
Thu Aug 19 18:21:00 GMT 2010


On Mon, Aug 16, 2010 at 1:45 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
>
> As discussed on IRC and in the PR, this patch fixes Fortran line info
> by basically going back to what GCC 4.4 did.  The FE doesn't pass
> input_location to all the various build*/fold_build*/build*_v
> functions/macros when it creates the trees, there are more than 1000
> of such places.
>
> Ok for 4.5 (for which changing those 1000 places isn't really desirable)?
> What about 4.6?
>
> Bootstrapped/regtested on x86_64-linux and i686-linux.
>
> 2010-08-16  Jakub Jelinek  <jakub@redhat.com>
>
>        PR fortran/45186
>        * trans.c (gfc_annotate_with_location): New function.
>        (trans_code): Use it.
>

This patch caused:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45344

Do you need to update those Fortran testcases?


-- 
H.J.



More information about the Fortran mailing list