diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2020-11-30 12:09:12 +0100 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2020-12-16 08:01:03 -0500 |
commit | 64f4351d83fedbfffc2a4ccdbd5e423ff7fa3958 (patch) | |
tree | 92a6fff51e01a2c1e7c001654b41fbffafdcf882 | |
parent | 027ed68ca0f3addbca0c5824381d81bd0a5095b1 (diff) | |
download | gcc-64f4351d83fedbfffc2a4ccdbd5e423ff7fa3958.zip gcc-64f4351d83fedbfffc2a4ccdbd5e423ff7fa3958.tar.gz gcc-64f4351d83fedbfffc2a4ccdbd5e423ff7fa3958.tar.bz2 |
[Ada] Remove inconsistent colons in messages for Ada 83 violations
gcc/ada/
* par-ch3.adb (P_Modular_Type_Definition): Remove colon from
error message.
* sem_ch11.adb (Check_Duplication): Likewise.
* sem_ch3.adb (Derived_Type_Declaration): Likewise.
-rw-r--r-- | gcc/ada/par-ch3.adb | 2 | ||||
-rw-r--r-- | gcc/ada/sem_ch11.adb | 2 | ||||
-rw-r--r-- | gcc/ada/sem_ch3.adb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/par-ch3.adb b/gcc/ada/par-ch3.adb index a2ff668..b746036 100644 --- a/gcc/ada/par-ch3.adb +++ b/gcc/ada/par-ch3.adb @@ -2430,7 +2430,7 @@ package body Ch3 is begin if Ada_Version = Ada_83 then - Error_Msg_SC ("(Ada 83): modular types not allowed"); + Error_Msg_SC ("(Ada 83) modular types not allowed"); end if; Typedef_Node := New_Node (N_Modular_Type_Definition, Token_Ptr); diff --git a/gcc/ada/sem_ch11.adb b/gcc/ada/sem_ch11.adb index 940c93b..48c9855 100644 --- a/gcc/ada/sem_ch11.adb +++ b/gcc/ada/sem_ch11.adb @@ -127,7 +127,7 @@ package body Sem_Ch11 is and then Comes_From_Source (Id) then Error_Msg_N - ("(Ada 83): duplicate exception choice&", Id); + ("(Ada 83) duplicate exception choice&", Id); end if; end if; end if; diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb index 00834ce..9b4d2cc 100644 --- a/gcc/ada/sem_ch3.adb +++ b/gcc/ada/sem_ch3.adb @@ -16943,7 +16943,7 @@ package body Sem_Ch3 is then if Ada_Version = Ada_83 and then Comes_From_Source (Indic) then Error_Msg_N - ("(Ada 83): premature use of type for derivation", Indic); + ("(Ada 83) premature use of type for derivation", Indic); end if; end if; |