Landing: 2369b8b1eb8a

Project / Subsystem

gcc / cobol

Date

2026-07-29

Author

James K. Lowden

Commit

2369b8b1eb8a2950cc2ea11d79e1ee7abc905e15

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
2369b8b1eb8a2950cc2ea11d79e1ee7abc905e15
source_type
github
headline
Avoid %qs in xasprintf for cobol parsing messages.
tldr
Cobol parser changed message formatting to use %s instead of %qs to avoid issues with xasprintf.
author
James K. Lowden
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • cobol
  • • bugfix
  • • formatting
discussion_id_link
—
bugzilla_pr
—
date
2026-07-29T00:00:00.000Z

The COBOL parser in GCC has been updated to use ordinary string formatting (%s) instead of %qs within xasprintf for certain messages. This change prevents potential issues related to how xasprintf handles quoted strings, improving the robustness of message generation during parsing.