public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7346] rs6000: Fix GC on rs6000.c decls for atomic handling (PR88134)
@ 2022-02-22 16:22 Segher Boessenkool
  0 siblings, 0 replies; only message in thread
From: Segher Boessenkool @ 2022-02-22 16:22 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:537c96588026aec09b9a00d6d0f3670f612428b5

commit r12-7346-g537c96588026aec09b9a00d6d0f3670f612428b5
Author: Segher Boessenkool <segher@kernel.crashing.org>
Date:   Tue Feb 22 15:49:09 2022 +0000

    rs6000: Fix GC on rs6000.c decls for atomic handling (PR88134)
    
    In PR88134 it is pointed out that we do not have GTY markup for some
    variables we use for atomic.  So, let's add that.
    
    2022-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
    
            PR target/88134
            * config/rs6000/rs6000.cc (atomic_hold_decl, atomic_clear_decl,
            atomic_update_decl): Add GTY markup.

Diff:
---
 gcc/config/rs6000/rs6000.cc | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc
index ca9e7b80dcb..a855e8c4c72 100644
--- a/gcc/config/rs6000/rs6000.cc
+++ b/gcc/config/rs6000/rs6000.cc
@@ -27699,14 +27699,13 @@ emit_fusion_gpr_load (rtx target, rtx mem)
   return "";
 }
 \f
-
-#ifdef RS6000_GLIBC_ATOMIC_FENV
-/* Function declarations for rs6000_atomic_assign_expand_fenv.  */
-static tree atomic_hold_decl, atomic_clear_decl, atomic_update_decl;
-#endif
+/* This is not inside an  #ifdef RS6000_GLIBC_ATOMIC_FENV  because gengtype
+   ignores it then.  */
+static GTY(()) tree atomic_hold_decl;
+static GTY(()) tree atomic_clear_decl;
+static GTY(()) tree atomic_update_decl;
 
 /* Implement TARGET_ATOMIC_ASSIGN_EXPAND_FENV hook.  */
-
 static void
 rs6000_atomic_assign_expand_fenv (tree *hold, tree *clear, tree *update)
 {


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

only message in thread, other threads:[~2022-02-22 16:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-22 16:22 [gcc r12-7346] rs6000: Fix GC on rs6000.c decls for atomic handling (PR88134) Segher Boessenkool

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