Landing: bd2a164d7fdf

Project / Subsystem

gcc / libgfortran

Date

2026-09-19

Author

Jerry DeLisle

Commit

bd2a164d7fdf1f109a8019aa2d32a2a2ad4893c4

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libgfortran
patch_id
—
commit_hash
bd2a164d7fdf1f109a8019aa2d32a2a2ad4893c4
source_type
github
headline
libgfortran: Fix coarray team size calculation
tldr
libgfortran's coarray implementation now correctly determines team sizes using the image map, resolving issues with image termination and status reporting.
author
Jerry DeLisle
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • coarray
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-09-19T00:00:00.000Z

This commit addresses a bug in libgfortran’s coarray implementation where team sizes were incorrectly derived from barriers. When images terminated, the barrier size decreased, leading to incorrect NUM_IMAGES counts and faulty team formation and collective operations. The fix ensures team sizes are consistently determined from the team’s image map, which remains static.