Commit b29ee46c by Jakub Jelinek

re PR debug/41695 (Invalid .debug_loc created)

	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
parent 1b5bc8e9
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.
......@@ -20013,8 +20013,7 @@ dwarf2out_var_location (rtx loc_note)
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>
......
/* 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-" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment