This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] PR 55352: [4.7/4.8 Regression] Erroneous gfortran warning of unused module variable when variable is only used in namelist


Dear Janus,

Thanks for the patch - it's OK for trunk and 4.7.

Cheers

Paul

On 19 November 2012 21:39, Janus Weil <janus@gcc.gnu.org> wrote:
> Hi all,
>
> here is another contribution in trying to reduce the still too large
> number of regressions in the Fortran front end (which used to be
> basically zero for some time in the past).
>
> The attached patch is rather straightforward and fixes a bogus
> unused-variable warning. I would be grateful for any comments, in
> absence of which I will commit the patch to trunk by the end of this
> week.
>
> It was regtested on x86_64-unknown-linux-gnu. Ok for trunk and 4.7?
>
> Cheers,
> Janus
>
>
>
> 2012-11-19  Janus Weil  <janus@gcc.gnu.org>
>
>     PR fortran/55352
>     * trans-decl.c (generate_local_decl): Don't warn for explicitly imported
>     but unused module variables which are in a namelist or common block.
>
> 2012-11-19  Janus Weil  <janus@gcc.gnu.org>
>
>     PR fortran/55352
>     * gfortran.dg/namelist_76.f90: New.



-- 
The knack of flying is learning how to throw yourself at the ground and miss.
       --Hitchhikers Guide to the Galaxy


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