aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_attr.adb
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2024-02-02 13:24:45 +0100
committerMarc Poulhiès <poulhies@adacore.com>2024-05-13 10:03:35 +0200
commita0041595dc66c739eb02ab426692500847788739 (patch)
tree0aebb9867e2bc9c8c4eedf4f0c6e3e1f596f422c /gcc/ada/sem_attr.adb
parent6d13384e64213e0c80bf0a768db061ef64cc9854 (diff)
downloadgcc-a0041595dc66c739eb02ab426692500847788739.zip
gcc-a0041595dc66c739eb02ab426692500847788739.tar.gz
gcc-a0041595dc66c739eb02ab426692500847788739.tar.bz2
ada: Revert recent change for Put_Image and Object_Size attributes
Recent change for attribute Object_Size caused spurious errors when restriction No_Implementation_Attributes is active and attribute Object_Size is introduced by expansion of dispatching operations. Temporarily revert that change for a further investigation. gcc/ada/ * sem_attr.adb (Attribute_22): Remove Put_Image and Object_Size. * sem_attr.ads (Attribute_Imp_Def): Restore Object_Size.
Diffstat (limited to 'gcc/ada/sem_attr.adb')
-rw-r--r--gcc/ada/sem_attr.adb4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb
index b979ffd..65442d4 100644
--- a/gcc/ada/sem_attr.adb
+++ b/gcc/ada/sem_attr.adb
@@ -181,9 +181,7 @@ package body Sem_Attr is
(Attribute_Enum_Rep |
Attribute_Enum_Val |
Attribute_Index |
- Attribute_Object_Size |
- Attribute_Preelaborable_Initialization |
- Attribute_Put_Image => True,
+ Attribute_Preelaborable_Initialization => True,
others => False);
-- The following array contains all attributes that imply a modification