* c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
[official-gcc.git] / gcc / ada / sem_ch10.ads
blob4ea1acca4cc4ed381f961859b82f70cc7bf0a7ff
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S E M _ C H 1 0 --
6 -- --
7 -- S p e c --
8 -- --
9 -- $Revision: 1.7 $ --
10 -- --
11 -- Copyright (C) 1992-2001 Free Software Foundation, Inc. --
12 -- --
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. --
23 -- --
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). --
26 -- --
27 ------------------------------------------------------------------------------
29 with Types; use Types;
30 package Sem_Ch10 is
31 procedure Analyze_Compilation_Unit (N : Node_Id);
32 procedure Analyze_With_Clause (N : Node_Id);
33 procedure Analyze_With_Type_Clause (N : Node_Id);
34 procedure Analyze_Subprogram_Body_Stub (N : Node_Id);
35 procedure Analyze_Package_Body_Stub (N : Node_Id);
36 procedure Analyze_Task_Body_Stub (N : Node_Id);
37 procedure Analyze_Protected_Body_Stub (N : Node_Id);
38 procedure Analyze_Subunit (N : Node_Id);
40 procedure Install_Context (N : Node_Id);
41 -- Installs the entities from the context clause of the given compilation
42 -- unit into the visibility chains. This is done before analyzing a unit.
43 -- For a child unit, install context of parents as well.
45 procedure Remove_Context (N : Node_Id);
46 -- Removes the entities from the context clause of the given compilation
47 -- unit from the visibility chains. This is done on exit from a unit as
48 -- part of cleaning up the visibility chains for the caller. A special
49 -- case is that the call from the Main_Unit can be ignored, since at the
50 -- end of the main unit the visibility table won't be needed in any case.
51 -- For a child unit, remove parents and their context as well.
53 procedure Load_Needed_Body (N : Node_Id; OK : out Boolean);
54 -- Load and analyze the body of a context unit that is generic, or
55 -- that contains generic units or inlined units. The body becomes
56 -- part of the semantic dependency set of the unit that needs it.
57 -- The returned result in OK is True if the load is successful,
58 -- and False if the requested file cannot be found.
60 end Sem_Ch10;