]> git.ipfire.org Git - thirdparty/gcc.git/commit
cobol: Optimized alpha-to-alpha moves. [PR119455]
authorRobert Dubner <rdubner@symas.com>
Fri, 13 Feb 2026 18:26:47 +0000 (13:26 -0500)
committerRobert Dubner <rdubner@symas.com>
Fri, 13 Feb 2026 18:34:58 +0000 (13:34 -0500)
commit8a794643cc71301d96bb0e62c8d89494929fa0eb
tree5246a086309a104cd2f490e562fbec441cbb08b9
parentb960a57e1b00390c2ca9ff1406b72232d379a322
cobol: Optimized alpha-to-alpha moves. [PR119455]

Code for implementing many common scenarios of "MOVE <literal> TO
<alphanumeric>" and " MOVE <alphanumeric> to <alphanumeric> " is created
directly through GENERIC rather than by calling the general-purpose
libgcobol __gg__move routine.

gcc/cobol/ChangeLog:

PR cobol/119455
* genapi.cc (mh_source_is_group): Formatting.
(mh_source_is_literalA): Implement accelerated move.
(mh_alpha_to_alpha): New function; implements accelerated move.
(move_helper): Calls new mh_alpha_to_alpha.
gcc/cobol/genapi.cc