* [patch] Fix PR debug/104366
@ 2022-02-04 10:41 Eric Botcazou
2022-02-04 10:56 ` Richard Biener
0 siblings, 1 reply; 2+ messages in thread
From: Eric Botcazou @ 2022-02-04 10:41 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 339 bytes --]
Hi,
this completes my fix for PR debug/101947 by emptying the base_types vector
before (re)populating it.
Tested on x86_64-suse-linux, OK for the mainline?
2022-02-04 Eric Botcazou <ebotcazou@adacore.com>
PR debug/104366
* dwarf2out.cc (dwarf2out_finish): Empty base_types.
(dwarf2out_early_finish): Likewise.
--
Eric Botcazou
[-- Attachment #2: pr104366.diff --]
[-- Type: text/x-patch, Size: 842 bytes --]
diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc
index e60575b1398..d1e8654e4d7 100644
--- a/gcc/dwarf2out.cc
+++ b/gcc/dwarf2out.cc
@@ -32155,6 +32155,7 @@ dwarf2out_finish (const char *filename)
FOR_EACH_CHILD (die, c, gcc_assert (! c->die_mark));
}
#endif
+ base_types.truncate (0);
for (ctnode = comdat_type_list; ctnode != NULL; ctnode = ctnode->next)
resolve_addr (ctnode->root_die);
resolve_addr (comp_unit_die ());
@@ -32999,6 +33000,7 @@ dwarf2out_early_finish (const char *filename)
location related output removed and some LTO specific changes.
Some refactoring might make both smaller and easier to match up. */
+ base_types.truncate (0);
for (ctnode = comdat_type_list; ctnode != NULL; ctnode = ctnode->next)
mark_base_types (ctnode->root_die);
mark_base_types (comp_unit_die ());
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] Fix PR debug/104366
2022-02-04 10:41 [patch] Fix PR debug/104366 Eric Botcazou
@ 2022-02-04 10:56 ` Richard Biener
0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2022-02-04 10:56 UTC (permalink / raw)
To: Eric Botcazou; +Cc: GCC Patches
On Fri, Feb 4, 2022 at 11:41 AM Eric Botcazou via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> Hi,
>
> this completes my fix for PR debug/101947 by emptying the base_types vector
> before (re)populating it.
>
> Tested on x86_64-suse-linux, OK for the mainline?
OK.
>
> 2022-02-04 Eric Botcazou <ebotcazou@adacore.com>
>
> PR debug/104366
> * dwarf2out.cc (dwarf2out_finish): Empty base_types.
> (dwarf2out_early_finish): Likewise.
>
> --
> Eric Botcazou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-04 10:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-04 10:41 [patch] Fix PR debug/104366 Eric Botcazou
2022-02-04 10:56 ` Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).