Commit f9a7b553 authored by jakub's avatar jakub
Browse files

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.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183725 138bc75d-0d04-0410-961f-82ee72b054a4
parent 3a542b98
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
* tree-vect-patterns.c (check_bool_pattern): Give up if
a comparison could throw.
......
......@@ -1177,7 +1177,8 @@ dwarf2out_switch_text_section (void)
 
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
......
2012-01-30 Jakub Jelinek <jakub@redhat.com>
PR debug/52027
* gcc.dg/tree-prof/pr52027.c: New test.
PR tree-optimization/52046
* gcc.dg/pr52046.c: New test.
......
/* 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;
}
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