OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [ada/] [bindusg.adb] - Blame information for rev 706

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 706 jeremybenn
------------------------------------------------------------------------------
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-2011, 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
------------------------------------------------------------------------------
25
 
26
with Osint;  use Osint;
27
with Output; use Output;
28
with Switch; use Switch;
29
 
30
with System.WCh_Con; use System.WCh_Con;
31
 
32
package body Bindusg is
33
 
34
   Already_Displayed : Boolean := False;
35
   --  Set True if Display called, used to avoid showing usage information
36
   --  more than once.
37
 
38
   -------------
39
   -- Display --
40
   -------------
41
 
42
   procedure Display is
43
   begin
44
      if Already_Displayed then
45
         return;
46
      else
47
         Already_Displayed := True;
48
      end if;
49
 
50
      --  Usage line
51
 
52
      Write_Str ("Usage: ");
53
      Write_Program_Name;
54
      Write_Char (' ');
55
      Write_Str ("switches lfile");
56
      Write_Eol;
57
      Write_Eol;
58
 
59
      Display_Usage_Version_And_Help;
60
 
61
      --  Line for @response_file
62
 
63
      Write_Line ("  @<resp_file> Get arguments from response file");
64
      Write_Eol;
65
 
66
      --  Line for -aO switch
67
 
68
      Write_Line ("  -aOdir    Specify library files search path");
69
 
70
      --  Line for -aI switch
71
 
72
      Write_Line ("  -aIdir    Specify source files search path");
73
 
74
      --  Line for a switch
75
 
76
      Write_Line ("  -a        Automatically initialize elaboration " &
77
                  "procedure");
78
 
79
      --  Line for -A switch
80
 
81
      Write_Line ("  -A        Give list of ALI files in partition");
82
 
83
      --  Line for -b switch
84
 
85
      Write_Line ("  -b        Generate brief messages to stderr " &
86
                  "even if verbose mode set");
87
 
88
      --  Line for -c switch
89
 
90
      Write_Line ("  -c        Check only, no generation of " &
91
                  "binder output file");
92
 
93
      --  Line for -d switch
94
 
95
      Write_Line ("  -dnn[k|m] Default primary stack " &
96
                  "size = nn [kilo|mega] bytes");
97
 
98
      --  Line for D switch
99
 
100
      Write_Line ("  -Dnn[k|m] Default secondary stack " &
101
                  "size = nn [kilo|mega] bytes");
102
 
103
      --  Line for -e switch
104
 
105
      Write_Line ("  -e        Output complete list of elaboration " &
106
                  "order dependencies");
107
 
108
      --  Line for -E switch
109
 
110
      Write_Line ("  -E        Store tracebacks in exception occurrences");
111
 
112
      --  The -f switch is voluntarily omitted, because it is obsolete
113
 
114
      --  Line for -F switch
115
 
116
      Write_Line ("  -F        Force checking of elaboration Flags");
117
 
118
      --  Line for -h switch
119
 
120
      Write_Line ("  -h        Output this usage (help) information");
121
 
122
      --  Line for -H switch
123
 
124
      Write_Line ("  -Hnn      Use nn bit heap where nn is 32 or 64 " &
125
                  "(VMS Only)");
126
 
127
      --  Lines for -I switch
128
 
129
      Write_Line ("  -Idir     Specify library and source files search path");
130
      Write_Line ("  -I-       Don't look for sources & library files " &
131
                  "in default directory");
132
 
133
      --  Line for -K switch
134
 
135
      Write_Line ("  -K        Give list of linker options specified " &
136
                  "for link");
137
 
138
      --  Line for -l switch
139
 
140
      Write_Line ("  -l        Output chosen elaboration order");
141
 
142
      --  Line of -L switch
143
 
144
      Write_Line ("  -Lxyz     Library build: adainit/final " &
145
                  "renamed to xyzinit/final, implies -n");
146
 
147
      --  Line for -m switch
148
 
149
      Write_Line ("  -mnnn     Limit number of detected errors/warnings " &
150
                  "to nnn (1-999999)");
151
 
152
      --  Line for -M switch
153
 
154
      Write_Line ("  -Mxyz     Rename generated main program from " &
155
                  "main to xyz");
