Tested on x86_64-linux. r gcc/Changelog: 2011-11-07 Roberto Agostino Vitillo <raviti...@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; }