summaryrefslogtreecommitdiff
path: root/gcc/ada/sem_ch5.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/sem_ch5.adb')
-rw-r--r--gcc/ada/sem_ch5.adb29
1 files changed, 16 insertions, 13 deletions
diff --git a/gcc/ada/sem_ch5.adb b/gcc/ada/sem_ch5.adb
index a16e01e2be8..04c07bec6d9 100644
--- a/gcc/ada/sem_ch5.adb
+++ b/gcc/ada/sem_ch5.adb
@@ -430,9 +430,9 @@ package body Sem_Ch5 is
if Locking_Policy /= 'C' then
Error_Msg_N ("assignment to the attribute PRIORITY has " &
- "no effect?", Lhs);
+ "no effect??", Lhs);
Error_Msg_N ("\since no Locking_Policy has been " &
- "specified", Lhs);
+ "specified??", Lhs);
end if;
return;
@@ -636,8 +636,9 @@ package body Sem_Ch5 is
if Known_Null (Rhs) then
Apply_Compile_Time_Constraint_Error
- (N => Rhs,
- Msg => "(Ada 2005) null not allowed in null-excluding objects?",
+ (N => Rhs,
+ Msg =>
+ "(Ada 2005) null not allowed in null-excluding objects??",
Reason => CE_Null_Not_Allowed);
-- We still mark this as a possible modification, that's necessary
@@ -717,10 +718,10 @@ package body Sem_Ch5 is
then
if Nkind (Lhs) in N_Has_Entity then
Error_Msg_NE -- CODEFIX
- ("?useless assignment of & to itself!", N, Entity (Lhs));
+ ("?r?useless assignment of & to itself!", N, Entity (Lhs));
else
Error_Msg_N -- CODEFIX
- ("?useless assignment of object to itself!", N);
+ ("?r?useless assignment of object to itself!", N);
end if;
end if;
@@ -2405,7 +2406,7 @@ package body Sem_Ch5 is
(L, H, Assume_Valid => False) = GT
then
Error_Msg_N
- ("?loop range is null, loop will not execute", DS);
+ ("??loop range is null, loop will not execute", DS);
-- Since we know the range of the loop is null, set the
-- appropriate flag to remove the loop entirely during
@@ -2420,9 +2421,11 @@ package body Sem_Ch5 is
else
Error_Msg_N
- ("?loop range may be null, loop may not execute", DS);
+ ("??loop range may be null, loop may not execute",
+ DS);
Error_Msg_N
- ("?can only execute if invalid values are present", DS);
+ ("??can only execute if invalid values are present",
+ DS);
end if;
end if;
@@ -2449,8 +2452,8 @@ package body Sem_Ch5 is
(Intval (Original_Node (H)) = Uint_0
or else Intval (Original_Node (H)) = Uint_1)
then
- Error_Msg_N ("?loop range may be null", DS);
- Error_Msg_N ("\?bounds may be wrong way round", DS);
+ Error_Msg_N ("??loop range may be null", DS);
+ Error_Msg_N ("\??bounds may be wrong way round", DS);
end if;
end;
end if;
@@ -2666,7 +2669,7 @@ package body Sem_Ch5 is
then
Error_Msg_Sloc := Sloc (ODSD);
Error_Msg_N
- ("inner range same as outer range#?", DSD);
+ ("inner range same as outer range#??", DSD);
end if;
end;
end if;
@@ -2918,7 +2921,7 @@ package body Sem_Ch5 is
Check_SPARK_Restriction
("unreachable code is not allowed", Error_Node);
else
- Error_Msg ("?unreachable code!", Sloc (Error_Node));
+ Error_Msg ("??unreachable code!", Sloc (Error_Node));
end if;
end if;