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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> --- gcc/sel-sched.c.jj        2017-01-01 12:45:38.000000000 +0100
> +++ gcc/sel-sched.c   2017-02-17 14:14:06.493525368 +0100
> @@ -2529,6 +2529,7 @@ moveup_expr_cached (expr_t expr, insn_t
>      }
>  
>    if (DEBUG_INSN_P (EXPR_INSN_RTX (expr))
> +      && BLOCK_FOR_INSN (EXPR_INSN_RTX (expr))
>        && (sel_bb_head (BLOCK_FOR_INSN (EXPR_INSN_RTX (expr)))
>         == EXPR_INSN_RTX (expr)))
>      /* Don't use cached information for debug insns that are heads of

Note that such a patch passed bootstrap/regtest on x86_64-linux and i686-linux.

Reply via email to