https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105586
--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> --- We have +(debug_insn 11 10 81 2 (var_location:QI u8_1 (mem/c:QI (plus:DI (unspec:DI [ + (symbol_ref:DI ("*.LANCHOR0") [flags 0x182]) + (reg:DI 2 2) + ] UNSPEC_TOCREL) + (const_int 3 [0x3])) [1 g+3 S1 A8])) "../105586.c":11:8 -1 + (nil)) (the first such unspec in the file), and sched1 does +;; 0--> b 0: i 11 loc [unspec[`*.LANCHOR0',%2] 47+0x3] :nothing:GENERAL_REGS+0(0)FLOAT_REGS+0(0)CR_REGS+0(0)SPECIAL_REGS+0(0) with it. Things in debug_insns should not influence code generation.