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

https://gcc.gnu.org/g:39414715a2d2f35339086c1c287d6b36037c11ad

commit 39414715a2d2f35339086c1c287d6b36037c11ad
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Oct 21 09:59:41 2021 +0200

    Add missing rs6000_asm_out_state ctor.

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

diff --git a/gcc/config/rs6000/rs6000-internal.h b/gcc/config/rs6000/rs6000-internal.h
index 9898e9a6842..2faf40e2efe 100644
--- a/gcc/config/rs6000/rs6000-internal.h
+++ b/gcc/config/rs6000/rs6000-internal.h
@@ -191,6 +191,9 @@ extern bool cpu_builtin_p;
 
 struct rs6000_asm_out_state : public asm_out_state
 {
+  /* Default constructor.  */
+  rs6000_asm_out_state ();
+
   struct
   {
     section *toc;
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 1dcc1948b60..2d4b416d208 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -20681,6 +20681,16 @@ rs6000_elf_output_toc_section_asm_op (const void *data ATTRIBUTE_UNUSED)
     }
 }
 
+rs6000_asm_out_state::rs6000_asm_out_state ()
+{
+  target_sec.toc
+    = get_unnamed_section (0, rs6000_elf_output_toc_section_asm_op, NULL);
+
+ target_sec.sdata2
+    = get_unnamed_section (SECTION_WRITE, output_section_asm_op,
+			   SDATA2_SECTION_ASM_OP);
+}
+
 /* Implement TARGET_ASM_INIT_SECTIONS.  */
 
 static asm_out_state *


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

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

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