public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/casm-state-v3)] Do not make dwarf_state in GGC memory. Date: Tue, 14 Sep 2021 12:36:29 +0000 (GMT) [thread overview] Message-ID: <20210914123629.E54B53857C74@sourceware.org> (raw) https://gcc.gnu.org/g:7f4d9cdf3dfe184d9c9d549abfa4fee2410b5068 commit 7f4d9cdf3dfe184d9c9d549abfa4fee2410b5068 Author: Martin Liska <mliska@suse.cz> Date: Tue Sep 14 14:19:21 2021 +0200 Do not make dwarf_state in GGC memory. Diff: --- gcc/dwarf2out.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 3920fc432a7..acc3a97e06a 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -430,7 +430,7 @@ struct GTY(()) dwarf_out_state unsigned macinfo_label_base; }; -static GTY(()) dwarf_out_state *dwarf_state = NULL; +static dwarf_out_state *dwarf_state = NULL; static vec<dwarf_out_state *> dwarf_stack; @@ -29361,7 +29361,7 @@ init_sections_and_labels (bool early_lto_debug) static void dwarf2out_init (const char *filename ATTRIBUTE_UNUSED) { - dwarf_state = new (ggc_alloc<dwarf_out_state> ()) dwarf_out_state (casm); + dwarf_state = new dwarf_out_state (casm); /* Allocate the file_table. */ file_table = hash_table<dwarf_file_hasher>::create_ggc (50); @@ -33056,7 +33056,7 @@ dwarf2out_early_finish (const char *filename) void dwarf2out_c_finalize (void) { - ggc_free (dwarf_state); + delete dwarf_state; dwarf_state = NULL; last_var_location_insn = NULL;
reply other threads:[~2021-09-14 12:36 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210914123629.E54B53857C74@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).