re PR c/15004 ([unit-at-a-time] no warning for unused paramater in static function)
authorJan Hubicka <jh@suse.cz>
Wed, 28 Apr 2004 20:40:55 +0000 (22:40 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 28 Apr 2004 20:40:55 +0000 (20:40 +0000)
commit902edd367b9d585a610eabdad8110a188effd707
treed5b0b3986f7580e9e8e84df766ad4bfe9caaa82e
parenta89f5df3d9325c1d5d9ed7f92abd6c61f9df8631
re PR c/15004 ([unit-at-a-time] no warning for unused paramater in static function)

* gcc.dg/unused-6.c: New test.

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

From-SVN: r81260
gcc/ChangeLog
gcc/Makefile.in
gcc/cgraphunit.c
gcc/function.c
gcc/function.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/unused-6.c [new file with mode: 0644]