https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114681
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:52b63100b1eda433120e726d4e8f8dfca6fc94fa commit r14-9911-g52b63100b1eda433120e726d4e8f8dfca6fc94fa Author: Richard Biener <rguent...@suse.de> Date: Thu Apr 11 08:47:19 2024 +0200 middle-end/114681 - condition coverage and inlining When inlining a gcond it can map to multiple stmts, esp. with non-call EH. The following makes sure to pick up the remapped condition when dealing with condition coverage. PR middle-end/114681 * tree-inline.cc (copy_bb): Key on the remapped stmt to identify gconds to have condition coverage data remapped. * gcc.misc-tests/gcov-pr114681.c: New testcase.