]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix list of attributes defined by Ada 2022
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 1 Feb 2024 12:15:27 +0000 (13:15 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 20 Jun 2024 08:50:48 +0000 (10:50 +0200)
commit21b54dad4789396f6877e08024c3d40eec2861d6
tree3d23b4d3a4db8b2d22605d322ffef5fc203fdbe9
parent4867cc815531ede8bc356a2507f1c35ee6e6399c
ada: Fix list of attributes defined by Ada 2022

Recognize references to attributes Put_Image and Object_Size as
language-defined in Ada 2022 and implementation-defined in earlier
versions of Ada. Other attributes listed in Ada 2022 RM, K.2 and
currently implemented in GNAT are correctly categorized.

This change only affects code with restriction
No_Implementation_Attributes.

gcc/ada/

* sem_attr.adb (Attribute_22): Add Put_Image and Object_Size.
* sem_attr.ads (Attribute_Impl_Def): Remove Object_Size.
gcc/ada/sem_attr.adb
gcc/ada/sem_attr.ads