]> git.ipfire.org Git - thirdparty/gcc.git/commit
a68: support only one definition module per prelude packet
authorJose E. Marchesi <jose.marchesi@oracle.com>
Tue, 16 Dec 2025 17:17:37 +0000 (18:17 +0100)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Tue, 16 Dec 2025 19:08:27 +0000 (20:08 +0100)
commitc08e4e239000b97f0bf6186126c825b5fe33c994
tree9362367a601776852ddf48fc4a4b1dc44c0b1435
parent1823d42676a98804d8b05ee5ea59ed69da427b91
a68: support only one definition module per prelude packet

At this point we only support having a single definition module in
each prelude packet.  It is planned to change this, and also to
support local not-toplevel modules, but not in the next GCC release.
So until that gets fully implemented, it is pointless to support
parsing multiple contracted module definitions.

This commit removes this support from the parser and adjusts several
tests that were making use of it.

Signed-off-by: Jose E. Marchesi <jemarch@gnu.org>
gcc/algol68/ChangeLog

* a68-parser-bottom-up.cc (reduce_prelude_packet): Do not support
multiple module definitions per packet.

gcc/testsuite/ChangeLog

* algol68/compile/error-compile-unknown-tag-1.a68: Use a single
module per packet.
* algol68/compile/error-module-coercions-1.a68: Likewise.
* algol68/compile/error-module-ranges-1.a68: Likewise.
* algol68/compile/module-2.a68: Likewise.
* algol68/compile/module-pub-mangling-1.a68: Likewise.
* algol68/compile/module-pub-mangling-2.a68: Likewise.
* algol68/compile/module-pub-mangling-3.a68: Likewise.
* algol68/compile/module-pub-mangling-4.a68: Likewise.
* algol68/compile/module-pub-mangling-5.a68: Likewise.
* algol68/compile/module-pub-mangling-6.a68: Likewise.
* algol68/compile/warning-module-hidding-1.a68: Likewise.
12 files changed:
gcc/algol68/a68-parser-bottom-up.cc
gcc/testsuite/algol68/compile/error-compile-unknown-tag-1.a68
gcc/testsuite/algol68/compile/error-module-coercions-1.a68
gcc/testsuite/algol68/compile/error-module-ranges-1.a68
gcc/testsuite/algol68/compile/module-2.a68
gcc/testsuite/algol68/compile/module-pub-mangling-1.a68
gcc/testsuite/algol68/compile/module-pub-mangling-2.a68
gcc/testsuite/algol68/compile/module-pub-mangling-3.a68
gcc/testsuite/algol68/compile/module-pub-mangling-4.a68
gcc/testsuite/algol68/compile/module-pub-mangling-5.a68
gcc/testsuite/algol68/compile/module-pub-mangling-6.a68
gcc/testsuite/algol68/compile/warning-module-hidding-1.a68