-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2006, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
with Sinput; use Sinput;
with Snames; use Snames;
with Targparm; use Targparm;
-with Table;
with Uintp; use Uintp;
package body Erroutc is
if Msglen > 0
and then Msg_Buffer (Msglen) /= ' '
and then Msg_Buffer (Msglen) /= '('
+ and then Msg_Buffer (Msglen) /= '-'
and then not Manual_Quote_Mode
then
Set_Msg_Char (' ');
-- The following assignments ensure that the second and third percent
-- insertion characters will correspond to the Error_Msg_Name_2 and
- -- Error_Msg_Name_3 as required.
+ -- Error_Msg_Name_3 as required. We suppress possible validity checks in
+ -- case operating in -gnatVa mode, and Error_Msg_Name_2/3 is not needed
+ -- and has not been set.
- Error_Msg_Name_1 := Error_Msg_Name_2;
- Error_Msg_Name_2 := Error_Msg_Name_3;
+ declare
+ pragma Suppress (Range_Check);
+ begin
+ Error_Msg_Name_1 := Error_Msg_Name_2;
+ Error_Msg_Name_2 := Error_Msg_Name_3;
+ end;
end Set_Msg_Insertion_File_Name;
-----------------------------------
-- The following assignments ensure that the second and third percent
-- insertion characters will correspond to the Error_Msg_Name_2 and
- -- Error_Msg_Name_3 as required.
+ -- Error_Msg_Name_3 as required. We suppress possible validity checks in
+ -- case operating in -gnatVa mode, and Error_Msg_Name_1/2 is not needed
+ -- and has not been set.
- Error_Msg_Name_1 := Error_Msg_Name_2;
- Error_Msg_Name_2 := Error_Msg_Name_3;
+ declare
+ pragma Suppress (Range_Check);
+ begin
+ Error_Msg_Name_1 := Error_Msg_Name_2;
+ Error_Msg_Name_2 := Error_Msg_Name_3;
+ end;
end Set_Msg_Insertion_Name;
-------------------------------------
end loop;
-- The following assignment ensures that a second carret insertion
- -- character will correspond to the Error_Msg_Uint_2 parameter.
+ -- character will correspond to the Error_Msg_Uint_2 parameter. We
+ -- suppress possible validity checks in case operating in -gnatVa mode,
+ -- and Error_Msg_Uint_2 is not needed and has not been set.
- Error_Msg_Uint_1 := Error_Msg_Uint_2;
+ declare
+ pragma Suppress (Range_Check);
+ begin
+ Error_Msg_Uint_1 := Error_Msg_Uint_2;
+ end;
end Set_Msg_Insertion_Uint;
-----------------