https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81325
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Sep 15 11:26:03 2017 New Revision: 252805 URL: https://gcc.gnu.org/viewcvs?rev=252805&root=gcc&view=rev Log: Backported from mainline 2017-09-14 Jakub Jelinek <ja...@redhat.com> PR target/81325 * cfgbuild.c (find_bb_boundaries): Ignore debug insns in decisions if and where to split a bb, except for splitting before debug insn sequences followed by non-label real insn. Delete debug insns in between basic blocks. * g++.dg/cpp0x/pr81325.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/pr81325.C Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/cfgbuild.c branches/gcc-7-branch/gcc/testsuite/ChangeLog