public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/casm-refactoring-v3)] Support GGC memory.
@ 2021-10-21  8:29 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-10-21  8:29 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0394ec64dea4c64abbb2584aba6052bb1540ef82

commit 0394ec64dea4c64abbb2584aba6052bb1540ef82
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Oct 21 10:08:28 2021 +0200

    Support GGC memory.

Diff:
---
 gcc/config/rs6000/rs6000-internal.h | 2 ++
 gcc/config/rs6000/rs6000.c          | 9 ++++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/gcc/config/rs6000/rs6000-internal.h b/gcc/config/rs6000/rs6000-internal.h
index 2faf40e2efe..c810ea80720 100644
--- a/gcc/config/rs6000/rs6000-internal.h
+++ b/gcc/config/rs6000/rs6000-internal.h
@@ -201,6 +201,8 @@ struct rs6000_asm_out_state : public asm_out_state
   } target_sec;
 };
 
+extern GTY(()) rs6000_asm_out_state *target_casm;
+
 #define rs6000_casm static_cast<rs6000_asm_out_state *> (casm)
 
 #endif
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 2d4b416d208..62b75cd5ad5 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -20691,16 +20691,19 @@ rs6000_asm_out_state::rs6000_asm_out_state ()
 			   SDATA2_SECTION_ASM_OP);
 }
 
+/* Target CASM state used for GGC memory.  */
+rs6000_asm_out_state *target_casm;
+
 /* Implement TARGET_ASM_INIT_SECTIONS.  */
 
 static asm_out_state *
 rs6000_elf_asm_init_sections (void)
 {
-  rs6000_asm_out_state *state
+  rs6000_asm_out_state *target_state
     = new (ggc_alloc<rs6000_asm_out_state> ()) rs6000_asm_out_state ();
-  state->init_sections ();
+  target_state->init_sections ();
 
-  return state;
+  return target_state;
 }
 
 /* Implement TARGET_SELECT_RTX_SECTION.  */


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

only message in thread, other threads:[~2021-10-21  8:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-21  8:29 [gcc(refs/users/marxin/heads/casm-refactoring-v3)] Support 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).