debug/97718 - fix abstract origin references after last change
authorRichard Biener <rguenther@suse.de>
Thu, 5 Nov 2020 08:27:28 +0000 (09:27 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 5 Nov 2020 09:20:30 +0000 (10:20 +0100)
commit1436ef2a57e79b6b8ce5b03e32a38dd64f46c97c
treede4c842f80b554d93c1dbc6398c471c577d4f245
parente3587a2d8b005d72f882a21864fb132f8a966366
debug/97718 - fix abstract origin references after last change

The change to clear the external_die_map slot after creating
the concrete instance DIE broke abstract origin processing which
tried to make sure to have those point to the early abstract instance
and not the concrete instance.  The following restores this by
eventually following the abstract origin link in the concrete instance.

2020-11-05  Richard Biener  <rguenther@suse.de>

PR debug/97718
* dwarf2out.c (add_abstract_origin_attribute): Make sure to
point to the abstract instance.
gcc/dwarf2out.c