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.
Ok for trunk?
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
2025-12-01 Rainer Orth <[email protected]>
gcc/algol68:
* a68-exports.cc: Include memmodel.h.
* a68-imports.cc: Likeswise.
# HG changeset patch
# Parent 6c2e02ed4c6f910cc454c264e57ad6b552a65241
algol68: Fix Solaris build
diff --git a/gcc/algol68/a68-exports.cc b/gcc/algol68/a68-exports.cc
--- a/gcc/algol68/a68-exports.cc
+++ b/gcc/algol68/a68-exports.cc
@@ -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"
diff --git a/gcc/algol68/a68-imports.cc b/gcc/algol68/a68-imports.cc
--- a/gcc/algol68/a68-imports.cc
+++ b/gcc/algol68/a68-imports.cc
@@ -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"