From 16c1c158d80c9ebc5b72c89fbe16c6622e8c35cf Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Thu, 25 Jan 2007 12:35:13 +0000 Subject: invoke.texi (-Wcoverage-mismatch): Document. 2007-01-25 Richard Guenther * doc/invoke.texi (-Wcoverage-mismatch): Document. * common.opt (-Wcoverage-mismatch): New warning option. * coverage.c (get_coverage_counts): Ignore coverage mismatch if -Wcoverage-mismatch is given. * gcc.dg/tree-prof/tree-prof.exp: Define _PROFILE_GENERATE and _PROFILE_USE. * gcc.dg/tree-prof/wcoverage-mismatch.c: New testcase. From-SVN: r121169 --- gcc/common.opt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/common.opt') diff --git a/gcc/common.opt b/gcc/common.opt index dfcda94..0a0d287 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -197,6 +197,10 @@ Wvolatile-register-var Common Var(warn_register_var) Warn when a register variable is declared volatile +Wcoverage-mismatch +Common RejectNegative Var(warn_coverage_mismatch) +Warn instead of error in case profiles in -fprofile-use do not match + aux-info Common Separate -aux-info Emit declaration information into -- cgit v1.1