OSDN Git Service

PR c++/27714
[pf3gnuchains/gcc-fork.git] / gcc / ada / bindusg.adb
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                             B I N D U S G                                --
6 --                                                                          --
7 --                                B o d y                                   --
8 --                                                                          --
9 --          Copyright (C) 1992-2005, 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,  51  Franklin  Street,  Fifth  Floor, --
20 -- Boston, MA 02110-1301, USA.                                              --
21 --                                                                          --
22 -- GNAT was originally developed  by the GNAT team at  New York University. --
23 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
24 --                                                                          --
25 ------------------------------------------------------------------------------
26
27 with Osint;  use Osint;
28 with Output; use Output;
29
30 procedure Bindusg is
31
32 --  Start of processing for Bindusg
33
34 begin
35    --  Usage line
36
37    Write_Str ("Usage: ");
38    Write_Program_Name;
39    Write_Char (' ');
40    Write_Str ("switches lfile");
41    Write_Eol;
42    Write_Eol;
43
44    --  Line for -aO switch
45
46    Write_Str ("  -aOdir    Specify library files search path");
47    Write_Eol;
48
49    --  Line for -aI switch
50
51    Write_Str ("  -aIdir    Specify source files search path");
52    Write_Eol;
53
54    --  Line for a switch
55
56    Write_Str ("  -a        Automatically initialize elaboration procedure");
57    Write_Eol;
58
59    --  Line for A switch
60
61    Write_Str ("  -A        Generate binder program in Ada (default)");
62    Write_Eol;
63
64    --  Line for -b switch
65
66    Write_Str ("  -b        Generate brief messages to std");
67    Write_Str ("err even if verbose mode set");
68    Write_Eol;
69
70    --  Line for -c switch
71
72    Write_Str ("  -c        Check only, no generation of b");
73    Write_Str ("inder output file");
74    Write_Eol;
75
76    --  Line for C switch
77
78    Write_Str ("  -C        Generate binder program in C");
79    Write_Eol;
80
81    --  Line for -d switch
82
83    Write_Str ("  -dnn[k|m] Default primary stack size = nn [kilo|mega] ");
84    Write_Str ("bytes ");
85    Write_Eol;
86
87    --  Line for D switch
88
89    Write_Str ("  -Dnn[k|m] Default secondary stack size = nnn [kilo|mega] ");
90    Write_Str ("bytes");
91    Write_Eol;
92
93    --  Line for -e switch
94
95    Write_Str ("  -e        Output complete list of elabor");
96    Write_Str ("ation order dependencies");
97    Write_Eol;
98
99    --  Line for -E switch
100
101    Write_Str ("  -E        Store tracebacks in Exception occurrences");
102    Write_Eol;
103
104    --  The -f switch is voluntarily omitted, because it is obsolete
105
106    --  Line for -F switch
107
108    Write_Str ("  -F        Force checking of elaboration Flags");
109    Write_Eol;
110
111    --  Line for -h switch
112
113    Write_Str ("  -h        Output this usage (help) infor");
114    Write_Str ("mation");
115    Write_Eol;
116
117    --  Lines for -I switch
118
119    Write_Str ("  -Idir     Specify library and source files search path");
120    Write_Eol;
121
122    Write_Str ("  -I-       Don't look for sources & library files");
123    Write_Str (" in default directory");
124    Write_Eol;
125
126    --  Line for -K switch
127
128    Write_Str ("  -K        Give list of linker options specified for link");
129    Write_Eol;
130
131    --  Line for -l switch
132
133    Write_Str ("  -l        Output chosen elaboration order");
134    Write_Eol;
135
136    --  Line of -L switch
137
138    Write_Str ("  -Lxyz     Library build: adainit/final ");
139    Write_Str ("renamed to xyzinit/final, implies -n");
140    Write_Eol;
141
142    --  Line for -m switch
143
144    Write_Str ("  -mnnn     Limit number of detected error");
145    Write_Str ("s to nnn (1-999999)");
146    Write_Eol;
147
148    --  Line for -M switch
149
150    Write_Str ("  -Mxyz     Rename generated main program from main to xyz");
151    Write_Eol;
152
153    --  Line for -n switch
154
155    Write_Str ("  -n        No Ada main program (foreign main routine)");
156    Write_Eol;
157
158    --  Line for -nostdinc
159
160    Write_Str ("  -nostdinc Don't look for source files");
161    Write_Str (" in the system default directory");
162    Write_Eol;
163
164    --  Line for -nostdlib
165
166    Write_Str ("  -nostdlib Don't look for library files");
167    Write_Str (" in the system default directory");
168    Write_Eol;
169
170    --  Line for -o switch
171
172    Write_Str ("  -o file   Give the output file name (default is b~xxx.adb) ");
173    Write_Eol;
174
175    --  Line for -O switch
176
177    Write_Str ("  -O        Give list of objects required for link");
178    Write_Eol;
179
180    --  Line for -p switch
181
182    Write_Str ("  -p        Pessimistic (worst-case) elaborat");
183    Write_Str ("ion order");
184    Write_Eol;
185
186    --  Line for -r switch
187
188    Write_Str ("  -r        List restrictions that could be a");
189    Write_Str ("pplied to this partition");
190    Write_Eol;
191
192    --  Line for -s switch
193
194    Write_Str ("  -s        Require all source files to be");
195    Write_Str (" present");
196    Write_Eol;
197
198    --  Line for -Sxx switch
199
200    Write_Str ("  -S??      Sin/lo/hi/xx for Initialize_Scalars");
201    Write_Str (" invalid/low/high/hex");
202    Write_Eol;
203
204    --  Line for -static
205
206    Write_Str ("  -static   Link against a static GNAT run time");
207    Write_Eol;
208
209    --  Line for -shared
210
211    Write_Str ("  -shared   Link against a shared GNAT run time");
212    Write_Eol;
213
214    --  Line for -t switch
215
216    Write_Str ("  -t        Tolerate time stamp and other consistency errors");
217    Write_Eol;
218
219    --  Line for -T switch
220
221    Write_Str ("  -Tn       Set time slice value to n milliseconds (n >= 0)");
222    Write_Eol;
223
224    --  Line for -u switch
225
226    Write_Str ("  -un       Enable dynamic stack analysis, with n results ");
227    Write_Str ("stored");
228    Write_Eol;
229
230    --  Line for -v switch
231
232    Write_Str ("  -v        Verbose mode. Error messages, ");
233    Write_Str ("header, summary output to stdout");
234    Write_Eol;
235
236    --  Lines for -w switch
237
238    Write_Str ("  -wx       Warning mode. (x=s/e for supp");
239    Write_Str ("ress/treat as error)");
240    Write_Eol;
241
242    --  Line for -x switch
243
244    Write_Str ("  -x        Exclude source files (check ob");
245    Write_Str ("ject consistency only)");
246    Write_Eol;
247
248    --  Line for X switch
249
250    Write_Str ("  -Xnnn     Default exit status value = nnn");
251    Write_Eol;
252
253    --  Line for -z switch
254
255    Write_Str ("  -z        No main subprogram (zero main)");
256    Write_Eol;
257
258    --  Line for --RTS
259
260    Write_Str ("  --RTS=dir specify the default source and object search path");
261    Write_Eol;
262
263    --  Line for sfile
264
265    Write_Str ("  lfile     Library file names");
266    Write_Eol;
267
268 end Bindusg;