https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114715

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:56415e39029012aa3675d3b4b71fb248cf43049e

commit r12-10445-g56415e39029012aa3675d3b4b71fb248cf43049e
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Apr 15 11:09:17 2024 +0200

    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.

    (cherry picked from commit 5a3cc62dbb45185dd1ca32caec80d57a320ec5a0)

Reply via email to