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: [gfortran] PATCH: Fix PR 15510


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


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