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

OpenMP/Fortran: Support underscore variants of directive names

Fortran now supports multi-word OpenMP directive names with underscores.

Fortran support for OpenMP has been extended to recognize multi-word directive names that use underscores, aligning with the OpenMP specification. This includes directives such as declare_mapper, target_data, and cancellation_point. The changes involve updates to the Fortran parser and libgomp documentation, with new test cases added to verify the functionality.

In Details

The Fortran parser in gcc/fortran/parse.cc has been updated to decode underscore variants of multi-word OpenMP directive names. This complements existing support for space-separated variants. The changes ensure compliance with newer OpenMP standards that introduced these alternative spellings for directives like declare_mapper, declare_reduction, target_data, etc. Libgomp's implementation status documentation is also updated.

For Context
OpenMP
A standard API for supporting shared-memory parallel programming on architectures like multicore processors and GPUs.
Fortran
A high-level programming language commonly used for scientific and numerical computation.
directive
A special command or instruction in OpenMP that controls the behavior of parallel execution, such as creating threads or distributing work.
libgomp
The GNU implementation of OpenMP, providing runtime support for parallel programming constructs.
Filed Under: fortranOpenMPdirectivesparser