GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
gcc/algol68

Fix fixed-sized modes in Algol68 for non-64-bit targets

Corrects Algol68 handling of fixed-size numeric modes on 32-bit targets.

GCC’s Algol68 front-end has been updated to correctly handle fixed-size numeric modes on non-64-bit targets. Previously, simply comparing the mode of results and operands was insufficient; the precision of these modes must now be compared. This change ensures that built-in functions correctly select operations based on the precise size of numeric types.

This fix ensures correct mathematical operations for fixed-size numeric types in Algol68 programs compiled on 32-bit architectures.

In Details

In gcc/algol68/a68-low-reals.cc, the functions a68_real_entier, a68_real_round, and a68_real_pow have been modified to correctly handle fixed-sized modes on non-64-bit targets. The previous logic relied solely on mode comparison, which is inadequate for distinguishing between different fixed precisions. The updated code now compares precisions to select the appropriate built-in operations. Test cases in gcc/testsuite/algol68/execute have also been adjusted for 32-bit targets.

For Context
Algol68
A programming language known for its powerful type system and original contributions to language design. GCC includes a front-end to compile Algol68 code.
fixed-sized modes
Data types that have a specific, constant size in memory, such as int or float, as opposed to variable-sized types. In this context, it refers to specific numeric representations used by Algol68.
precision
The number of bits used to represent a numeric value, which determines the range and accuracy of the number.
Filed Under: bugfixlanguagealgol68