This enables tools that ingest GNAT's output to properly classify these
messages.
gcc/ada/
* freeze.adb (Warn_Overlay): Add 'o' insertion character.
* sem_ch13.adb (Analyze_Attribute_Definition_Clause): Likewise.
* sem_util.adb (Note_Possible_Modifications): Likewise.
then
Error_Msg_Sloc := Sloc (Addr);
Error_Msg_NE
- ("??constant& may be modified via address clause#",
+ ("?o?constant& may be modified via address clause#",
Decl, O_Ent);
end if;
end;
if Present (Old) then
Error_Msg_Node_2 := Old;
Error_Msg_N
- ("default initialization of & may modify &??",
+ ("default initialization of & may modify &?o?",
Nam);
else
Error_Msg_N
- ("default initialization of & may modify overlaid storage??",
+ ("default initialization of & may modify overlaid storage?o?",
Nam);
end if;
and then not Overlays_Constant (U_Ent)
and then Address_Clause_Overlay_Warnings
then
- Error_Msg_N ("??constant overlays a variable", Expr);
+ Error_Msg_N ("?o?constant overlays a variable", Expr);
-- Imported variables can have an address clause, but then
-- the import is pretty meaningless except to suppress
Error_Msg_Sloc := Sloc (Addr);
Error_Msg_NE
- ("??constant& may be modified via address clause#",
+ ("?o?constant& may be modified via address clause#",
N, O_Ent);
end;
end if;