summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-10-31 21:51:22 +0000
committerDavid S. Miller <davem@gcc.gnu.org>2011-10-31 14:51:22 -0700
commit82a595022800fde2004b64570983ea850030eeeb (patch)
tree41dfde41df45574276c56378797784c16b0269ac /gcc/dwarf2out.c
parentb59546bf651a60f59b74826dfc7317b941c6b6d1 (diff)
downloadgcc-82a595022800fde2004b64570983ea850030eeeb.tar.gz
Invalidate cached next real insn in dwarf2out_end_epilogue().
* dwarf2out.c (cached_next_real_insn): New. (dwarf2out_end_epilogue): Set it to NULL_RTX. (dwarf2out_var_location): Remove cached_next_real_insn local static. From-SVN: r180713
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 478952f7211..e6f86a49854 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -98,6 +98,7 @@ along with GCC; see the file COPYING3. If not see
static void dwarf2out_source_line (unsigned int, const char *, int, bool);
static rtx last_var_location_insn;
+static rtx cached_next_real_insn;
#ifdef VMS_DEBUGGING_INFO
int vms_file_stats_name (const char *, long long *, long *, char *, int *);
@@ -1090,6 +1091,7 @@ dwarf2out_end_epilogue (unsigned int line ATTRIBUTE_UNUSED,
char label[MAX_ARTIFICIAL_LABEL_BYTES];
last_var_location_insn = NULL_RTX;
+ cached_next_real_insn = NULL_RTX;
if (dwarf2out_do_cfi_asm ())
fprintf (asm_out_file, "\t.cfi_endproc\n");
@@ -20132,7 +20134,6 @@ dwarf2out_var_location (rtx loc_note)
static const char *last_postcall_label;
static bool last_in_cold_section_p;
static rtx expected_next_loc_note;
- static rtx cached_next_real_insn;
tree decl;
bool var_loc_p;