annotate gcc/ada/alloc.ads @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ------------------------------------------------------------------------------
kono
parents:
diff changeset
2 -- --
kono
parents:
diff changeset
3 -- GNAT COMPILER COMPONENTS --
kono
parents:
diff changeset
4 -- --
kono
parents:
diff changeset
5 -- A L L O C --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- S p e c --
kono
parents:
diff changeset
8 -- --
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
9 -- Copyright (C) 1992-2018, Free Software Foundation, Inc. --
111
kono
parents:
diff changeset
10 -- --
kono
parents:
diff changeset
11 -- GNAT is free software; you can redistribute it and/or modify it under --
kono
parents:
diff changeset
12 -- terms of the GNU General Public License as published by the Free Soft- --
kono
parents:
diff changeset
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
kono
parents:
diff changeset
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
kono
parents:
diff changeset
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
kono
parents:
diff changeset
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
kono
parents:
diff changeset
17 -- --
kono
parents:
diff changeset
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
kono
parents:
diff changeset
19 -- additional permissions described in the GCC Runtime Library Exception, --
kono
parents:
diff changeset
20 -- version 3.1, as published by the Free Software Foundation. --
kono
parents:
diff changeset
21 -- --
kono
parents:
diff changeset
22 -- You should have received a copy of the GNU General Public License and --
kono
parents:
diff changeset
23 -- a copy of the GCC Runtime Library Exception along with this program; --
kono
parents:
diff changeset
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
kono
parents:
diff changeset
25 -- <http://www.gnu.org/licenses/>. --
kono
parents:
diff changeset
26 -- --
kono
parents:
diff changeset
27 -- GNAT was originally developed by the GNAT team at New York University. --
kono
parents:
diff changeset
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
kono
parents:
diff changeset
29 -- --
kono
parents:
diff changeset
30 ------------------------------------------------------------------------------
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 -- This package contains definitions for initial sizes and growth increments
kono
parents:
diff changeset
33 -- for the various dynamic arrays used for the main compiler data structures.
kono
parents:
diff changeset
34 -- The indicated initial size is allocated for the start of each file, and
kono
parents:
diff changeset
35 -- the increment factor is a percentage used to increase the table size when
kono
parents:
diff changeset
36 -- it needs expanding (e.g. a value of 100 = 100% increase = double)
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 -- Note: the initial values here are multiplied by Table_Factor as set by the
kono
parents:
diff changeset
39 -- -gnatTnn switch. This variable is defined in Opt, as is the default value
kono
parents:
diff changeset
40 -- for the table factor.
kono
parents:
diff changeset
41
kono
parents:
diff changeset
42 package Alloc is
kono
parents:
diff changeset
43
kono
parents:
diff changeset
44 -- The comment shows the unit in which the table is defined
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 All_Interp_Initial : constant := 1_000; -- Sem_Type
kono
parents:
diff changeset
47 All_Interp_Increment : constant := 100;
kono
parents:
diff changeset
48
kono
parents:
diff changeset
49 Branches_Initial : constant := 1_000; -- Sem_Warn
kono
parents:
diff changeset
50 Branches_Increment : constant := 100;
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 Conditionals_Initial : constant := 1_000; -- Sem_Warn
kono
parents:
diff changeset
53 Conditionals_Increment : constant := 100;
kono
parents:
diff changeset
54
kono
parents:
diff changeset
55 Conditional_Stack_Initial : constant := 50; -- Sem_Warn
kono
parents:
diff changeset
56 Conditional_Stack_Increment : constant := 100;
kono
parents:
diff changeset
57
kono
parents:
diff changeset
58 Elists_Initial : constant := 200; -- Elists
kono
parents:
diff changeset
59 Elists_Increment : constant := 100;
kono
parents:
diff changeset
60
kono
parents:
diff changeset
61 Elmts_Initial : constant := 1_200; -- Elists
kono
parents:
diff changeset
62 Elmts_Increment : constant := 100;
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 File_Name_Chars_Initial : constant := 10_000; -- Osint
kono
parents:
diff changeset
65 File_Name_Chars_Increment : constant := 100;
kono
parents:
diff changeset
66
kono
parents:
diff changeset
67 In_Out_Warnings_Initial : constant := 100; -- Sem_Warn
kono
parents:
diff changeset
68 In_Out_Warnings_Increment : constant := 100;
kono
parents:
diff changeset
69
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
70 Ignored_Ghost_Nodes_Initial : constant := 100; -- Ghost
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
71 Ignored_Ghost_Nodes_Increment : constant := 100;
111
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 Inlined_Initial : constant := 100; -- Inline
kono
parents:
diff changeset
74 Inlined_Increment : constant := 100;
kono
parents:
diff changeset
75
kono
parents:
diff changeset
76 Inlined_Bodies_Initial : constant := 50; -- Inline
kono
parents:
diff changeset
77 Inlined_Bodies_Increment : constant := 200;
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 Interp_Map_Initial : constant := 200; -- Sem_Type
kono
parents:
diff changeset
80 Interp_Map_Increment : constant := 100;
kono
parents:
diff changeset
81
kono
parents:
diff changeset
82 Lines_Initial : constant := 500; -- Sinput
kono
parents:
diff changeset
83 Lines_Increment : constant := 150;
kono
parents:
diff changeset
84
kono
parents:
diff changeset
85 Linker_Option_Lines_Initial : constant := 5; -- Lib
kono
parents:
diff changeset
86 Linker_Option_Lines_Increment : constant := 200;
kono
parents:
diff changeset
87
kono
parents:
diff changeset
88 Lists_Initial : constant := 4_000; -- Nlists
kono
parents:
diff changeset
89 Lists_Increment : constant := 200;
kono
parents:
diff changeset
90
kono
parents:
diff changeset
91 Load_Stack_Initial : constant := 10; -- Lib
kono
parents:
diff changeset
92 Load_Stack_Increment : constant := 100;
kono
parents:
diff changeset
93
kono
parents:
diff changeset
94 Name_Chars_Initial : constant := 50_000; -- Namet
kono
parents:
diff changeset
95 Name_Chars_Increment : constant := 100;
kono
parents:
diff changeset
96
kono
parents:
diff changeset
97 Name_Qualify_Units_Initial : constant := 200; -- Exp_Dbug
kono
parents:
diff changeset
98 Name_Qualify_Units_Increment : constant := 300;
kono
parents:
diff changeset
99
kono
parents:
diff changeset
100 Names_Initial : constant := 6_000; -- Namet
kono
parents:
diff changeset
101 Names_Increment : constant := 100;
kono
parents:
diff changeset
102
kono
parents:
diff changeset
103 Nodes_Initial : constant := 50_000; -- Atree
kono
parents:
diff changeset
104 Nodes_Increment : constant := 100;
kono
parents:
diff changeset
105 Nodes_Release_Threshold : constant := 100_000;
kono
parents:
diff changeset
106
kono
parents:
diff changeset
107 Notes_Initial : constant := 100; -- Lib
kono
parents:
diff changeset
108 Notes_Increment : constant := 200;
kono
parents:
diff changeset
109
kono
parents:
diff changeset
110 Obsolescent_Warnings_Initial : constant := 50; -- Sem_Prag
kono
parents:
diff changeset
111 Obsolescent_Warnings_Increment : constant := 200;
kono
parents:
diff changeset
112
kono
parents:
diff changeset
113 Pending_Instantiations_Initial : constant := 10; -- Inline
kono
parents:
diff changeset
114 Pending_Instantiations_Increment : constant := 100;
kono
parents:
diff changeset
115
kono
parents:
diff changeset
116 Rep_Table_Initial : constant := 1000; -- Repinfo
kono
parents:
diff changeset
117 Rep_Table_Increment : constant := 200;
kono
parents:
diff changeset
118
kono
parents:
diff changeset
119 Scope_Stack_Initial : constant := 10; -- Sem
kono
parents:
diff changeset
120 Scope_Stack_Increment : constant := 200;
kono
parents:
diff changeset
121
kono
parents:
diff changeset
122 SFN_Table_Initial : constant := 10; -- Fname
kono
parents:
diff changeset
123 SFN_Table_Increment : constant := 200;
kono
parents:
diff changeset
124
kono
parents:
diff changeset
125 Source_File_Initial : constant := 10; -- Sinput
kono
parents:
diff changeset
126 Source_File_Increment : constant := 200;
kono
parents:
diff changeset
127
kono
parents:
diff changeset
128 String_Chars_Initial : constant := 2_500; -- Stringt
kono
parents:
diff changeset
129 String_Chars_Increment : constant := 150;
kono
parents:
diff changeset
130
kono
parents:
diff changeset
131 Strings_Initial : constant := 5_00; -- Stringt
kono
parents:
diff changeset
132 Strings_Increment : constant := 150;
kono
parents:
diff changeset
133
kono
parents:
diff changeset
134 Successors_Initial : constant := 2_00; -- Inline
kono
parents:
diff changeset
135 Successors_Increment : constant := 100;
kono
parents:
diff changeset
136
kono
parents:
diff changeset
137 Udigits_Initial : constant := 10_000; -- Uintp
kono
parents:
diff changeset
138 Udigits_Increment : constant := 100;
kono
parents:
diff changeset
139
kono
parents:
diff changeset
140 Uints_Initial : constant := 5_000; -- Uintp
kono
parents:
diff changeset
141 Uints_Increment : constant := 100;
kono
parents:
diff changeset
142
kono
parents:
diff changeset
143 Units_Initial : constant := 30; -- Lib
kono
parents:
diff changeset
144 Units_Increment : constant := 100;
kono
parents:
diff changeset
145
kono
parents:
diff changeset
146 Ureals_Initial : constant := 200; -- Urealp
kono
parents:
diff changeset
147 Ureals_Increment : constant := 100;
kono
parents:
diff changeset
148
kono
parents:
diff changeset
149 Unreferenced_Entities_Initial : constant := 1_000; -- Sem_Warn
kono
parents:
diff changeset
150 Unreferenced_Entities_Increment : constant := 100;
kono
parents:
diff changeset
151
kono
parents:
diff changeset
152 Warnings_Off_Pragmas_Initial : constant := 500; -- Sem_Warn
kono
parents:
diff changeset
153 Warnings_Off_Pragmas_Increment : constant := 100;
kono
parents:
diff changeset
154
kono
parents:
diff changeset
155 With_List_Initial : constant := 10; -- Features
kono
parents:
diff changeset
156 With_List_Increment : constant := 300;
kono
parents:
diff changeset
157
kono
parents:
diff changeset
158 Xrefs_Initial : constant := 5_000; -- Cross-refs
kono
parents:
diff changeset
159 Xrefs_Increment : constant := 300;
kono
parents:
diff changeset
160
kono
parents:
diff changeset
161 Drefs_Initial : constant := 5; -- Dereferences
kono
parents:
diff changeset
162 Drefs_Increment : constant := 1_000;
kono
parents:
diff changeset
163
kono
parents:
diff changeset
164 end Alloc;