156
 
157
      --  Line for -n switch
158
 
159
      Write_Line ("  -n        No Ada main program (foreign main routine)");
160
 
161
      --  Line for -nostdinc
162
 
163
      Write_Line ("  -nostdinc Don't look for source files " &
164
                  "in the system default directory");
165
 
166
      --  Line for -nostdlib
167
 
168
      Write_Line ("  -nostdlib Don't look for library files " &
169
                  "in the system default directory");
170
 
171
      --  Line for -o switch
172
 
173
      Write_Line ("  -o file   Give the output file name " &
174
                  "(default is b~xxx.adb)");
175
 
176
      --  Line for -O switch
177
 
178
      Write_Line ("  -O        Give list of objects required for link");
179
 
180
      --  Line for -p switch
181
 
182
      Write_Line ("  -p        Pessimistic (worst-case) elaboration order");
183
 
184
      --  Line for -P switch
185
 
186
      Write_Line ("  -P        Generate binder file suitable for CodePeer");
187
 
188
      --  Line for -r switch
189
 
190
      Write_Line ("  -r        List restrictions that could be applied " &
191
                  "to this partition");
192
 
193
      --  Line for -R switch
194
 
195
      Write_Line
196
        ("  -R        List sources referenced in closure");
197
 
198
      --  Line for -s switch
199
 
200
      Write_Line ("  -s        Require all source files to be present");
201
 
202
      --  Line for -S?? switch
203
 
204
      Write_Line ("  -S??      Sin/lo/hi/xx/ev Initialize_Scalars " &
205
                  "invalid/low/high/hex/env var");
206
 
207
      --  Line for -static
208
 
209
      Write_Line ("  -static   Link against a static GNAT run time");
210
 
211
      --  Line for -shared
212
 
213
      Write_Line ("  -shared   Link against a shared GNAT run time");
214
 
215
      --  Line for -t switch
216
 
217
      Write_Line ("  -t        Tolerate time stamp and other " &
218
                  "consistency errors");
219
 
220
      --  Line for -T switch
221
 
222
      Write_Line ("  -Tn       Set time slice value to n " &
223
                  "milliseconds (n >= 0)");
224
 
225
      --  Line for -u switch
226
 
227
      Write_Line ("  -un       Enable dynamic stack analysis, with " &
228
                  "n results stored");
229
 
230
      --  Line for -v switch
231
 
232
      Write_Line ("  -v        Verbose mode. Error messages, " &
233
                  "header, summary output to stdout");
234
 
235
      --  Line for -w switch
236
 
237
      Write_Line ("  -wx       Warning mode. (x=s/e for " &
238
                  "suppress/treat as error)");
239
 
240
      --  Line for -W switch
241
 
242
      Write_Str  ("  -W?       Wide character encoding method (");
243
 
244
      for J in WC_Encoding_Method loop
245
         Write_Char (WC_Encoding_Letters (J));
246
 
247
         if J = WC_Encoding_Method'Last then
248
            Write_Char (')');
249
         else
250
            Write_Char ('/');
251
         end if;
252
      end loop;
253
 
254
      Write_Eol;
255
 
256
      --  Line for -x switch
257
 
258
      Write_Line ("  -x        Exclude source files (check object " &
259
                  "consistency only)");
260
 
261
      --  Line for -X switch
262
 
263
      Write_Line ("  -Xnnn     Default exit status value = nnn");
264
 
265
      --  Line for -y switch
266
 
267
      Write_Line ("  -y        Enable leap seconds");
268
 
269
      --  Line for -z switch
270
 
271
      Write_Line ("  -z        No main subprogram (zero main)");
272
 
273
      --  Line for --RTS
274
 
275
      --  Line for -Z switch
276
 
277
      Write_Line ("  -Z        " &
278
                  "Zero formatting in auxiliary outputs (-e, -K, -l, -R)");
279
 
280
      --  Line for --RTS
281
 
282
      Write_Line ("  --RTS=dir Specify the default source and " &
283
                  "object search path");
284
 
285
      --  Line for sfile
286
 
287
      Write_Line ("  lfile     Library file names");
288
   end Display;
289
 
290
end Bindusg;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.