re PR c/59717 (better warning when using functions without including appropriate...
authorMarek Polacek <polacek@redhat.com>
Tue, 7 Oct 2014 17:49:46 +0000 (17:49 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 7 Oct 2014 17:49:46 +0000 (17:49 +0000)
commit0382aaa033235ef268e234700355434690993c29
treea5528e44707789ed3bf72d85c52e62098a85d987
parent12e99c38381472257cf47427a777db397c9ed14e
re PR c/59717 (better warning when using functions without including appropriate header files)

PR c/59717
* c-decl.c (header_for_builtin_fn): New function.
(implicitly_declare): Suggest which header to include.

* gcc.dg/pr59717.c: New test.

From-SVN: r215979
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr59717.c [new file with mode: 0644]