Commit 64d620ef by Jakub Jelinek Committed by Jakub Jelinek

re PR debug/83585 (Assembler messages: Error: can't resolve `.text' {.text…

re PR debug/83585 (Assembler messages: Error: can't resolve `.text' {.text section} - `.LCOLDB0' {.text.unlikely section})

	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
parent bc80e846
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
......
......@@ -2523,6 +2523,11 @@ insert_section_boundary_note (void)
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
......
/* 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment