Landing: 1d76ad29a174

Project / Subsystem

gcc / cobol

Date

2026-06-09

Author

Robert Dubner

Commit

1d76ad29a174ea2b44608f2dad0954e995cca864

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
commit_hash
1d76ad29a174ea2b44608f2dad0954e995cca864
source_type
github
headline
COBOL COMP-3 moves now execute faster
tldr
GCC's COBOL frontend optimizes COMP-3 to COMP-3 moves by avoiding unnecessary binary conversions, directly manipulating packed-decimal bytes for improved perfo…
author
Robert Dubner
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • cobol
  • optimization
  • performance
discussion_id_link
bugzilla_pr
date
2026-06-09T00:00:00.000Z

The GCC COBOL compiler now performs COMP-3 to COMP-3 moves more efficiently by directly manipulating packed-decimal representations. Previously, these moves involved a slower intermediate conversion to binary and back. This change bypasses that overhead, either directly moving bytes or performing a half-byte shift when necessary, resulting in faster execution. The implementation involved refactoring move-related functionality into a new move.cc file.