aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_util.ads
diff options
context:
space:
mode:
authorMarc Poulhiès <poulhies@adacore.com>2022-07-28 15:57:46 +0200
committerMarc Poulhiès <poulhies@adacore.com>2022-10-06 11:22:48 +0200
commitc3d6d603956ecd20567924888bae55af4cf99c6a (patch)
treee4e0f654eebcd32258f816b35817a0a1f95af401 /gcc/ada/sem_util.ads
parentb1006d33b330c11952156dd41dae3a3bb2076a76 (diff)
downloadgcc-c3d6d603956ecd20567924888bae55af4cf99c6a.zip
gcc-c3d6d603956ecd20567924888bae55af4cf99c6a.tar.gz
gcc-c3d6d603956ecd20567924888bae55af4cf99c6a.tar.bz2
ada: Add C declarations for Storage Model support
Add needed C declarations for Storage Model support in gigi. gcc/ada/ * fe.h (Has_Storage_Model_Type_Aspect) (Has_Designated_Storage_Model_Aspect, Storage_Model_Object) (Storage_Model_Copy_From, Storage_Model_Copy_To): Add declarations. * sem_util.ads: Add WARNING markers for functions for which a new C declaration has been added in fe.h
Diffstat (limited to 'gcc/ada/sem_util.ads')
-rw-r--r--gcc/ada/sem_util.ads10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ada/sem_util.ads b/gcc/ada/sem_util.ads
index 132c2b8..c23d358 100644
--- a/gcc/ada/sem_util.ads
+++ b/gcc/ada/sem_util.ads
@@ -3655,10 +3655,14 @@ package Sem_Util is
function Has_Storage_Model_Type_Aspect (Typ : Entity_Id) return Boolean;
-- Returns True iff Typ specifies aspect Storage_Model_Type
+ -- WARNING: There is a matching C declaration of this subprogram in fe.h
+
function Has_Designated_Storage_Model_Aspect
(Typ : Entity_Id) return Boolean;
-- Returns True iff Typ specifies aspect Designated_Storage_Model
+ -- WARNING: There is a matching C declaration of this subprogram in fe.h
+
function Storage_Model_Object (Typ : Entity_Id) return Entity_Id;
-- Given an access type Typ with aspect Designated_Storage_Model,
-- returns the storage-model object associated with that type.
@@ -3666,6 +3670,8 @@ package Sem_Util is
-- other functions declared in this interface to retrieve operations
-- associated with Storage_Model_Type aspect of the object's type.
+ -- WARNING: There is a matching C declaration of this subprogram in fe.h
+
function Storage_Model_Type (Obj : Entity_Id) return Entity_Id;
-- Given an object Obj of a type specifying aspect Storage_Model_Type,
-- returns that type.
@@ -3715,12 +3721,16 @@ package Sem_Util is
-- type, returns the procedure specified for the Copy_From choice in
-- that aspect; returns Empty if the procedure isn't specified.
+ -- WARNING: There is a matching C declaration of this subprogram in fe.h
+
function Storage_Model_Copy_To
(SM_Obj_Or_Type : Entity_Id) return Entity_Id;
-- Given a type with aspect Storage_Model_Type or an object of such a
-- type, returns the procedure specified for the Copy_To choice in that
-- aspect; returns Empty if the procedure isn't specified.
+ -- WARNING: There is a matching C declaration of this subprogram in fe.h
+
function Storage_Model_Storage_Size
(SM_Obj_Or_Type : Entity_Id) return Entity_Id;
-- Given a type with aspect Storage_Model_Type or an object of such a