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 <[email protected]>

gcc/algol68/ChangeLog

        * a68-imports.cc (struct encoded_mode): Type of flex.sub_offset
        shall be uint64_t.
---
 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

Reply via email to