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

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

https://gcc.gnu.org/g:5a3cc62dbb45185dd1ca32caec80d57a320ec5a0

commit r13-8682-g5a3cc62dbb45185dd1ca32caec80d57a320ec5a0
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 9d573f71e80e9f6f4aac912fc8fc128aa2697e3a)

Reply via email to