https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79570
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri May 5 21:29:10 2017 New Revision: 247673 URL: https://gcc.gnu.org/viewcvs?rev=247673&root=gcc&view=rev Log: Backported from mainline 2017-02-21 Jakub Jelinek <ja...@redhat.com> PR target/79570 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head on temporarily removed DEBUG_INSNs. * gcc.dg/pr79570.c: New test. Added: branches/gcc-6-branch/gcc/testsuite/gcc.dg/pr79570.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/sel-sched.c branches/gcc-6-branch/gcc/testsuite/ChangeLog