GCC Newspaper
NOVEMBER 30, 2026
gcc/fortran — Proposed

Fortran async fixes

Adds support for array spans in Fortran I/O operations.

This pull request introduces new I/O call identifiers for handling array spans, specifically for transfer_array_span and transfer_array_span_write. These additions aim to improve the Fortran compiler’s ability to manage and transfer data within array structures during I/O operations.

In the Thread 1 participant
  1. suvarchal proposer

    Proposes adding new I/O call identifiers for Fortran array spans.

    “iocall[IOCALL_X_ARRAY_SPAN] = gfc_build_library_function_decl_with_spec ( get_identifier (PREFIX("transfer_array_span")), ". w w . . ", void_type_node, 4, dt_parm_type, pvoid_type_node, integer_type_node, gfc_charlen_type_node); iocall[IOCALL_X_ARRAY_SPAN_WRITE] = gfc_build_library_function_decl_with_spec ( get_identifier (PREFIX("transfer_array_span_write")), ". w r . . ", void_type_…”

In Details

This PR modifies the Fortran frontend's I/O handling by adding support for transfer_array_span and transfer_array_span_write. These are new I/O call identifiers that will be used by the intermediate representation generation for Fortran I/O statements involving array spans, likely for more efficient data transfer in specific I/O scenarios.

For Context
array span
A contiguous portion of an array, often defined by a start index, end index, and stride, used for efficient data manipulation and I/O.
I/O call identifiers
Enums or constants used within the compiler's internal representation to signify specific input/output operations, mapping to runtime library functions.
Filed Under: fortraniocompiler