]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR gcov-profile/86957 (gcc should warn about missing profiles for a compilation...
authorIndu Bhagat <indu.bhagat@oracle.com>
Wed, 26 Sep 2018 22:29:54 +0000 (22:29 +0000)
committerQing Zhao <qinzhao@gcc.gnu.org>
Wed, 26 Sep 2018 22:29:54 +0000 (22:29 +0000)
commitbc162b0e6f9af9b03441e0e2b85ba0a98e4e5314
tree55efbf771f6510f27e17ff5967320a448be1a27a
parent8313a7643a2cf5f0037e08f4e6a6d7002aeef8a0
re PR gcov-profile/86957 (gcc should warn about missing profiles for a compilation unit or a new function with -fprofile-use)

2018-09-26  Indu Bhagat  <indu.bhagat@oracle.com>

PR gcov-profile/86957
* common.opt: New warning option -Wmissing-profile.
* coverage.c (get_coverage_counts): Add warning for missing .gcda file.
* doc/invoke.texi: Document -Wmissing-profile.

From-SVN: r264657
gcc/ChangeLog
gcc/common.opt
gcc/coverage.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wmissing-profile.c [new file with mode: 0644]