This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR 55352: [4.7/4.8 Regression] Erroneous gfortran warning of unused module variable when variable is only used in namelist
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Janus Weil <janus at gcc dot gnu dot org>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 21 Nov 2012 18:37:56 +0100
- Subject: Re: [Patch, Fortran] PR 55352: [4.7/4.8 Regression] Erroneous gfortran warning of unused module variable when variable is only used in namelist
- References: <CAKwh3qhgG395f_+vxuJp2R=mjdTAPsrNmb+wPmRxBxRxwk1zYQ@mail.gmail.com>
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