]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
algol68: Fix SPARC build
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 1 Dec 2025 12:36:35 +0000 (13:36 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 1 Dec 2025 12:36:35 +0000 (13:36 +0100)
Algol68 bootstrap currently fails on Solaris/SPARC:

n file included from ./tm_p.h:4,
                 from gcc/algol68/a68-imports.cc:36:
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);
      |                                               ^~~~~~~~

tm_p.h needs memmodel.h on some targets, like SPARC.

Bootstrapped on sparc-sun-solaris2.11.

2025-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

gcc/algol68:
* a68-exports.cc: Include memmodel.h.
* a68-imports.cc: Likeswise.

gcc/algol68/a68-exports.cc
gcc/algol68/a68-imports.cc

index 58d04d5842bcf6166508c85634e1ec32046f8ec7..375b6213cefbf6ba79df35fd564d5c2a4198f9f2 100644 (file)
@@ -22,6 +22,7 @@
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
+#include "memmodel.h"
 #include "tree.h"
 #include "target.h"
 #include "tm_p.h"
index a5c66bcb4cc84314f7e74f00d4c798bf244a4522..6b203b26273b077a2a7b5912ccf125749948969a 100644 (file)
@@ -31,6 +31,7 @@
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
+#include "memmodel.h"
 #include "tree.h"
 #include "target.h"
 #include "tm_p.h"