]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix tree.cc compilation on SPARC
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 15 Jul 2025 07:49:52 +0000 (09:49 +0200)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 15 Jul 2025 07:49:52 +0000 (09:49 +0200)
commit 4d7baa94a48c27030c8ffcfaf3dd187be09903a9
Author: Andrew Pinski <quic_apinski@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  <ro@CeBiTec.Uni-Bielefeld.DE>

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

gcc/tree.cc

index 9d3d0ecf3245977454573e0b01c95b09bf26aae1..9bc6228e9b48bf94c4694f450fccb48a69392313 100644 (file)
@@ -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"