Landing: 1be9a0f45e0b

Project / Subsystem

gcc / cobol

Date

2026-07-15

Author

James K. Lowden

Commit

1be9a0f45e0ba43c44d80a60ea770e4eb330917f

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
commit_hash
1be9a0f45e0ba43c44d80a60ea770e4eb330917f
source_type
github
headline
COBOL: Correct tests for uninitialized access and RETURN-CODE
tldr
Fixes COBOL tests to properly handle uninitialized variables and RETURN-CODE initialization.
author
James K. Lowden
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • cobol
  • compiler
  • testing
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-07-15T00:00:00.000Z

Several test cases for the GCC COBOL compiler have been corrected to improve their accuracy and robustness. These fixes include ensuring that input parameters are not written to in a way that would corrupt data (e.g., by NUL-terminating filenames) and guaranteeing that the RETURN-CODE is explicitly set to zero before returning from a program. Additionally, COBOL tests are now also run using the gcobc script to verify compatibility.