[Bug target/79570] [5/6/7 Regression] ICE in sel-sched-ir.c:4534 in pr69956.c

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 20 08:17:00 GMT 2017


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.


More information about the Gcc-bugs mailing list