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 annotate_all_with_location.  Instead set the location of the GIMPLE
> switch directly.
> 
> Bootstrapped and tested on x86_64-unknown-linux-gnu, OK for trunk?
> 
> Thanks,
> Richard.
> 
>       PR gcov-profile/114715
>       * gimplify.cc (gimplify_switch_expr): Set the location of the
>       GIMPLE switch.
> 
>       * gcc.misc-tests/gcov-24.c: New testcase.

LGTM, thanks.

        Jakub

Reply via email to