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-refactoring-v3)] Support GGC memory. Date: Thu, 21 Oct 2021 08:29:02 +0000 (GMT) [thread overview] Message-ID: <20211021082902.9972D3858D39@sourceware.org> (raw) 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. */
reply other threads:[~2021-10-21 8:29 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=20211021082902.9972D3858D39@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).