[Patch, fortran] PR28817 and PR21918

Paul Thomas paulthomas2@wanadoo.fr
Sun Sep 17 12:44:00 GMT 2006


:ADDPATCH fortran:

This PR is associated with the warnings produced by -Wunused.  At 
present, gcc/errors.c(warning) is used and this, for some reason, is 
scambling the line numbers.  Tobi Schlueter proposed to use gfc_warning 
in the context of PR21918 and this patch implements that.  The drawback 
is the the gfc warning is a bit less concise than its gcc counterpart; 
maybe we should introduce a %l format, as well as a %L format, for 
locii?  However, the information is correct.  I could not readily think 
of a way to test this.

Regtested on FC5/Athlon

OK for trunk and 4.1?

Paul

2006-09-17  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/28817
    PR fortran/21918
    * trans-decl.c (generate_local_decl): Change from 'warning' to
    'gfc_warning' to have line numbers correctly reported.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr28817.diff
Type: text/x-patch
Size: 1678 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060917/62d428cd/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr28817.msg
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060917/62d428cd/attachment.ksh>


More information about the Fortran mailing list