]> git.feebdaed.xyz Git - 0xmirror/gcc.git/commit
a68: avoid pack_soids_in_moid to return unregistered modes master
authorJose E. Marchesi <jose.marchesi@oracle.com>
Sat, 27 Dec 2025 15:04:06 +0000 (16:04 +0100)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Sat, 27 Dec 2025 15:04:06 +0000 (16:04 +0100)
commit4ac337019ab71bb247fd56ef56d81f1dc0690151
treec78e0374b0b5ca337d6527a9a8143428ba915ad4
parent05b35491d31dfe0fd86440f4219000164ad4a701
a68: avoid pack_soids_in_moid to return unregistered modes

This function fixes the pack_soids_in_moid function so it never
returns a mode that has not been registered.

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

* a68-moids-misc.cc (a68_pack_soids_in_moid): Return the result of
a68_register_extra_mode.

gcc/testsuite/ChangeLog

* algol68/execute/pack-soids-in-moid-1.a68: New test.
gcc/algol68/a68-moids-misc.cc
gcc/testsuite/algol68/execute/pack-soids-in-moid-1.a68 [new file with mode: 0644]