OSDN Git Service

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