Re: [PATCH] gcov-profile/114715 - missing coverage for switch

2024-04-15 Thread Jakub Jelinek
On Mon, Apr 15, 2024 at 01:28:00PM +0200, Richard Biener wrote: > 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 annota

[PATCH] gcov-profile/114715 - missing coverage for switch

2024-04-15 Thread Richard Biener
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 dir