Remove some compile time warnings about duplicate definitions.
[official-gcc.git] / gcc / ada / exp_ch4.ads
blobc7e24180d87bcea24a0e16908aca5e1ec33b8edf
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- E X P _ C H 4 --
6 -- --
7 -- S p e c --
8 -- --
9 -- $Revision: 1.42 $
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 -- Expand routines for chapter 4 constructs
31 with Types; use Types;
33 package Exp_Ch4 is
35 procedure Expand_N_Allocator (N : Node_Id);
36 procedure Expand_N_And_Then (N : Node_Id);
37 procedure Expand_N_Conditional_Expression (N : Node_Id);
38 procedure Expand_N_In (N : Node_Id);
39 procedure Expand_N_Explicit_Dereference (N : Node_Id);
40 procedure Expand_N_Indexed_Component (N : Node_Id);
41 procedure Expand_N_Not_In (N : Node_Id);
42 procedure Expand_N_Null (N : Node_Id);
43 procedure Expand_N_Op_Abs (N : Node_Id);
44 procedure Expand_N_Op_Add (N : Node_Id);
45 procedure Expand_N_Op_And (N : Node_Id);
46 procedure Expand_N_Op_Concat (N : Node_Id);
47 procedure Expand_N_Op_Divide (N : Node_Id);
48 procedure Expand_N_Op_Expon (N : Node_Id);
49 procedure Expand_N_Op_Eq (N : Node_Id);
50 procedure Expand_N_Op_Ge (N : Node_Id);
51 procedure Expand_N_Op_Gt (N : Node_Id);
52 procedure Expand_N_Op_Le (N : Node_Id);
53 procedure Expand_N_Op_Lt (N : Node_Id);
54 procedure Expand_N_Op_Minus (N : Node_Id);
55 procedure Expand_N_Op_Mod (N : Node_Id);
56 procedure Expand_N_Op_Multiply (N : Node_Id);
57 procedure Expand_N_Op_Ne (N : Node_Id);
58 procedure Expand_N_Op_Not (N : Node_Id);
59 procedure Expand_N_Op_Or (N : Node_Id);
60 procedure Expand_N_Op_Plus (N : Node_Id);
61 procedure Expand_N_Op_Rem (N : Node_Id);
62 procedure Expand_N_Op_Rotate_Left (N : Node_Id);
63 procedure Expand_N_Op_Rotate_Right (N : Node_Id);
64 procedure Expand_N_Op_Shift_Left (N : Node_Id);
65 procedure Expand_N_Op_Shift_Right (N : Node_Id);
66 procedure Expand_N_Op_Shift_Right_Arithmetic (N : Node_Id);
67 procedure Expand_N_Op_Subtract (N : Node_Id);
68 procedure Expand_N_Op_Xor (N : Node_Id);
69 procedure Expand_N_Or_Else (N : Node_Id);
70 procedure Expand_N_Qualified_Expression (N : Node_Id);
71 procedure Expand_N_Selected_Component (N : Node_Id);
72 procedure Expand_N_Slice (N : Node_Id);
73 procedure Expand_N_Type_Conversion (N : Node_Id);
74 procedure Expand_N_Unchecked_Expression (N : Node_Id);
75 procedure Expand_N_Unchecked_Type_Conversion (N : Node_Id);
77 function Expand_Record_Equality
78 (Nod : Node_Id;
79 Typ : Entity_Id;
80 Lhs : Node_Id;
81 Rhs : Node_Id;
82 Bodies : List_Id)
83 return Node_Id;
84 -- Expand a record equality into an expression that compares the fields
85 -- individually to yield the required Boolean result. Loc is the
86 -- location for the generated nodes. Typ is the type of the record, and
87 -- Lhs, Rhs are the record expressions to be compared, these
88 -- expressions need not to be analyzed but have to be side-effect free.
89 -- Bodies is a list on which to attach bodies of local functions that
90 -- are created in the process. This is the responsability of the caller
91 -- to insert those bodies at the right place. Nod provdies the Sloc
92 -- value for generated code.
94 end Exp_Ch4;