[Ada] Implement No_Unrecognized_{Aspects,Pragmas} restrictions
authorGhjuvan Lacambre <lacambre@adacore.com>
Wed, 30 Sep 2020 08:50:47 +0000 (10:50 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 24 Nov 2020 10:16:04 +0000 (05:16 -0500)
commit7883a610443b1dbde92ad4dc4f6082a5c4b6c799
treed6099f4f9cb8708f6eed847250b5668f186ce043
parent218079efc59095aa07da7f4f2a7a50b07f35f66e
[Ada] Implement No_Unrecognized_{Aspects,Pragmas} restrictions

gcc/ada/

* libgnat/s-rident.ads (System.Rident): Register new restriction
IDs.
* par-ch13.adb (Get_Aspect_Specifications): Add restriction check.
* par-prag.adb (Process_Restrictions_Or_Restriction_Warnings):
Register No_Unrecognized_Aspects restriction.
* sem_prag.adb (Analyze_Pragma): Add restriction check.
* snames.ads-tmpl: Create restriction names.
gcc/ada/libgnat/s-rident.ads
gcc/ada/par-ch13.adb
gcc/ada/par-prag.adb
gcc/ada/sem_prag.adb
gcc/ada/snames.ads-tmpl