]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Add special-case for 'Constrained on stand-alone objects in SPARK
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 15 Jul 2025 13:18:26 +0000 (15:18 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 29 Sep 2025 09:43:39 +0000 (11:43 +0200)
commitcc113fac909df3e68a4f445ba307d65c7ba39ea2
treedbe9cf41060e2991eb008b30efb731fa4e848767
parent84119759ec0f312fb4a022a718254fa311ebf474
ada: Add special-case for 'Constrained on stand-alone objects in SPARK

GNAT relies on standalone objects of indefinite, non-class-wide types getting a
constrained itypes; GNATprove relies on the same objects keeping their nominal,
unconstrained types. None of that can be simply changed, so instead we carry
this different handling to routine which provides the value of attribute
Constrained.

gcc/ada/ChangeLog:

* exp_util.adb (Attribute_Constrained_Static_Value): Special case
stand-alone objects for GNATprove.
gcc/ada/exp_util.adb