]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
commit18a144f969d515b899002bb98b90bfb4f7199a08
tree8c54987ce38cada1ed3dbef45476903f952cb7b3
parent723b18ce3dd24ebcbb6426fb40a375642477123f
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  <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