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