public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Gaius Mulley <gaius@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/modula-2] Add missing procedure name to the range error message. Date: Mon, 5 Dec 2022 15:14:40 +0000 (GMT) [thread overview] Message-ID: <20221205151440.C3BE838AA260@sourceware.org> (raw) https://gcc.gnu.org/g:14e295ecf043c7bdf26cca3aa6af104382324aeb commit 14e295ecf043c7bdf26cca3aa6af104382324aeb Author: Gaius Mulley <gaiusmod2@gmail.com> Date: Mon Dec 5 14:18:19 2022 +0000 Add missing procedure name to the range error message. Bugfix. Runtime range errors generated via CodeErrorCheckLoc omit the procedure name. gcc/m2/ChangeLog: * gm2-compiler/M2Range.mod (CodeErrorCheckLoc): Concat function string to range error. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com> Diff: --- gcc/m2/gm2-compiler/M2Range.mod | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/m2/gm2-compiler/M2Range.mod b/gcc/m2/gm2-compiler/M2Range.mod index 255250c3128..fa84515a73e 100644 --- a/gcc/m2/gm2-compiler/M2Range.mod +++ b/gcc/m2/gm2-compiler/M2Range.mod @@ -2323,6 +2323,7 @@ BEGIN scope := GetAnnounceScope (filename, NIL) ELSE scope := quoteOpen (InitString ('')) ; + scope := ConCat (scope, Mark (InitStringCharStar (function))) ; scope := ConCat (InitString ("procedure "), quoteClose (scope)) END ; BuildStringParamLoc (location, scope) ;
reply other threads:[~2022-12-05 15:14 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221205151440.C3BE838AA260@sourceware.org \ --to=gaius@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).