https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115111
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 60780 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60780&action=edit Proposed fix for while end debugging info This patch corrects the END token location and fixes the debugging line numbers for the WHILE END loop. The fix passes a relative token number down to M2Quads.mod and is added to GetTokenNo (which is always one beyond the current token processed). This implementation should be extended to other loops and condition statements.