Patchwork PR debug/50983

login
register
mail settings
Submitter Roberto Agostino Vitillo
Date Nov. 7, 2011, 10:48 p.m.
Message ID <06E1A8DB-DA10-4241-BF88-0C816860D464@gmail.com>
Download mbox | patch
Permalink /patch/124210/
State New
Headers show

Comments

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

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