This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] PR debug/50983
- From: Roberto Agostino Vitillo <ra dot vitillo at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Jason Merrill <jason at redhat dot com>
- Date: Mon, 7 Nov 2011 14:48:25 -0800
- Subject: [PATCH] PR debug/50983
Tested on x86_64-linux.
r
gcc/Changelog:
2011-11-07 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.
Index: gcc/gcc/dwarf2out.c
===================================================================
--- gcc/gcc/dwarf2out.c (revision 180817)
+++ gcc/gcc/dwarf2out.c (working copy)
@@ -20363,6 +20363,9 @@
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;
}