Mark ChangeLog
[official-gcc.git] / gcc / ada / stand.adb
blob7b477f1268a698d874b6be4415915a588110f6f8
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S T A N D --
6 -- --
7 -- B o d y --
8 -- --
9 -- Copyright (C) 1992,1993,1994,1995 Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 2, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
20 -- MA 02111-1307, USA. --
21 -- --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
28 -- --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
31 -- --
32 ------------------------------------------------------------------------------
34 with System; use System;
35 with Tree_IO; use Tree_IO;
37 package body Stand is
39 ---------------
40 -- Tree_Read --
41 ---------------
43 procedure Tree_Read is
44 begin
45 Tree_Read_Data (Standard_Entity'Address,
46 Standard_Entity_Array_Type'Size / Storage_Unit);
48 Tree_Read_Int (Int (Standard_Package_Node));
49 Tree_Read_Int (Int (Last_Standard_Node_Id));
50 Tree_Read_Int (Int (Last_Standard_List_Id));
51 Tree_Read_Int (Int (Standard_Void_Type));
52 Tree_Read_Int (Int (Standard_Exception_Type));
53 Tree_Read_Int (Int (Standard_A_String));
54 Tree_Read_Int (Int (Any_Id));
55 Tree_Read_Int (Int (Any_Type));
56 Tree_Read_Int (Int (Any_Access));
57 Tree_Read_Int (Int (Any_Array));
58 Tree_Read_Int (Int (Any_Boolean));
59 Tree_Read_Int (Int (Any_Character));
60 Tree_Read_Int (Int (Any_Composite));
61 Tree_Read_Int (Int (Any_Discrete));
62 Tree_Read_Int (Int (Any_Fixed));
63 Tree_Read_Int (Int (Any_Integer));
64 Tree_Read_Int (Int (Any_Numeric));
65 Tree_Read_Int (Int (Any_Real));
66 Tree_Read_Int (Int (Any_Scalar));
67 Tree_Read_Int (Int (Any_String));
68 Tree_Read_Int (Int (Universal_Integer));
69 Tree_Read_Int (Int (Universal_Real));
70 Tree_Read_Int (Int (Universal_Fixed));
71 Tree_Read_Int (Int (Standard_Integer_8));
72 Tree_Read_Int (Int (Standard_Integer_16));
73 Tree_Read_Int (Int (Standard_Integer_32));
74 Tree_Read_Int (Int (Standard_Integer_64));
75 Tree_Read_Int (Int (Abort_Signal));
76 Tree_Read_Int (Int (Standard_Op_Rotate_Left));
77 Tree_Read_Int (Int (Standard_Op_Rotate_Right));
78 Tree_Read_Int (Int (Standard_Op_Shift_Left));
79 Tree_Read_Int (Int (Standard_Op_Shift_Right));
80 Tree_Read_Int (Int (Standard_Op_Shift_Right_Arithmetic));
82 end Tree_Read;
84 ----------------
85 -- Tree_Write --
86 ----------------
88 procedure Tree_Write is
89 begin
90 Tree_Write_Data (Standard_Entity'Address,
91 Standard_Entity_Array_Type'Size / Storage_Unit);
93 Tree_Write_Int (Int (Standard_Package_Node));
94 Tree_Write_Int (Int (Last_Standard_Node_Id));
95 Tree_Write_Int (Int (Last_Standard_List_Id));
96 Tree_Write_Int (Int (Standard_Void_Type));
97 Tree_Write_Int (Int (Standard_Exception_Type));
98 Tree_Write_Int (Int (Standard_A_String));
99 Tree_Write_Int (Int (Any_Id));
100 Tree_Write_Int (Int (Any_Type));
101 Tree_Write_Int (Int (Any_Access));
102 Tree_Write_Int (Int (Any_Array));
103 Tree_Write_Int (Int (Any_Boolean));
104 Tree_Write_Int (Int (Any_Character));
105 Tree_Write_Int (Int (Any_Composite));
106 Tree_Write_Int (Int (Any_Discrete));
107 Tree_Write_Int (Int (Any_Fixed));
108 Tree_Write_Int (Int (Any_Integer));
109 Tree_Write_Int (Int (Any_Numeric));
110 Tree_Write_Int (Int (Any_Real));
111 Tree_Write_Int (Int (Any_Scalar));
112 Tree_Write_Int (Int (Any_String));
113 Tree_Write_Int (Int (Universal_Integer));
114 Tree_Write_Int (Int (Universal_Real));
115 Tree_Write_Int (Int (Universal_Fixed));
116 Tree_Write_Int (Int (Standard_Integer_8));
117 Tree_Write_Int (Int (Standard_Integer_16));
118 Tree_Write_Int (Int (Standard_Integer_32));
119 Tree_Write_Int (Int (Standard_Integer_64));
120 Tree_Write_Int (Int (Abort_Signal));
121 Tree_Write_Int (Int (Standard_Op_Rotate_Left));
122 Tree_Write_Int (Int (Standard_Op_Rotate_Right));
123 Tree_Write_Int (Int (Standard_Op_Shift_Left));
124 Tree_Write_Int (Int (Standard_Op_Shift_Right));
125 Tree_Write_Int (Int (Standard_Op_Shift_Right_Arithmetic));
127 end Tree_Write;
129 end Stand;