This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fortran/892: -Wunused complains unnecessarily for COMMON block items
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: fortran/892: -Wunused complains unnecessarily for COMMON block items
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Wed, 29 Nov 2000 19:53:11 +0100
- CC: gcc-patches at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <20001126162629.21952.qmail@sourceware.cygnus.com> <20001128145713.A29326@redhat.com>
Richard Henderson wrote:
> On Sun, Nov 26, 2000 at 04:26:29PM -0000, toon@moene.indiv.nluug.nl wrote:
> > SUBROUTINE SUB
> > COMMON /COM/ A
> > END
> [...]
> > unused.f:3: warning: unused variable `a'
>
> Fixed thus:
> * com.c (ffecom_member_phase2_): Set TREE_USED on the debugging decl.
Thanks - amazing how I missed this needle in the 17168 line haystack :-)
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)