[Bug rtl-optimization/104589] [11 Regression] Emitted binary code changes when -g is enabled at -O0 -flto and optimize attribute since r11-3026-gfea13fcd0da03535

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 29 05:53:43 GMT 2022


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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:7737259ceaa490a1cc75415efa00f3631a7e17df

commit r11-9723-g7737259ceaa490a1cc75415efa00f3631a7e17df
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Mar 2 10:48:14 2022 +0100

    cfgrtl: Fix up -g vs. -g0 code generation -flto differences in
fixup_reorder_chain [PR104589]

    This is similar to PR104237 and similarly to that, no testcase included
    for the testsuite, as we don't have a framework to compile/link with
    -g -flto and -g0 -flto and compare -fdump-final-insns= results from
    the lto1 compilations.

    With -flto, whether two location_t compare equal or not and just
    express the same location is a lottery.

    2022-03-02  Jakub Jelinek  <jakub@redhat.com>

            PR rtl-optimization/104589
            * cfgrtl.c (fixup_reorder_chain): Use loc_equal instead of direct
            INSN_LOCATION comparison with goto_locus.

    (cherry picked from commit 2e1b00367abaf8b6dbb47fd8518d9ac69c326a06)


More information about the Gcc-bugs mailing list