This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Dwarf views broken on ia64?
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: "Jan Beulich" <JBeulich at suse dot com>
- Cc: "Nick Clifton" <nickc at redhat dot com>, <binutils at sourceware dot org>
- Date: Fri, 25 May 2018 21:43:34 -0300
- Subject: Re: Dwarf views broken on ia64?
- References: <5B0517CD02000078001C4FDA@prv1-mh.provo.novell.com>
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