Landing: 3f89b2e4ff62

Project / Subsystem

gcc / cobol

Date

2026-10-01

Author

Robert Dubner

Commit

3f89b2e4ff624f987dccb1263e4d00a86708f67b

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
3f89b2e4ff624f987dccb1263e4d00a86708f67b
source_type
github
headline
cobol: Provide support for filenames with dollar sign prefix.
tldr
GCC COBOL now supports filenames prefixed with a dollar sign, mimicking behavior of other COBOL compilers for environment variable lookups.
author
Robert Dubner
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • cobol
  • • runtime
  • • compatibility
discussion_id_link
—
bugzilla_pr
—
date
2026-10-01T00:00:00.000Z

GCC’s COBOL runtime now supports filenames that begin with a dollar sign ($). This behavior mimics other COBOL compilers, where such a prefix causes the runtime to look for the actual filename in an environment variable. The change involves copying relevant subroutines from GnuCOBOL and includes necessary adaptations for GCC’s internal file handling. Some compiler warnings and unused variables are also addressed.