ada: Static intrinsic functions are a core language extension.
authorSteve Baird <baird@adacore.com>
Sat, 8 Oct 2022 00:20:31 +0000 (17:20 -0700)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 4 Nov 2022 13:47:30 +0000 (14:47 +0100)
commit7e1fe87899932e2c265fd0a13b2ac552b0865e0f
tree7b815b99c755d9f297217beaf5f84bfca1f6b92e
parent1207432c21a213cfac2b9499bd59367d410befe3
ada: Static intrinsic functions are a core language extension.

GNAT-defined Ada extensions are divided into two categories: those that are
enabled by either -gnatX or -gnatX0 and those which require -gnatX0.
Move static intrinsic functions from the second category into the first.

gcc/ada/

* doc/gnat_rm/implementation_defined_pragmas.rst: Add the standard
'... "On" enables this extension.' sentence to the description of
static intrinsic functions.
* sem_ch13.adb
(Analyze_Aspect_Spec): In the call to Error_Msg_GNAT_Extension for
a Static aspect specification for an intrinsic function, specify
Is_Core_Extension => True.
* sem_eval.adb
(Eval_Intrinsic_Call): Test Core_Extensions_Allowed instead of
testing All_Extensions_Allowed.
* gnat_rm.texi: Regenerate.
gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst
gcc/ada/gnat_rm.texi
gcc/ada/sem_ch13.adb
gcc/ada/sem_eval.adb