]> git.ipfire.org Git - people/ms/gcc.git/commitdiff
[Ada] Add insertion character to Ineffective_Inline_Warnings messages
authorGhjuvan Lacambre <lacambre@adacore.com>
Tue, 26 Apr 2022 07:55:04 +0000 (09:55 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 30 May 2022 08:29:04 +0000 (08:29 +0000)
This enables tools that ingest GNAT's output to properly classify these
messages.

gcc/ada/

* inline.adb (Check_Package_Body_For_Inlining): Add insertion
character.

gcc/ada/inline.adb

index cc10c2933e4dec98af4f402d632a38a206ffdada..00c1e033030b1738f4967e51c77a102f9052155d 100644 (file)
@@ -2804,8 +2804,8 @@ package body Inline is
                   elsif Ineffective_Inline_Warnings then
                      Error_Msg_Unit_1 := Bname;
                      Error_Msg_N
-                       ("unable to inline subprograms defined in $??", P);
-                     Error_Msg_N ("\body not found??", P);
+                       ("unable to inline subprograms defined in $?p?", P);
+                     Error_Msg_N ("\body not found?p?", P);
                      return;
                   end if;
                end if;