]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix classification of SPARK Boolean aspects
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 19 Feb 2024 08:46:04 +0000 (09:46 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 14 May 2024 08:20:00 +0000 (10:20 +0200)
commit8d15d848b90f502bdc3070f5b4e6213721eb2272
treecea13fed42c0e2dee3b85c75191ff05c5c2d31e3
parent4a45c99302b688cacf788946b9a88ea8593bb395
ada: Fix classification of SPARK Boolean aspects

The implementation of User_Aspect_Definition uses subtype
Boolean_Aspects to decide which existing aspects can be used to define
old aspects. This subtype didn't include many of the SPARK aspects,
notably the Always_Terminates.

gcc/ada/

* aspects.ads (Aspect_Id, Boolean_Aspect): Change categorization
of Boolean-valued SPARK aspects.
* sem_ch13.adb (Analyze_Aspect_Specification): Adapt CASE
statements to new classification of Boolean-valued SPARK
aspects.
gcc/ada/aspects.ads
gcc/ada/sem_ch13.adb