[3.4/mainline] PR 15004

Andrew Pinski pinskia@physics.uc.edu
Mon May 3 15:46:00 GMT 2004


On Apr 28, 2004, at 10:02, Jan Hubicka wrote:

> Hi,
> this patch makes the warning to be chhecked on analysis time instaed of
> end of compilation so we get the warning even for functions never
> compiled.
>
> Honza
> 2004-04-28  Jan Hubicka  <jh@suse.cz>
> 	PR c/15004
> 	* function.c (do_warn_unused_parameter): Break out form ...
> 	(expand_function_end): ... here; warn only when not using cgraphunit.
> 	* function.h (do_warn_unused_parameter): Declare.
> 	* cgraphunit.c: Include function.h.
> 	(cgraph_finalize_function): Do unused parameter warning.
> 	* Makefile.in (cgraphunit.o): Depend on function.h


This patch causes the warnings to say what function they are from.  
Could
you look into why it causes that?

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list