]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Expose utility routine for processing of Depends contracts in SPARK
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 8 Mar 2024 16:02:16 +0000 (17:02 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 17 May 2024 08:21:03 +0000 (10:21 +0200)
commitd77c12eb33c7a0a461f6928a8fb303378aaf2e2f
tree20388ad02ad409002de1f0c179de382339476f35
parent485d595d22c7800eb214034c9b58211ab232dbbf
ada: Expose utility routine for processing of Depends contracts in SPARK

Routine Is_Unconstrained_Or_Tagged_Item is now used both in the GNAT
frontend (for checking legality of Depends clauses) and in the GNATprove
backend (for representing implicit inputs in flow graphs).

gcc/ada/

* sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): Move to
Sem_Util, so it can be used from GNATprove.
* sem_util.ads (Is_Unconstrained_Or_Tagged_Item): Move from
Sem_Prag; spec.
* sem_util.adb (Is_Unconstrained_Or_Tagged_Item): Move from
Sem_Prag; body.
gcc/ada/sem_prag.adb
gcc/ada/sem_util.adb
gcc/ada/sem_util.ads