PR c++/3637
[official-gcc.git] / gcc / ada / bindusg.adb
blobc812a1d62e1934044bc8bd896c0f030199b9f13d
1 ------------------------------------------------------------------------------
2 -- --
3 -- GBIND BINDER COMPONENTS --
4 -- --
5 -- B I N D U S G --
6 -- --
7 -- B o d y --
8 -- --
9 -- $Revision$
10 -- --
11 -- Copyright (C) 1992-2001 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 -- GNAT was originally developed by the GNAT team at New York University. --
25 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
26 -- --
27 ------------------------------------------------------------------------------
29 with Osint; use Osint;
30 with Output; use Output;
32 procedure Bindusg is
34 procedure Write_Switch_Char;
35 -- Write two spaces followed by appropriate switch character
37 procedure Write_Switch_Char is
38 begin
39 Write_Str (" ");
40 Write_Char (Switch_Character);
41 end Write_Switch_Char;
43 -- Start of processing for Bindusg
45 begin
46 -- Usage line
48 Write_Str ("Usage: ");
49 Write_Program_Name;
50 Write_Char (' ');
51 Write_Str ("switches lfile");
52 Write_Eol;
53 Write_Eol;
55 -- Line for -aO switch
57 Write_Switch_Char;
58 Write_Str ("aOdir Specify library files search path");
59 Write_Eol;
61 -- Line for -aI switch
63 Write_Switch_Char;
64 Write_Str ("aIdir Specify source files search path");
65 Write_Eol;
67 -- Line for A switch
69 Write_Switch_Char;
70 Write_Str ("A Generate binder program in Ada (default)");
71 Write_Eol;
73 -- Line for -b switch
75 Write_Switch_Char;
76 Write_Str ("b Generate brief messages to std");
77 Write_Str ("err even if verbose mode set");
78 Write_Eol;
80 -- Line for -c switch
82 Write_Switch_Char;
83 Write_Str ("c Check only, no generation of b");
84 Write_Str ("inder output file");
85 Write_Eol;
87 -- Line for C switch
89 Write_Switch_Char;
90 Write_Str ("C Generate binder program in C");
91 Write_Eol;
93 -- Line for -e switch
95 Write_Switch_Char;
96 Write_Str ("e Output complete list of elabor");
97 Write_Str ("ation order dependencies");
98 Write_Eol;
100 -- Line for -E switch
102 Write_Switch_Char;
103 Write_Str ("E Store tracebacks in Exception occurrences");
104 Write_Eol;
106 -- Line for -h switch
108 Write_Switch_Char;
109 Write_Str ("h Output this usage (help) infor");
110 Write_Str ("mation");
111 Write_Eol;
113 -- Line for -I switch
115 Write_Switch_Char;
116 Write_Str ("Idir Specify library and source files search path");
117 Write_Eol;
119 -- Line for -I- switch
121 Write_Switch_Char;
122 Write_Str ("I- Don't look for sources & library files");
123 Write_Str (" in default directory");
124 Write_Eol;
126 -- Line for -K switch
128 Write_Switch_Char;
129 Write_Str ("K Give list of linker options specified for link");
130 Write_Eol;
132 -- Line for -l switch
134 Write_Switch_Char;
135 Write_Str ("l Output chosen elaboration order");
136 Write_Eol;
138 -- Line of -L switch
140 Write_Switch_Char;
141 Write_Str ("Lxyz Library build: adainit/final ");
142 Write_Str ("renamed to xyzinit/final, implies -n");
143 Write_Eol;
145 -- Line for -M switch
147 Write_Switch_Char;
148 Write_Str ("Mxyz Rename generated main program from main to xyz");
149 Write_Eol;
151 -- Line for -m switch
153 Write_Switch_Char;
154 Write_Str ("mnnn Limit number of detected error");
155 Write_Str ("s to nnn (1-999)");
156 Write_Eol;
158 -- Line for -n switch
160 Write_Switch_Char;
161 Write_Str ("n No Ada main program (foreign main routine)");
162 Write_Eol;
164 -- Line for -nostdinc
166 Write_Switch_Char;
167 Write_Str ("nostdinc Don't look for source files");
168 Write_Str (" in the system default directory");
169 Write_Eol;
171 -- Line for -nostdlib
173 Write_Switch_Char;
174 Write_Str ("nostdlib Don't look for library files");
175 Write_Str (" in the system default directory");
176 Write_Eol;
178 -- Line for -o switch
180 Write_Switch_Char;
181 Write_Str ("o file Give the output file name (default is b~xxx.adb) ");
182 Write_Eol;
184 -- Line for -O switch
186 Write_Switch_Char;
187 Write_Str ("O Give list of objects required for link");
188 Write_Eol;
190 -- Line for -p switch
192 Write_Switch_Char;
193 Write_Str ("p Pessimistic (worst-case) elaborat");
194 Write_Str ("ion order");
195 Write_Eol;
197 -- Line for -s switch
199 Write_Switch_Char;
200 Write_Str ("s Require all source files to be");
201 Write_Str (" present");
202 Write_Eol;
204 -- Line for -Sxx switch
206 Write_Switch_Char;
207 Write_Str ("S?? Sin/lo/hi/xx for Initialize_Scalars");
208 Write_Str (" invalid/low/high/hex");
209 Write_Eol;
211 -- Line for -static
213 Write_Switch_Char;
214 Write_Str ("static Link against a static GNAT run time");
215 Write_Eol;
217 -- Line for -shared
219 Write_Switch_Char;
220 Write_Str ("shared Link against a shared GNAT run time");
221 Write_Eol;
223 -- Line for -t switch
225 Write_Switch_Char;
226 Write_Str ("t Tolerate time stamp and other consistency errors");
227 Write_Eol;
229 -- Line for -T switch
231 Write_Switch_Char;
232 Write_Str ("Tn Set time slice value to n microseconds (n >= 0)");
233 Write_Eol;
235 -- Line for -v switch
237 Write_Switch_Char;
238 Write_Str ("v Verbose mode. Error messages, ");
239 Write_Str ("header, summary output to stdout");
240 Write_Eol;
242 -- Lines for -w switch
244 Write_Switch_Char;
245 Write_Str ("wx Warning mode. (x=s/e for supp");
246 Write_Str ("ress/treat as error)");
247 Write_Eol;
249 -- Line for -x switch
251 Write_Switch_Char;
252 Write_Str ("x Exclude source files (check ob");
253 Write_Str ("ject consistency only)");
254 Write_Eol;
256 -- Line for -z switch
258 Write_Switch_Char;
259 Write_Str ("z No main subprogram (zero main)");
260 Write_Eol;
262 -- Line for sfile
264 Write_Str (" lfile Library file names");
265 Write_Eol;
267 end Bindusg;