X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gcc%2Fada%2Fpar-ch13.adb;h=8bee84086bebebe91692c061ec6710d5d793619d;hb=7883a610443b1dbde92ad4dc4f6082a5c4b6c799;hp=95223a1a354d56515462a33491c20773d290ddb9;hpb=218079efc59095aa07da7f4f2a7a50b07f35f66e;p=gcc.git diff --git a/gcc/ada/par-ch13.adb b/gcc/ada/par-ch13.adb index 95223a1a354..8bee84086be 100644 --- a/gcc/ada/par-ch13.adb +++ b/gcc/ada/par-ch13.adb @@ -23,6 +23,8 @@ -- -- ------------------------------------------------------------------------------ +with Rident; use Rident; +with Restrict; use Restrict; pragma Style_Checks (All_Checks); -- Turn off subprogram body ordering check. Subprograms are in order -- by RM section rather than alphabetical @@ -264,20 +266,28 @@ package body Ch13 is -- The aspect mark is not recognized if A_Id = No_Aspect then - Error_Msg_Warn := not Debug_Flag_2; - Error_Msg_N ("<<& is not a valid aspect identifier", Token_Node); - OK := False; - - -- Check bad spelling - - for J in Aspect_Id_Exclude_No_Aspect loop - if Is_Bad_Spelling_Of (Token_Name, Aspect_Names (J)) then - Error_Msg_Name_1 := Aspect_Names (J); - Error_Msg_N -- CODEFIX - ("\<