]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/calls.cc
re PR c/4076 (-Wunused doesn't warn about static function only called by itself.)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Sat, 30 Jun 2007 12:56:43 +0000 (12:56 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Sat, 30 Jun 2007 12:56:43 +0000 (12:56 +0000)
commitad960f56f2e381290d1a83b0ee2f1d7b0e9d3a97
tree6cf59c10b1848193cc5f27b945729e4c00add85d
parenta4fbe84bd2ae7c5cacbada14abe4d3b9a7bbe6d0
re PR c/4076 (-Wunused doesn't warn about static function only called by itself.)

2007-06-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR c/4076
* c-typeck.c (build_external_ref): Don't mark as used if called
from itself.
* calls.c (rtx_for_function_call): Likewise.

testsuite/
* gcc.dg/Wunused-function.c: New.

From-SVN: r126144
gcc/ChangeLog
gcc/c-typeck.c
gcc/calls.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wunused-function.c [new file with mode: 0644]