This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dwarf views broken on ia64?


On May 23, 2018, "Jan Beulich" <JBeulich@suse.com> wrote:

> Solution suggestions appreciated,

The problem seems to be caused by reuse of view symbols.  The same
symbol may be copied to the debug_line associated with multiple slots.
It looks like this fixes it, but I'd appreciate if someone more familiar
with the way ia64 does insn pack bundling could check that this makes
sense.  I'm concerned that, even if this works as is, once GCC tries
again to figure out on its own where view resets should be, and issue
view asserts (view 0) at such points, placement of insns in bundles
might cause views to be issued out of order, and thus end up failing
asserts again.  Could this ever happen?


diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index e7c0b6e..6d8be4a 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -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

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]