Landing: 32bbd8849a55

Project / Subsystem

gcc / openmp

Date

2026-03-04

Author

Sandra Loosemore

Commit

32bbd8849a550ad6f936636476c3ab9be8a58807

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
openmp
patch_id
commit_hash
32bbd8849a550ad6f936636476c3ab9be8a58807
source_type
github
headline
Remove warning about unused iterator variable in map clauses.
tldr
GCC no longer issues false positive warnings for unused iterator variables in OpenMP map clauses by removing the check from the gimplifier.
author
Sandra Loosemore
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • openmp
  • warning
  • gimplifier
discussion_id_link
bugzilla_pr
date
2026-03-04T00:00:00.000Z

This commit removes a warning in OpenMP about unused iterator variables within map clauses, which was previously implemented by a code walk in the gimplifier. This check was too late in the compilation process, leading to false positives when frontends optimized away explicit references or with implicit map clauses in Fortran. Removing the warning prevents confusing and incorrect diagnostic messages for developers.