]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix Compile_Time_(Error|Warning) as non-configuration pragmas
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 3 Feb 2022 23:22:41 +0000 (00:22 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 11 May 2022 08:53:21 +0000 (08:53 +0000)
commit046c166f3c3351788fcf6e1a9b235f3c808b1289
treedddff7f18896577e3a9a82459bbe15350efce6fa
parentfe664d36500bae7cf4a28646e95c0838780bbd4a
[Ada] Fix Compile_Time_(Error|Warning) as non-configuration pragmas

Uses of Compile_Time_Error and Compile_Time_Warning as configuration
pragmas were detected with a custom check in semantic analysis. Now they
are detected with an existing general check in parser.

gcc/ada/

* sem_prag.adb (Analyze_Pragma): Remove custom check for
Compile_Time_Error and Compile_Time_Warning pragmas.
* snames.ads-tmpl (Compile_Time_Error, Compile_Time_Warning):
Move beyond Last_Configuration_Pragma_Name.
gcc/ada/sem_prag.adb
gcc/ada/snames.ads-tmpl