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

--- Comment #13 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Thu Mar  8 08:56:45 2018
New Revision: 258359

URL: https://gcc.gnu.org/viewcvs?rev=258359&root=gcc&view=rev
Log:
Backport r243662

2018-03-08  Martin Liska  <mli...@suse.cz>

        Backport from mainline
        2016-12-14  Jakub Jelinek  <ja...@redhat.com>

        PR debug/77844
        * valtrack.c: Include rtl-iter.h.
        (struct rtx_subst_pair): Add insn field.
        (propagate_for_debug_subst): If pair->to contains at least 2
        regs, create a DEBUG_INSN with a debug temp before pair->insn
        and replace from with the debug temp instead of pair->to.
        (propagate_for_debug): Initialize p.insn.
        * combine.c (insn_uid_check): New inline function.
        (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
        (find_single_use, combine_instructions,
        cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
        INSN_P.
2018-03-08  Martin Liska  <mli...@suse.cz>

        Backport from mainline
        2016-12-14  Jakub Jelinek  <ja...@redhat.com>

        PR debug/77844
        * g++.dg/opt/pr77844.C: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/opt/pr77844.C
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/combine.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
    branches/gcc-6-branch/gcc/valtrack.c

Reply via email to