[GCC16][COMMITTED 16/29] a68: fix type of flex.sub_offset in struct encoded_mode

Jose E. Marchesi jemarch@gnu.org
Tue Jul 21 11:03:00 GMT 2026


The type of flex.sub_offset in struct encoded_mode shall of course be
uint64_t rather than uint8_t.  This was triggering corrupted exports
sections once a certain amount of modes were reached.

Signed-off-by: Jose E. Marchesi <jemarch@gnu.org>

gcc/algol68/ChangeLog

	* a68-imports.cc (struct encoded_mode): Type of flex.sub_offset
	shall be uint64_t.

(cherry picked from commit 92d068f3784a0100247a1f0a46d81ad232d90633)
---
 gcc/algol68/a68-imports.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/algol68/a68-imports.cc b/gcc/algol68/a68-imports.cc
index 1d4bacec135..5200d4ba71b 100644
--- a/gcc/algol68/a68-imports.cc
+++ b/gcc/algol68/a68-imports.cc
@@ -650,7 +650,7 @@ struct encoded_mode
 
     struct
     {
-      uint8_t sub_offset;
+      uint64_t sub_offset;
     } flex;
 
     struct
-- 
2.39.5



More information about the Algol68 mailing list