https://gcc.gnu.org/g:92d068f3784a0100247a1f0a46d81ad232d90633

commit r17-1548-g92d068f3784a0100247a1f0a46d81ad232d90633
Author: Jose E. Marchesi <[email protected]>
Date:   Sun Jun 14 13:03:19 2026 +0200

    a68: fix type of flex.sub_offset in struct encoded_mode
    
    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.

Diff:
---
 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 1d4bacec135c..5200d4ba71b1 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

Reply via email to