+2011-11-10 Roberto Agostino Vitillo <ravitillo@lbl.gov>
+
+ PR debug/50983
+ * dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
+ value in the current line table.
+
2011-11-10 Nathan Sidwell <nathan@acm.org>
* gcov.c (struct function_info): Make src an index, not a pointer.
VEC_safe_push (dw_line_info_table_p, gc, separate_line_info, table);
}
+ if (DWARF2_ASM_LINE_DEBUG_INFO)
+ table->is_stmt = (cur_line_info_table
+ ? cur_line_info_table->is_stmt
+ : DWARF_LINE_DEFAULT_IS_STMT_START);
cur_line_info_table = table;
}
+2011-11-10 Jason Merrill <jason@redhat.com>
+
+ PR debug/50983
+ * gcc.dg/debug/dwarf2/asm-line1.c: New.
+
2011-11-10 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/atomic6_1.adb: New test.
--- /dev/null
+/* PR debug/50983 */
+/* { dg-do compile { target *-*-linux-gnu } } */
+/* { dg-options "-O0 -gdwarf-2" } */
+/* { dg-final { scan-assembler "is_stmt 1" } } */
+
+int i;
+void f() __attribute ((section ("foo")));
+void f() { if (i) ++i; else --i; }
+
+void fun()
+{
+ return;
+}
+
+int main()
+{
+ f();
+ fun();
+ return 0;
+}