public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/casm-state-v3)] Do not make dwarf_state in GGC memory.
@ 2021-09-14 12:36 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-09-14 12:36 UTC (permalink / raw)
  To: gcc-cvs

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-14 12:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 12:36 [gcc(refs/users/marxin/heads/casm-state-v3)] Do not make dwarf_state in GGC memory Martin Liska

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).