mirror of git://gcc.gnu.org/git/gcc.git
re PR debug/52027 (ICE: SIGSEGV in set_cur_line_info_table (dwarf2out.c:20428) with -O -freorder-blocks-and-partition -fno-reorder-functions -fprofile-use)
PR debug/52027 * dwarf2out.c (dwarf2out_switch_text_section): Don't call set_cur_line_info_table if not emitting debug info. * gcc.dg/tree-prof/pr52027.c: New test. From-SVN: r183725
This commit is contained in:
parent
2f32669918
commit
2026d51a41
|
|
@ -1,5 +1,9 @@
|
||||||
2012-01-30 Jakub Jelinek <jakub@redhat.com>
|
2012-01-30 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
PR debug/52027
|
||||||
|
* dwarf2out.c (dwarf2out_switch_text_section): Don't call
|
||||||
|
set_cur_line_info_table if not emitting debug info.
|
||||||
|
|
||||||
PR tree-optimization/52046
|
PR tree-optimization/52046
|
||||||
* tree-vect-patterns.c (check_bool_pattern): Give up if
|
* tree-vect-patterns.c (check_bool_pattern): Give up if
|
||||||
a comparison could throw.
|
a comparison could throw.
|
||||||
|
|
|
||||||
|
|
@ -1177,7 +1177,8 @@ dwarf2out_switch_text_section (void)
|
||||||
|
|
||||||
var_location_switch_text_section ();
|
var_location_switch_text_section ();
|
||||||
|
|
||||||
set_cur_line_info_table (sect);
|
if (cold_text_section != NULL)
|
||||||
|
set_cur_line_info_table (sect);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* And now, the subset of the debugging information support code necessary
|
/* And now, the subset of the debugging information support code necessary
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
2012-01-30 Jakub Jelinek <jakub@redhat.com>
|
2012-01-30 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
PR debug/52027
|
||||||
|
* gcc.dg/tree-prof/pr52027.c: New test.
|
||||||
|
|
||||||
PR tree-optimization/52046
|
PR tree-optimization/52046
|
||||||
* gcc.dg/pr52046.c: New test.
|
* gcc.dg/pr52046.c: New test.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
/* PR debug/52027 */
|
||||||
|
/* { dg-require-effective-target freorder } */
|
||||||
|
/* { dg-options "-O -freorder-blocks-and-partition -fno-reorder-functions" } */
|
||||||
|
|
||||||
|
void
|
||||||
|
foo (int len)
|
||||||
|
{
|
||||||
|
char array[1000];
|
||||||
|
__builtin_memset (array, 0, len);
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < 1000; i++)
|
||||||
|
foo (8);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue