compiler: don't generate stubs for ambiguous direct interface methods
[official-gcc.git] / gcc / ada / makeusg.adb
blobe7653ebc5522deb60da23bafaf299d6b4ab2e437
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- M A K E U S G --
6 -- --
7 -- B o d y --
8 -- --
9 -- Copyright (C) 1992-2022, 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 3, 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 COPYING3. If not, go to --
19 -- http://www.gnu.org/licenses for a complete copy of the license. --
20 -- --
21 -- GNAT was originally developed by the GNAT team at New York University. --
22 -- Extensive contributions were provided by Ada Core Technologies Inc. --
23 -- --
24 ------------------------------------------------------------------------------
26 with Make_Util;
27 with Osint;
28 with Output; use Output;
29 with Switch; use Switch;
30 with Usage;
32 procedure Makeusg is
34 -- Start of processing for Makeusg
36 begin
37 -- Usage line
39 Write_Str ("Usage: ");
40 Osint.Write_Program_Name;
41 Write_Str (" opts name ");
42 Write_Str ("{[-cargs opts] [-bargs opts] [-largs opts] [-margs opts]}");
43 Write_Eol;
44 Write_Eol;
45 Write_Str (" name is one or more file name from which you");
46 Write_Str (" can omit the .adb or .ads suffix");
47 Write_Eol;
48 Write_Eol;
50 -- GNATMAKE switches
52 Write_Str ("gnatmake switches:");
53 Write_Eol;
55 Display_Usage_Version_And_Help;
57 -- Line for -a
59 Write_Str (" -a Consider all files, even readonly ali files");
60 Write_Eol;
62 -- Line for -b
64 Write_Str (" -b Bind only");
65 Write_Eol;
67 -- Line for -B
69 Write_Str (" -B Build, bind and link full project");
70 Write_Eol;
72 -- Line for -c
74 Write_Str (" -c Compile only");
75 Write_Eol;
77 -- Line for -C
79 Write_Str (" -C Cache source mappings: " &
80 "invoke compiler with temp mapping file");
81 Write_Eol;
83 -- Line for -C=<mapping file>
85 Write_Str (" -C=mapp Cache source mappings: " &
86 "invoke compiler with mapping file mapp");
87 Write_Eol;
89 -- Line for -d
91 Write_Str (" -d Display compilation progress");
92 Write_Eol;
94 -- Line for -D
96 Write_Str (" -D dir Specify dir as the object directory");
97 Write_Eol;
99 -- Line for -eI
101 Write_Str (" -eI Index of unit in multi-unit source file");
102 Write_Eol;
104 -- Line for -eL
106 Write_Str (" -eL Follow symbolic links when processing " &
107 "project files");
108 Write_Eol;
110 -- Line for -eS
112 Write_Str (" -eS Echo commands to stdout instead of stderr");
113 Write_Eol;
115 -- Line for -f
117 Write_Str (" -f Force recompilations of non predefined units");
118 Write_Eol;
120 -- Line for -F
122 Write_Str (" -F Full project path name in brief error messages");
123 Write_Eol;
125 -- Line for -i
127 Write_Str (" -i In place. Replace existing ali file, ");
128 Write_Str ("or put it with source");
129 Write_Eol;
131 -- Line for -jnnn
133 Write_Str (" -jnum Use nnn processes to compile");
134 Write_Eol;
136 -- Line for -k
138 Write_Str (" -k Keep going after compilation errors");
139 Write_Eol;
141 -- Line for -l
143 Write_Str (" -l Link only");
144 Write_Eol;
146 -- Line for -m
148 Write_Str (" -m Minimal recompilation");
149 Write_Eol;
151 -- Line for -M
153 Write_Str (" -M List object file dependences for Makefile");
154 Write_Eol;
156 -- Line for -n
158 Write_Str (" -n Check objects up to date, output next file ");
159 Write_Str ("to compile if not");
160 Write_Eol;
162 -- Line for -o
164 Write_Str (" -o name Choose an alternate executable name");
165 Write_Eol;
167 -- Line for -p
169 Write_Str (" -p Create missing obj, lib and exec dirs");
170 Write_Eol;
172 -- Line for -P
174 Write_Str (" -Pproj Use GNAT Project File proj");
175 Write_Eol;
177 -- Line for -q
179 Write_Str (" -q Be quiet/terse");
180 Write_Eol;
182 -- Line for -R
184 Write_Str (" -R Do not use a run_path_option when linking");
185 Write_Eol;
187 -- Line for -s
189 Write_Str (" -s Recompile if compiler switches have changed");
190 Write_Eol;
192 -- Line for -u
194 Write_Str (" -u Unique compilation, only compile the given files");
195 Write_Eol;
197 -- Line for -U
199 Write_Str (" -U Unique compilation for all sources of all projects");
200 Write_Eol;
202 -- Line for -v
204 Write_Str (" -v Display reasons for all (re)compilations");
205 Write_Eol;
207 -- Line for -vl
209 Write_Str (" -vl Verbose output (low verbosity)");
210 Write_Eol;
212 -- Line for -vm
214 Write_Str (" -vm Verbose output (medium verbosity)");
215 Write_Eol;
217 -- Line for -vh
219 Write_Str (" -vh Equivalent to -v (high verbosity)");
220 Write_Eol;
222 -- Line for -vPx
224 Write_Str (" -vPx Specify verbosity when parsing GNAT Project Files");
225 Write_Eol;
227 -- Line for -we
229 Write_Str (" -we Treat all warnings as errors");
230 Write_Eol;
232 -- Line for -wn
234 Write_Str (" -wn Normal warning mode (cancels -we/-ws)");
235 Write_Eol;
237 -- Line for -ws
239 Write_Str (" -ws Suppress all warnings");
240 Write_Eol;
242 -- Line for -x
244 Write_Str (" -x " &
245 "Allow compilation of needed units external to the projects");
246 Write_Eol;
248 -- Line for -X
250 Write_Str (" -Xnm=val Specify an external reference for GNAT " &
251 "Project Files");
252 Write_Eol;
254 -- Line for -z
256 Write_Str (" -z No main subprogram (zero main)");
257 Write_Eol;
258 Write_Eol;
260 Write_Str (" --create-map-file Create map file mainprog.map");
261 Write_Eol;
263 Write_Str (" --create-map-file=mapfile");
264 Write_Eol;
265 Write_Str (" Create map file mapfile");
266 Write_Eol;
268 Write_Str (" --keep-temp-files Keep temporary files");
269 Write_Eol;
271 Write_Str (" --GCC=command Use this gcc command");
272 Write_Eol;
274 Write_Str (" --GNATBIND=command Use this gnatbind command");
275 Write_Eol;
277 Write_Str (" --GNATLINK=command Use this gnatlink command");
278 Write_Eol;
279 Write_Eol;
281 -- Source and Library search path switches
283 Write_Str ("Project, Source and Library search path switches:");
284 Write_Eol;
286 -- Line for -aP
288 Write_Str (" -aPdir Add directory dir to project search path");
289 Write_Eol;
291 -- Line for -aL
293 Write_Str (" -aLdir Skip missing library sources if ali in dir");
294 Write_Eol;
296 -- Line for -A
298 Write_Str (" -Adir like -aLdir -aIdir");
299 Write_Eol;
301 -- Line for -aO switch
303 Write_Str (" -aOdir Specify library/object files search path");
304 Write_Eol;
306 -- Line for -aI switch
308 Write_Str (" -aIdir Specify source files search path");
309 Write_Eol;
311 -- Line for -I switch
313 Write_Str (" -Idir Like -aIdir -aOdir");
314 Write_Eol;
316 -- Line for -I- switch
318 Write_Str (" -I- Don't look for sources & library files");
319 Write_Str (" in the default directory");
320 Write_Eol;
322 -- Line for -L
324 Write_Str (" -Ldir Look for program libraries also in dir");
325 Write_Eol;
327 -- Line for -nostdinc
329 Write_Str (" -nostdinc Don't look for sources");
330 Write_Str (" in the system default directory");
331 Write_Eol;
333 -- Line for -nostdlib
335 Write_Str (" -nostdlib Don't look for library files");
336 Write_Str (" in the system default directory");
337 Write_Eol;
339 -- Line for --RTS
341 Write_Str (" --RTS=dir specify the default source and object search"
342 & " path");
343 Write_Eol;
345 -- Line for --subdirs=
347 Write_Str (" --subdirs=dir real obj/lib/exec dirs are subdirs");
348 Write_Eol;
350 -- Line for --source-info=
352 Write_Str (" ");
353 Write_Str (Make_Util.Source_Info_Option);
354 Write_Str ("file specify a source info file");
355 Write_Eol;
357 -- Line for --unchecked-shared-lib-imports
359 Write_Str (" ");
360 Write_Str (Make_Util.Unchecked_Shared_Lib_Imports);
361 Write_Eol;
362 Write_Str (" Allow shared libraries to import static libraries");
363 Write_Eol;
364 Write_Eol;
366 -- General Compiler, Binder, Linker switches
368 Write_Str ("To pass an arbitrary switch to the Compiler, ");
369 Write_Str ("Binder or Linker:");
370 Write_Eol;
372 -- Line for -cargs
374 Write_Str (" -cargs opts opts are passed to the compiler");
375 Write_Eol;
377 -- Line for -bargs
379 Write_Str (" -bargs opts opts are passed to the binder");
380 Write_Eol;
382 -- Line for -largs
384 Write_Str (" -largs opts opts are passed to the linker");
385 Write_Eol;
387 -- Line for -margs
389 Write_Str (" -margs opts opts are passed to gnatmake");
390 Write_Eol;
392 -- Add usage information for gcc
394 Usage;
396 end Makeusg;