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
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.
var_location_switch_text_section ();
- set_cur_line_info_table (sect);
+ if (cold_text_section != NULL)
+ set_cur_line_info_table (sect);
}
\f
/* 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.
--- /dev/null
+/* 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;
+}