On Thu, Dec 14, 2017 at 03:41:24PM +0100, Andreas Schwab wrote: > This fixes the m68k ICE. > > Andreas. > > PR bootstrap/83396 > * reload1.c (emit_input_reload_insns): Skip debug markers.
This is ok for trunk, thanks. > --- a/gcc/reload1.c > +++ b/gcc/reload1.c > @@ -7345,12 +7345,12 @@ emit_input_reload_insns (struct insn_chain *chain, > struct reload *rl, > > /* Adjust any debug insns between temp and insn. */ > while ((temp = NEXT_INSN (temp)) != insn) > - if (DEBUG_INSN_P (temp)) > + if (DEBUG_BIND_INSN_P (temp)) > INSN_VAR_LOCATION_LOC (temp) > = simplify_replace_rtx (INSN_VAR_LOCATION_LOC (temp), > old, reloadreg); > else > - gcc_assert (NOTE_P (temp)); > + gcc_assert (DEBUG_INSN_P (temp) || NOTE_P (temp)); > } > else > { Jakub