diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2024-02-01 13:15:27 +0100 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2024-05-13 10:03:34 +0200 |
commit | 7e348a40db285d451652ed8f7f022ca4c9022da7 (patch) | |
tree | 35431c74c45aa39aa485058ddefc50f73078764c /gcc/ada/sem_attr.adb | |
parent | c1ece0ca7d31f191c97ff0bdc72e0f0416e72774 (diff) | |
download | gcc-7e348a40db285d451652ed8f7f022ca4c9022da7.zip gcc-7e348a40db285d451652ed8f7f022ca4c9022da7.tar.gz gcc-7e348a40db285d451652ed8f7f022ca4c9022da7.tar.bz2 |
ada: Attributes Put_Image and Object_Size are 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_Imp_Def): Remove Object_Size.
Diffstat (limited to 'gcc/ada/sem_attr.adb')
-rw-r--r-- | gcc/ada/sem_attr.adb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb index 65442d4..b979ffd 100644 --- a/gcc/ada/sem_attr.adb +++ b/gcc/ada/sem_attr.adb @@ -181,7 +181,9 @@ package body Sem_Attr is (Attribute_Enum_Rep | Attribute_Enum_Val | Attribute_Index | - Attribute_Preelaborable_Initialization => True, + Attribute_Object_Size | + Attribute_Preelaborable_Initialization | + Attribute_Put_Image => True, others => False); -- The following array contains all attributes that imply a modification |