Some error messages contain the string "with'ed", but actually the apostrophe
has special meaning for Errout (it means escape the next character), so it
is not displayed. In order to minimize change in compiler output, this change
removes the unnecessary, and ineffective, apostrophes.
No visible behaviour change, no test.
Tested on x86_64-pc-linux-gnu, committed on trunk
2012-01-23 Thomas Quinot <[email protected]>
* sem_ch10.adb, sem_prag.adb: Remove redundant apostrophes in error
messages.
Index: sem_ch10.adb
===================================================================
--- sem_ch10.adb (revision 183406)
+++ sem_ch10.adb (working copy)
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2011, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2012, 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- --
@@ -3339,7 +3339,7 @@
procedure License_Error is
begin
Error_Msg_N
- ("?license of with'ed unit & may be inconsistent",
+ ("?license of withed unit & may be inconsistent",
Name (Item));
end License_Error;
Index: sem_prag.adb
===================================================================
--- sem_prag.adb (revision 183406)
+++ sem_prag.adb (working copy)
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2011, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2012, 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- --
@@ -8256,7 +8256,7 @@
if Citem = N then
Error_Pragma_Arg
- ("argument of pragma% is not with'ed unit", Arg);
+ ("argument of pragma% is not withed unit", Arg);
end if;
Next (Arg);
@@ -8334,7 +8334,7 @@
if Citem = N then
Set_Error_Posted (N);
Error_Pragma_Arg
- ("argument of pragma% is not with'ed unit", Arg);
+ ("argument of pragma% is not withed unit", Arg);
end if;
Next (Arg);
@@ -14203,7 +14203,7 @@
if Citem = N then
Error_Pragma_Arg
- ("argument of pragma% is not with'ed unit", Arg_Node);
+ ("argument of pragma% is not withed unit", Arg_Node);
end if;
Next (Arg_Node);