]> 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>
Tue, 29 Jul 2025 16:06:40 +0000 (12:06 -0400)
commit0879a2a840c9209b3bf54e2dc40355c263f28924
tree58fd304549a81a7bbaf205bf52e82b7ab166f09a
parent84296ba2a410193f795456392ca96718af7166b6
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.

(cherry picked from commit 3cc2116fe6694b0e52855427fc1fd1335c6d00b6)
gcc/cobol/genapi.cc