public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/gcov-conditions-v5)] Fix -Wcoverage-too-many-conditions report about found conditions.
@ 2022-06-21 8:59 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-06-21 8:59 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a5fcae0b95249bbb2d4bdb93a76c647140999a23
commit a5fcae0b95249bbb2d4bdb93a76c647140999a23
Author: Martin Liska <mliska@suse.cz>
Date: Tue Jun 21 10:54:43 2022 +0200
Fix -Wcoverage-too-many-conditions report about found conditions.
Diff:
---
gcc/tree-profile.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/tree-profile.cc b/gcc/tree-profile.cc
index 3b85d01437a..37467c4b1ae 100644
--- a/gcc/tree-profile.cc
+++ b/gcc/tree-profile.cc
@@ -741,11 +741,11 @@ collect_conditions (conds_ctx& ctx, const basic_block block)
}
else
{
- blocks.truncate (0);
location_t loc = gimple_location (gsi_stmt (gsi_last_bb (block)));
warning_at (loc, OPT_Wcoverage_too_many_conditions,
"Too many conditions (found %u); giving up coverage",
blocks.length ());
+ blocks.truncate (0);
}
return blocks;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-21 8:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-21 8:59 [gcc(refs/users/marxin/heads/gcov-conditions-v5)] Fix -Wcoverage-too-many-conditions report about found conditions Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).