diff options
author | Ghjuvan Lacambre <lacambre@adacore.com> | 2022-04-26 09:21:01 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-30 08:29:03 +0000 |
commit | 8337af4f9db8bee0e83995f4280f4123f8af9767 (patch) | |
tree | 8c2a78c1f53fc6746453b4df5c504edba7ffa961 | |
parent | b341b8130f80c9acec384e7acc98283bccd349d2 (diff) |
[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.
-rw-r--r-- | gcc/ada/sem_elab.adb | 2 |
1 files changed, 1 insertions, 1 deletions
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); |