mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
1b5bc8e9f2
commit
b29ee46cf2
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2009-10-14 Pascal Obry <obry@adacore.com>
|
||||||
|
|
||||||
* gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
|
* 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);
|
ASM_OUTPUT_DEBUG_LABEL (asm_out_file, "LVL", loclabel_num);
|
||||||
loclabel_num++;
|
loclabel_num++;
|
||||||
last_label = ggc_strdup (loclabel);
|
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->var_loc_note = loc_note;
|
||||||
newloc->next = NULL;
|
newloc->next = NULL;
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
|
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>
|
2009-10-14 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
* gcc.target/i386/i386.exp (check_effective_target_ms_hook_prologue):
|
* gcc.target/i386/i386.exp (check_effective_target_ms_hook_prologue):
|
||||||
New procedure.
|
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.
|
effective target.
|
||||||
|
|
||||||
2009-10-14 Jason Merrill <jason@redhat.com>
|
2009-10-14 Jason Merrill <jason@redhat.com>
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
/* 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-" } } */
|
Loading…
Reference in New Issue