1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- $Revision: 1.18 $ --
11 -- Copyright (C) 1992-1998 Free Software Foundation, Inc. --
13 -- GNAT is free software; you can redistribute it and/or modify it under --
14 -- terms of the GNU General Public License as published by the Free Soft- --
15 -- ware Foundation; either version 2, or (at your option) any later ver- --
16 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
17 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
18 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
19 -- for more details. You should have received a copy of the GNU General --
20 -- Public License distributed with GNAT; see file COPYING. If not, write --
21 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
22 -- MA 02111-1307, USA. --
24 -- GNAT was originally developed by the GNAT team at New York University. --
25 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
27 ------------------------------------------------------------------------------
29 -- This package contains utility routines used for the generation of the
30 -- stubs relevant to the distribution annex.
32 with Types; use Types;
36 procedure Add_RAST_Features (Vis_Decl : in Node_Id);
37 -- Build and add bodies for dereference and 'Access subprograms for a
38 -- remote access to subprogram type. Vis_Decl is the declaration node for
41 procedure Add_RACW_Features (RACW_Type : in Entity_Id);
42 -- Add RACW features. If the RACW and the designated type are not in the
43 -- same scope, then Add_RACW_Primitive_Declarations_And_Bodies is called
44 -- automatically since we do know the primitive list already.
46 procedure Add_RACW_Primitive_Declarations_And_Bodies
47 (Designated_Type : in Entity_Id;
48 Insertion_Node : in Node_Id;
50 -- Add primitive for the stub type, and the RPC receiver. The declarations
51 -- are inserted after insertion_Node, while the bodies are appened at the
54 procedure Remote_Types_Tagged_Full_View_Encountered
55 (Full_View : in Entity_Id);
56 -- When a full view with a private view is encountered in a Remote_Types
57 -- package and corresponds to a tagged type, then this procedure is called
58 -- to generate the needed RACW features if it is needed.
60 procedure RACW_Type_Is_Asynchronous (RACW_Type : in Entity_Id);
61 -- This subprogram must be called when it is detected that the RACW type
64 procedure Expand_Calling_Stubs_Bodies (Unit_Node : in Node_Id);
65 -- Call the expansion phase for the calling stubs. The code will be added
66 -- at the end of the compilation unit, which is a package spec.
68 procedure Expand_Receiving_Stubs_Bodies (Unit_Node : in Node_Id);
69 -- Call the expansion phase for the calling stubs. The code will be added
70 -- at the end of the compilation unit, which may be either a package spec
73 procedure Expand_All_Calls_Remote_Subprogram_Call (N : in Node_Id);
74 -- Rewrite a call to a subprogram located in a Remote_Call_Interface
75 -- package on which the pragma All_Calls_Remote applies so that it
76 -- goes through the PCS. N is either an N_Procedure_Call_Statement
77 -- or an N_Function_Call node.
79 procedure Build_Passive_Partition_Stub (U : Node_Id);
80 -- Build stub for a shared passive package. U is the analyzed
81 -- compilation unit for a package declaration.