]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Move checks for consequences of Exceptional_Cases to GNAT
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 16 Dec 2024 13:15:57 +0000 (14:15 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 7 Jan 2025 12:33:32 +0000 (13:33 +0100)
commit0307abc8626da292843a080c809d59be5bfb720b
tree56955118100287be17ca297a7a4d9e8fa73a219d
parentd734902a117855a3f98b067ff8ed90052569af80
ada: Move checks for consequences of Exceptional_Cases to GNAT

Previously checks for consequence expressions of Exceptional_Cases aspects were
done in GNATprove backend. However, we can do them in the frontend, where they
will apply to all subprograms, regardless of the SPARK_Mode aspect.

gcc/ada/ChangeLog:

* sem_prag.adb (Analyze_Exceptional_Cases_In_Decl_Part): Move check
from GNATprove backend to GNAT frontend.
gcc/ada/sem_prag.adb