summaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authornvachhar <nvachhar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-04 23:45:58 +0000
committernvachhar <nvachhar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-04 23:45:58 +0000
commit21cd990df370bfeb0ed410b024a41176014959ad (patch)
treeea706642f18ee85392a51bf61e49a74bfbdef8bb /gcc/common.opt
parent3e8004a040279c7acce3e8287b8e67583cc7b8dc (diff)
downloadgcc-21cd990df370bfeb0ed410b024a41176014959ad.tar.gz
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
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index e62e3d583a0..806bd1f282d 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -249,8 +249,8 @@ Common Var(warn_unused_variable) Init(-1) Warning
Warn when a variable is unused
Wcoverage-mismatch
-Common RejectNegative Var(warn_coverage_mismatch) Warning
-Warn instead of error in case profiles in -fprofile-use do not match
+Common Var(warn_coverage_mismatch) Init(1) Warning
+Warn in case profiles in -fprofile-use do not match
aux-info
Common Separate