PR debug/41695
* dwarf2out.c (dwarf2out_var_location): Always clear
last_postcall_label when changing last_label.
* gcc.dg/debug/dwarf2/pr41695.c: New test.
From-SVN: r152760
+2009-10-14 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/41695
+ * dwarf2out.c (dwarf2out_var_location): Always clear
+ last_postcall_label when changing last_label.
+
2009-10-14 Pascal Obry <obry@adacore.com>
* gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
ASM_OUTPUT_DEBUG_LABEL (asm_out_file, "LVL", loclabel_num);
loclabel_num++;
last_label = ggc_strdup (loclabel);
- if (!NOTE_DURING_CALL_P (loc_note))
- last_postcall_label = NULL;
+ last_postcall_label = NULL;
}
newloc->var_loc_note = loc_note;
newloc->next = NULL;
+2009-10-14 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/41695
+ * gcc.dg/debug/dwarf2/pr41695.c: New test.
+
2009-10-14 Uros Bizjak <ubizjak@gmail.com>
* gcc.target/i386/i386.exp (check_effective_target_ms_hook_prologue):
New procedure.
- * gcc.target/i386/ms_hook_prologue.c: Check for ms_hook_prologue
+ * gcc.target/i386/ms_hook_prologue.c: Check for ms_hook_prologue
effective target.
2009-10-14 Jason Merrill <jason@redhat.com>
--- /dev/null
+/* PR debug/41695 */
+/* { dg-do compile } */
+/* { dg-options "-g -O2 -dA -fno-merge-debug-strings" } */
+
+int bar (int);
+
+void
+foo (void)
+{
+ int b = 0;
+ b = bar (b);
+ b = bar (b);
+ b = bar (b);
+ b = bar (b);
+ bar (b);
+}
+
+/* { dg-final { scan-assembler-not "LVL(\[0-9\]+)-\[^1\]\[^\\r\\n\]*Location list begin address\[^\\r\\n\]*\[\\r\\n\]+\[^\\r\\n\]*LVL\\1-1-" } } */