diff options
author | Richard Biener <rguenther@suse.de> | 2024-04-15 11:09:17 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-04-15 13:35:15 +0200 |
commit | 9d573f71e80e9f6f4aac912fc8fc128aa2697e3a (patch) | |
tree | 803b797b276adf872f2b9c8c4c21be043366bca7 /libgcc | |
parent | a3281dd0f4b46c16ec1192ad411c0a96e6d086eb (diff) | |
download | gcc-9d573f71e80e9f6f4aac912fc8fc128aa2697e3a.zip gcc-9d573f71e80e9f6f4aac912fc8fc128aa2697e3a.tar.gz gcc-9d573f71e80e9f6f4aac912fc8fc128aa2697e3a.tar.bz2 |
gcov-profile/114715 - missing coverage for switch
The following avoids missing coverage for the line of a switch statement
which happens when gimplification emits a BIND_EXPR wrapping the switch
as that prevents us from setting locations on the containing statements
via annotate_all_with_location. Instead set the location of the GIMPLE
switch directly.
PR gcov-profile/114715
* gimplify.cc (gimplify_switch_expr): Set the location of the
GIMPLE switch.
* gcc.misc-tests/gcov-24.c: New testcase.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions