This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]