Landing: feb4dcd40582

Project / Subsystem

gcc / cobol

Date

2026-06-14

Author

Robert Dubner

Commit

feb4dcd40582aeb331cd20b51951c6848023664e

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
commit_hash
feb4dcd40582aeb331cd20b51951c6848023664e
source_type
github
headline
GCOBOL improves MOVE routines and fixes negative zero handling
tldr
GCOBOL now correctly implements `MOVE COMP-3 to NumericDisplay` and resolves "negative zero" bugs resulting from truncated moves, enhancing data integrity.
author
Robert Dubner
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • cobol
  • bugfix
  • data_conversion
  • numeric_operations
discussion_id_link
bugzilla_pr
date
2026-06-14T00:00:00.000Z

This commit significantly improves GCOBOL’s MOVE routines, specifically addressing the implementation of MOVE COMP-3 to NumericDisplay. It also corrects long-standing errors where truncated moves to numeric-display and packed-decimal formats could create an erroneous “negative zero” value. The fixes involve new routines like clear_negative_zero and expanded test coverage to ensure correct behavior and data integrity.