PR debug/83585
* bb-reorder.c (insert_section_boundary_note): Set has_bb_partition
to switched_sections.
* gcc.dg/pr83585.c: New test.
From-SVN: r256256
+2018-01-04 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/83585
+ * bb-reorder.c (insert_section_boundary_note): Set has_bb_partition
+ to switched_sections.
+
2018-01-04 Richard Sandiford <richard.sandiford@linaro.org>
PR target/83680
current_partition = BB_PARTITION (bb);
}
}
+
+ /* Make sure crtl->has_bb_partition matches reality even if bbpart finds
+ some hot and some cold basic blocks, but later one of those kinds is
+ optimized away. */
+ crtl->has_bb_partition = switched_sections;
}
namespace {
+2018-01-04 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/83585
+ * gcc.dg/pr83585.c: New test.
+
2018-01-04 Nathan Sidwell <nathan@acm.org>
PR c++/83667
--- /dev/null
+/* PR debug/83585 */
+/* { dg-do assemble } */
+/* { dg-options "-std=gnu89 -O2 -g -fno-tree-dce -fno-guess-branch-probability" } */
+
+int
+foo (int x)
+{
+ int a, b;
+ for (a = 0; a < 2; ++a)
+ if (x != 0)
+ {
+ for (b = 0; b < 2; ++b)
+ ;
+ return 0;
+ }
+
+ return;
+}