* gimplify.c (find_single_pointer_decl_1): New static function.
[official-gcc.git] / gcc / ada / bindusg.adb
blob60deb26b37471c3befbfb9f15797bc0c7c3b52ba
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 ------------------------------------------------------------------------------
27 with Osint; use Osint;
28 with Output; use Output;
30 procedure Bindusg is
32 -- Start of processing for Bindusg
34 begin
35 -- Usage line
37 Write_Str ("Usage: ");
38 Write_Program_Name;
39 Write_Char (' ');
40 Write_Str ("switches lfile");
41 Write_Eol;
42 Write_Eol;
44 -- Line for -aO switch
46 Write_Str (" -aOdir Specify library files search path");
47 Write_Eol;
49 -- Line for -aI switch
51 Write_Str (" -aIdir Specify source files search path");
52 Write_Eol;
54 -- Line for a switch
56 Write_Str (" -a Automatically initialize elaboration procedure");
57 Write_Eol;
59 -- Line for A switch
61 Write_Str (" -A Generate binder program in Ada (default)");
62 Write_Eol;
64 -- Line for -b switch
66 Write_Str (" -b Generate brief messages to std");
67 Write_Str ("err even if verbose mode set");
68 Write_Eol;
70 -- Line for -c switch
72 Write_Str (" -c Check only, no generation of b");
73 Write_Str ("inder output file");
74 Write_Eol;
76 -- Line for C switch
78 Write_Str (" -C Generate binder program in C");
79 Write_Eol;
81 -- Line for D switch
83 Write_Str (" -Dnnn Default secondary stack size = nnn bytes");
84 Write_Eol;
86 -- Line for -e switch
88 Write_Str (" -e Output complete list of elabor");
89 Write_Str ("ation order dependencies");
90 Write_Eol;
92 -- Line for -E switch
94 Write_Str (" -E Store tracebacks in Exception occurrences");
95 Write_Eol;
97 -- The -f switch is voluntarily omitted, because it is obsolete
99 -- Line for -F switch
101 Write_Str (" -F Force checking of elaboration Flags");
102 Write_Eol;
104 -- Line for -h switch
106 Write_Str (" -h Output this usage (help) infor");
107 Write_Str ("mation");
108 Write_Eol;
110 -- Lines for -I switch
112 Write_Str (" -Idir Specify library and source files search path");
113 Write_Eol;
115 Write_Str (" -I- Don't look for sources & library files");
116 Write_Str (" in default directory");
117 Write_Eol;
119 -- Line for -K switch
121 Write_Str (" -K Give list of linker options specified for link");
122 Write_Eol;
124 -- Line for -l switch
126 Write_Str (" -l Output chosen elaboration order");
127 Write_Eol;
129 -- Line of -L switch
131 Write_Str (" -Lxyz Library build: adainit/final ");
132 Write_Str ("renamed to xyzinit/final, implies -n");
133 Write_Eol;
135 -- Line for -M switch
137 Write_Str (" -Mxyz Rename generated main program from main to xyz");
138 Write_Eol;
140 -- Line for -m switch
142 Write_Str (" -mnnn Limit number of detected error");
143 Write_Str ("s to nnn (1-999999)");
144 Write_Eol;
146 -- Line for -n switch
148 Write_Str (" -n No Ada main program (foreign main routine)");
149 Write_Eol;
151 -- Line for -nostdinc
153 Write_Str (" -nostdinc Don't look for source files");
154 Write_Str (" in the system default directory");
155 Write_Eol;
157 -- Line for -nostdlib
159 Write_Str (" -nostdlib Don't look for library files");
160 Write_Str (" in the system default directory");
161 Write_Eol;
163 -- Line for -o switch
165 Write_Str (" -o file Give the output file name (default is b~xxx.adb) ");
166 Write_Eol;
168 -- Line for -O switch
170 Write_Str (" -O Give list of objects required for link");
171 Write_Eol;
173 -- Line for -p switch
175 Write_Str (" -p Pessimistic (worst-case) elaborat");
176 Write_Str ("ion order");
177 Write_Eol;
179 -- Line for -r switch
181 Write_Str (" -r List restrictions that could be a");
182 Write_Str ("pplied to this partition");
183 Write_Eol;
185 -- Line for -s switch
187 Write_Str (" -s Require all source files to be");
188 Write_Str (" present");
189 Write_Eol;
191 -- Line for -Sxx switch
193 Write_Str (" -S?? Sin/lo/hi/xx for Initialize_Scalars");
194 Write_Str (" invalid/low/high/hex");
195 Write_Eol;
197 -- Line for -static
199 Write_Str (" -static Link against a static GNAT run time");
200 Write_Eol;
202 -- Line for -shared
204 Write_Str (" -shared Link against a shared GNAT run time");
205 Write_Eol;
207 -- Line for -t switch
209 Write_Str (" -t Tolerate time stamp and other consistency errors");
210 Write_Eol;
212 -- Line for -T switch
214 Write_Str (" -Tn Set time slice value to n milliseconds (n >= 0)");
215 Write_Eol;
217 -- Line for -v switch
219 Write_Str (" -v Verbose mode. Error messages, ");
220 Write_Str ("header, summary output to stdout");
221 Write_Eol;
223 -- Lines for -w switch
225 Write_Str (" -wx Warning mode. (x=s/e for supp");
226 Write_Str ("ress/treat as error)");
227 Write_Eol;
229 -- Line for -x switch
231 Write_Str (" -x Exclude source files (check ob");
232 Write_Str ("ject consistency only)");
233 Write_Eol;
235 -- Line for X switch
237 Write_Str (" -Xnnn Default exit status value = nnn");
238 Write_Eol;
240 -- Line for -z switch
242 Write_Str (" -z No main subprogram (zero main)");
243 Write_Eol;
245 -- Line for --RTS
247 Write_Str (" --RTS=dir specify the default source and object search path");
248 Write_Eol;
250 -- Line for sfile
252 Write_Str (" lfile Library file names");
253 Write_Eol;
255 end Bindusg;