]> gcc.gnu.org Git - gcc.git/commit
middle-end/114681 - condition coverage and inlining
authorRichard Biener <rguenther@suse.de>
Thu, 11 Apr 2024 06:47:19 +0000 (08:47 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 11 Apr 2024 09:03:56 +0000 (11:03 +0200)
commit52b63100b1eda433120e726d4e8f8dfca6fc94fa
tree15b0c65c1916bebe3908e6462a6f9e9e0559d902
parentcb46aca0a07355abf2f0b04f52087bca8f848524
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.
gcc/testsuite/gcc.misc-tests/gcov-pr114681.c [new file with mode: 0644]
gcc/tree-inline.cc
This page took 0.060417 seconds and 6 git commands to generate.