[Bug debug/105070] [9 Regression] Missing debug info for switch statement

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 6 11:09:17 GMT 2022


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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:4be43dbbed4b217201cb395449a7682cd98301ce

commit r9-10045-g4be43dbbed4b217201cb395449a7682cd98301ce
Author: Richard Biener <rguenther@suse.de>
Date:   Mon Mar 28 10:07:53 2022 +0200

    tree-optimization/105070 - annotate bit cluster tests with locations

    The following makes sure to annotate the tests generated by
    switch lowering bit-clustering with locations which otherwise
    can be completely lost even at -O0.

    2022-03-28  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/105070
            * tree-switch-conversion.h
            (bit_test_cluster::hoist_edge_and_branch_if_true): Add location
            argument.
            * tree-switch-conversion.c
            (bit_test_cluster::hoist_edge_and_branch_if_true): Annotate
            cond with location.
            (bit_test_cluster::emit): Annotate all generated expressions
            with location.

    (cherry picked from commit b285999440c000685c4e4dae9c2a9a8a8fe9e176)


More information about the Gcc-bugs mailing list