GCC Newspaper
OCTOBER 6, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
openmp

OpenMP Fortran: Fix test for spatial dimensions and message clause

Resolves test failures in OpenMP Fortran regarding spatial dimensions and message clauses.

This commit addresses an issue in the OpenMP test suite for Fortran, specifically concerning the ‘spatial dimensions’ and ‘message’ clauses. It updates the test case gfortran.dg/gomp/spatial-dimensions-5.f90 to correctly scan GIMPLE dumps, resolving ‘UNRESOLVEDs’. The fix ensures that the test accurately reflects the compiler’s handling of message lengths within its internal representation.

In Details

This is a fix-up for commit a0694cfb5b488dfeb65623444a14cab57e7df6bd, which updated OpenMP's handling of Fortran 'spatial dimensions' and 'message' clauses. The test case gfortran.dg/gomp/spatial-dimensions-5.f90 was failing due to incorrect GIMPLE dump scanning. This commit corrects the scan to properly account for the length of the 'message' string literal (e.g., 'message("fourth")' having a string length of 6), resolving the UNRESOLVEDs and ensuring test suite correctness.

For Context
OpenMP
An API that supports multi-platform shared-memory parallel programming in C, C++, and Fortran, consisting of a set of compiler directives, library routines, and environment variables.
GIMPLE
A three-address intermediate representation used by GCC. It's designed to simplify many optimizations compared to RTL (Register Transfer Language).
Clause
A directive-specific option that modifies the behavior of an OpenMP construct. 'spatial dimensions' and 'message' are examples of clauses.
Filed Under: openmpfortrantestsuite