diff mbox

PR debug/50983

Message ID 06E1A8DB-DA10-4241-BF88-0C816860D464@gmail.com
State New
Headers show

Commit Message

Roberto Agostino Vitillo Nov. 7, 2011, 10:48 p.m. UTC
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.
diff mbox

Patch

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;
 }