]> git.ipfire.org Git - thirdparty/gcc.git/commit
cobol: Tweak adjustments to location_t of GENERIC nodes for PERFORM.
authorRobert Dubner <rdubner@symas.com>
Wed, 23 Jul 2025 12:44:54 +0000 (08:44 -0400)
committerRobert Dubner <rdubner@symas.com>
Wed, 23 Jul 2025 13:16:50 +0000 (09:16 -0400)
commit3cc2116fe6694b0e52855427fc1fd1335c6d00b6
tree1c3b5f57e8e09b6d0dc6e4a51b1e2c4445964b8e
parent7590c14b53a762ab30f5026148bd1cb9cf142264
cobol: Tweak adjustments to location_t of GENERIC nodes for PERFORM.

COBOL has a group of PERFORM statements that require careful adjustments to
the location_t elements of the GENERIC nodes so that the COBOL-aware version
of GDB behaves properly.  These changes are in service of that goal.

gcc/cobol/ChangeLog:

* genapi.cc (leave_procedure): Adjust location_t for PERFORM.
(parser_perform_times): Likewise.
(internal_perform_through_times): Likewise.
(perform_outofline_before_until): Likewise.
(perform_outofline_after_until): Likewise.
(perform_outofline_testafter_varying): Likewise.
(perform_outofline_before_varying): Likewise.
gcc/cobol/genapi.cc