Drop view when consuming line info
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 1 Jun 2018 09:00:25 +0000 (06:00 -0300)
committerAlexandre Oliva <aoliva@redhat.com>
Fri, 1 Jun 2018 09:00:25 +0000 (06:00 -0300)
Fix locviews on ia64.  If we do not drop the view after copying line
info to slots in the bundle, we may attempt to compute the view more
than once and get very confused.

for  gas/ChangeLog

* dwarf2dbg.c (dwarf2_consume_line_info): Drop view.

gas/ChangeLog
gas/dwarf2dbg.c

index f459469b4e62fb896cebc51c93d7b753f22fd9c3..ab269747d456795684f61411817e5c3f40e57abe 100644 (file)
@@ -1,3 +1,7 @@
+2018-06-01  Alexandre Oliva <aoliva@redhat.com>
+
+       * dwarf2dbg.c (dwarf2_consume_line_info): Drop view.
+
 2018-06-01  Jan Beulich  <jbeulich@suse.com>
 
        * testsuite/gas/i386/ilp32/x86-64-opcode.d,
index e7c0b6e2a91b891f85295b08413416488bfeb41b..71932653d6dfaf805e3635ca3da707caf35499a5 100644 (file)
@@ -624,6 +624,7 @@ dwarf2_consume_line_info (void)
                     | DWARF2_FLAG_PROLOGUE_END
                     | DWARF2_FLAG_EPILOGUE_BEGIN);
   current.discriminator = 0;
+  current.view = NULL;
 }
 
 /* Called for each (preferably code) label.  If dwarf2_loc_mark_labels