This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] PATCH: Fix PR 15510
- From: Paul Brook <paul at codesourcery dot com>
- To: fortran at gcc dot gnu dot org
- Cc: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>,patch <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 12 Jun 2004 14:55:05 +0100
- Subject: Re: [gfortran] PATCH: Fix PR 15510
- Organization: CodeSourcery
- References: <40C75263.6030706@physik.uni-muenchen.de>
On Wednesday 09 June 2004 19:09, Tobias Schlüter wrote:
> I'm wondering if this code shouldn't be moved to the resolution stage,
> as this would allow for better error printing because we could print out
> the loci where the variable is declared. Possibly we can only do this
> after PR 15481 is fixed.
Maybe. IIRC the C frontends currently use information from the optimizers to
generate unused uninitialized variable warnings. There's some discussion on
whether this is a good idea or not (it gives better diagnostics, but depends
on optimization levels). We should do the same if/when a conclusion is
reached.
> 2004-06-09 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
>
> PR fortran/15510
> * trans-decl.c (generate_local_decl): Do not issue warning for
> unused variables if they're use associated.
Ok.
Paul