public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-842] [Ada] Fix -gnatw.f warnings not having the right insertion characters Date: Mon, 30 May 2022 08:31:18 +0000 (GMT) [thread overview] Message-ID: <20220530083118.49FA73815FD9@sourceware.org> (raw) https://gcc.gnu.org/g:8337af4f9db8bee0e83995f4280f4123f8af9767 commit r13-842-g8337af4f9db8bee0e83995f4280f4123f8af9767 Author: Ghjuvan Lacambre <lacambre@adacore.com> Date: Tue Apr 26 09:21:01 2022 +0200 [Ada] Fix -gnatw.f warnings not having the right insertion characters This caused these warnings not to be tagged with the switch causing them, which is an issue for tools ingesting GNAT's output. gcc/ada/ * sem_elab.adb (Process_Conditional_ABE_Access_Taken): Add '.f' insertion characters. Diff: --- gcc/ada/sem_elab.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/sem_elab.adb b/gcc/ada/sem_elab.adb index 068402aec13..0d5befc5257 100644 --- a/gcc/ada/sem_elab.adb +++ b/gcc/ada/sem_elab.adb @@ -4958,7 +4958,7 @@ package body Sem_Elab is then Error_Msg_Name_1 := Attribute_Name (Attr); Error_Msg_NE - ("??% attribute of & before body seen", Attr, Subp_Id); + ("?.f?% attribute of & before body seen", Attr, Subp_Id); Error_Msg_N ("\possible Program_Error on later references", Attr); Output_Active_Scenarios (Attr, New_In_State);
reply other threads:[~2022-05-30 8:31 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=20220530083118.49FA73815FD9@sourceware.org \ --to=pmderodat@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).