* gcc.c-torture/execute/20020307-1.c: New test.
[official-gcc.git] / gcc / ada / stand.adb
blobb0001b178640d18a61a9e89dada5544bab374a4e
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S T A N D --
6 -- --
7 -- B o d y --
8 -- --
9 -- $Revision: 1.6 $ --
10 -- --
11 -- Copyright (C) 1992,1993,1994,1995 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 -- As a special exception, if other files instantiate generics from this --
25 -- unit, or you link this unit with other files to produce an executable, --
26 -- this unit does not by itself cause the resulting executable to be --
27 -- covered by the GNU General Public License. This exception does not --
28 -- however invalidate any other reasons why the executable file might be --
29 -- covered by the GNU Public License. --
30 -- --
31 -- GNAT was originally developed by the GNAT team at New York University. --
32 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
33 -- --
34 ------------------------------------------------------------------------------
36 with System; use System;
37 with Tree_IO; use Tree_IO;
39 package body Stand is
41 ---------------
42 -- Tree_Read --
43 ---------------
45 procedure Tree_Read is
46 begin
47 Tree_Read_Data (Standard_Entity'Address,
48 Standard_Entity_Array_Type'Size / Storage_Unit);
50 Tree_Read_Int (Int (Standard_Package_Node));
51 Tree_Read_Int (Int (Last_Standard_Node_Id));
52 Tree_Read_Int (Int (Last_Standard_List_Id));
53 Tree_Read_Int (Int (Standard_Void_Type));
54 Tree_Read_Int (Int (Standard_Exception_Type));
55 Tree_Read_Int (Int (Standard_A_String));
56 Tree_Read_Int (Int (Any_Id));
57 Tree_Read_Int (Int (Any_Type));
58 Tree_Read_Int (Int (Any_Access));
59 Tree_Read_Int (Int (Any_Array));
60 Tree_Read_Int (Int (Any_Boolean));
61 Tree_Read_Int (Int (Any_Character));
62 Tree_Read_Int (Int (Any_Composite));
63 Tree_Read_Int (Int (Any_Discrete));
64 Tree_Read_Int (Int (Any_Fixed));
65 Tree_Read_Int (Int (Any_Integer));
66 Tree_Read_Int (Int (Any_Numeric));
67 Tree_Read_Int (Int (Any_Real));
68 Tree_Read_Int (Int (Any_Scalar));
69 Tree_Read_Int (Int (Any_String));
70 Tree_Read_Int (Int (Universal_Integer));
71 Tree_Read_Int (Int (Universal_Real));
72 Tree_Read_Int (Int (Universal_Fixed));
73 Tree_Read_Int (Int (Standard_Integer_8));
74 Tree_Read_Int (Int (Standard_Integer_16));
75 Tree_Read_Int (Int (Standard_Integer_32));
76 Tree_Read_Int (Int (Standard_Integer_64));
77 Tree_Read_Int (Int (Abort_Signal));
78 Tree_Read_Int (Int (Standard_Op_Rotate_Left));
79 Tree_Read_Int (Int (Standard_Op_Rotate_Right));
80 Tree_Read_Int (Int (Standard_Op_Shift_Left));
81 Tree_Read_Int (Int (Standard_Op_Shift_Right));
82 Tree_Read_Int (Int (Standard_Op_Shift_Right_Arithmetic));
84 end Tree_Read;
86 ----------------
87 -- Tree_Write --
88 ----------------
90 procedure Tree_Write is
91 begin
92 Tree_Write_Data (Standard_Entity'Address,
93 Standard_Entity_Array_Type'Size / Storage_Unit);
95 Tree_Write_Int (Int (Standard_Package_Node));
96 Tree_Write_Int (Int (Last_Standard_Node_Id));
97 Tree_Write_Int (Int (Last_Standard_List_Id));
98 Tree_Write_Int (Int (Standard_Void_Type));
99 Tree_Write_Int (Int (Standard_Exception_Type));
100 Tree_Write_Int (Int (Standard_A_String));
101 Tree_Write_Int (Int (Any_Id));
102 Tree_Write_Int (Int (Any_Type));
103 Tree_Write_Int (Int (Any_Access));
104 Tree_Write_Int (Int (Any_Array));
105 Tree_Write_Int (Int (Any_Boolean));
106 Tree_Write_Int (Int (Any_Character));
107 Tree_Write_Int (Int (Any_Composite));
108 Tree_Write_Int (Int (Any_Discrete));
109 Tree_Write_Int (Int (Any_Fixed));
110 Tree_Write_Int (Int (Any_Integer));
111 Tree_Write_Int (Int (Any_Numeric));
112 Tree_Write_Int (Int (Any_Real));
113 Tree_Write_Int (Int (Any_Scalar));
114 Tree_Write_Int (Int (Any_String));
115 Tree_Write_Int (Int (Universal_Integer));
116 Tree_Write_Int (Int (Universal_Real));
117 Tree_Write_Int (Int (Universal_Fixed));
118 Tree_Write_Int (Int (Standard_Integer_8));
119 Tree_Write_Int (Int (Standard_Integer_16));
120 Tree_Write_Int (Int (Standard_Integer_32));
121 Tree_Write_Int (Int (Standard_Integer_64));
122 Tree_Write_Int (Int (Abort_Signal));
123 Tree_Write_Int (Int (Standard_Op_Rotate_Left));
124 Tree_Write_Int (Int (Standard_Op_Rotate_Right));
125 Tree_Write_Int (Int (Standard_Op_Shift_Left));
126 Tree_Write_Int (Int (Standard_Op_Shift_Right));
127 Tree_Write_Int (Int (Standard_Op_Shift_Right_Arithmetic));
129 end Tree_Write;
131 end Stand;