Sanitize the behavior of -Wcoverage-mismatch.
authornvachhar <nvachhar@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 May 2010 23:45:58 +0000 (23:45 +0000)
committernvachhar <nvachhar@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 May 2010 23:45:58 +0000 (23:45 +0000)
commit21cd990df370bfeb0ed410b024a41176014959ad
treeea706642f18ee85392a51bf61e49a74bfbdef8bb
parent3e8004a040279c7acce3e8287b8e67583cc7b8dc
Sanitize the behavior of -Wcoverage-mismatch.

2010-05-04  Neil Vachharajani <nvachhar@google.com>

        * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
        per new semantics.
        * opts.c (decode_options): Enable -Werror=coverage-mismatch.
        * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
        conditions for printing notes.
        * common.opt (-Wcoverage-mismatch): Allow negative, default to
        true, update documentation.
        * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
        * testsuite/gcc.dg/tree-prof/wcoverage-mismatch.c: Adjusted.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159050 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/Makefile.in
gcc/common.opt
gcc/coverage.c
gcc/doc/invoke.texi
gcc/opts.c
gcc/testsuite/gcc.dg/tree-prof/wcoverage-mismatch.c