https://gcc.gnu.org/g:8cb151ef432f0051a2fce56ff65a45e4db06d88b

commit r16-2246-g8cb151ef432f0051a2fce56ff65a45e4db06d88b
Author: Rainer Orth <r...@cebitec.uni-bielefeld.de>
Date:   Tue Jul 15 09:49:52 2025 +0200

    Fix tree.cc compilation on SPARC
    
    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.
    
    2025-07-15  Rainer Orth  <r...@cebitec.uni-bielefeld.de>
    
            gcc:
            * tree.cc: Include memmodel.h.

Diff:
---
 gcc/tree.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/tree.cc b/gcc/tree.cc
index 9d3d0ecf3245..9bc6228e9b48 100644
--- a/gcc/tree.cc
+++ b/gcc/tree.cc
@@ -32,6 +32,7 @@ along with GCC; see the file COPYING3.  If not see
 #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