https://gcc.gnu.org/g:18a144f969d515b899002bb98b90bfb4f7199a08

commit r16-5793-g18a144f969d515b899002bb98b90bfb4f7199a08
Author: Rainer Orth <[email protected]>
Date:   Mon Dec 1 13:36:35 2025 +0100

    algol68: Fix SPARC build
    
    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  <[email protected]>
    
            gcc/algol68:
            * a68-exports.cc: Include memmodel.h.
            * a68-imports.cc: Likeswise.

Diff:
---
 gcc/algol68/a68-exports.cc | 1 +
 gcc/algol68/a68-imports.cc | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gcc/algol68/a68-exports.cc b/gcc/algol68/a68-exports.cc
index 58d04d5842bc..375b6213cefb 100644
--- 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
index a5c66bcb4cc8..6b203b26273b 100644
--- 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"

Reply via email to