commit 4d7baa94a48c27030c8ffcfaf3dd187be09903a9
Author: Andrew Pinski <quic_apin...@quicinc.com>
Date:   Sun Jul 13 11:56:03 2025 -0700

    tree: Add include to tm_p.h to tree.cc [PR120866]

broke SPARC bootstrap:

In file included from ./tm_p.h:4,
                 from /vol/gcc/src/hg/master/local/gcc/tree.cc:35:
/vol/gcc/src/hg/master/local/gcc/config/sparc/sparc-protos.h:46:47: error: use 
of enum ‘memmodel’ without previous declaration
   46 | extern void sparc_emit_membar_for_model (enum memmodel, int, int);
      |              

Fixed by including memmodel.h.

Bootstrapped without regressions on sparc-sun-solaris2.11 and
i386-pc-solaris2.11.

Committed to trunk.

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


2025-07-15  Rainer Orth  <r...@cebitec.uni-bielefeld.de>

        gcc:
        * tree.cc: Include memmodel.h.

diff --git a/gcc/tree.cc b/gcc/tree.cc
--- a/gcc/tree.cc
+++ b/gcc/tree.cc
@@ -32,6 +32,7 @@ along with GCC; see the file COPYING3.  
 #include "coretypes.h"
 #include "backend.h"
 #include "target.h"
+#include "memmodel.h"
 #include "tm_p.h"
 #include "tree.h"
 #include "gimple.h"

Reply via email to