Landing: d6cb9da6cb3d

Project / Subsystem

gcc / cobol

Date

2026-08-29

Author

Robert Dubner

Commit

d6cb9da6cb3d1b6b89d0e471d9c14d44a7093ef9

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
d6cb9da6cb3d1b6b89d0e471d9c14d44a7093ef9
source_type
github
headline
Cobol: Reduce VAR_DECL count and improve GENERIC representation
tldr
Cobol front-end reduces generated VAR_DECLs by over half, speeding up compilation and lowering memory usage.
author
Robert Dubner
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • cobol
  • • optimization
  • • compiler internals
  • • memory usage
discussion_id_link
—
bugzilla_pr
—
date
2026-08-29T00:00:00.000Z

The COBOL front-end has been significantly refactored to reduce the number of VAR_DECL nodes generated, particularly for large programs. This optimization stems from a better understanding of when variables need to be materialized versus when they can remain as temporary expression tree nodes. The changes also improve the consistency of GENERIC representation with other front-ends and fix several type-related bugs.