1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
|
; Options for the Modula-2 front end.
;
; Copyright (C) 2016-2022 Free Software Foundation, Inc.
; Contributed by Gaius Mulley <gaius.mulley@southwales.ac.uk>.
;
; This file is part of GNU Modula-2.
;
; GNU Modula-2 is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 3, or (at your option)
; any later version.
;
; GNU Modula-2 is distributed in the hope that it will be useful, but
; WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
; General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with GNU Modula-2; see the file COPYING. If not,
; see <https://www.gnu.org/licenses/>. *)
; See the GCC internals manual for a description of this file's format.
; Please try to keep this file in ASCII collating order.
Language
Modula-2
I
Modula-2 Joined Separate
; Documented in c.opt
L
Modula-2 Joined Separate
; Not documented
M
Modula-2
; Documented in c.opt
O
Modula-2
; Documented in c.opt
c
Modula-2
; Documented in c.opt
fiso
Modula-2
use ISO dialect of Modula-2
fpim
Modula-2
use PIM [234] dialect of Modula-2
fpim2
Modula-2
use PIM 2 dialect of Modula-2
fpim3
Modula-2
use PIM 3 dialect of Modula-2
fpim4
Modula-2
use PIM 4 dialect of Modula-2
fpositive-mod-floor-div
Modula-2
force positive result from MOD and DIV result floor
flibs=
Modula-2 Joined
specify the library order, currently legal entries include: log, min, pim, iso or their directory name equivalent m2log, m2min, m2pim, m2iso.
fauto-init
Modula-2
automatically initializes all pointers to NIL
flocation=
Modula-2 Joined
set all location values to a specific value (internal switch)
fbounds
Modula-2
turns on runtime subrange, array index and indirection via NIL pointer checking
freturn
Modula-2
turns on runtime checking for functions which finish without executing a RETURN statement
fnil
Modula-2
turns on runtime checking to detect accessing data through a NIL value pointer
fcase
Modula-2
turns on runtime checking to check whether a CASE statement requires an ELSE clause when on was not specified
ffloatvalue
Modula-2
turns on runtime checking to check whether a floating point number is about to exceed range
fwholevalue
Modula-2
turns on runtime checking to check whether a whole number is about to exceed range
fsoft-check-all
Modula-2
turns on all software runtime checking (an abbreviation for -fnil -frange -findex -fwholediv -fcase -freturn -fwholediv -ffloatvalue)
frange
Modula-2
turns on all range checking for numerical values
findex
Modula-2
turns on all range checking for numerical values
fwholediv
Modula-2
turns on all division and modulus by zero checking for ordinal values
fexceptions
Modula-2
; Documented in common.opt
fextended-opaque
Modula-2
allows opaque types to be implemented as any type (a GNU Modula-2 extension)
fuselist=
Modula-2 Joined
orders the initialization/finalializations for scaffold-static or force linking of modules if scaffold-dynamic
fno-pthread
Modula-2
do not link against the pthread library
fm2-plugin
Modula-2
insert plugin to identify runtime errors at compiletime
fno-m2-plugin
Modula-2
do not insert plugin to identify runtime errors at compiletime
fscaffold-static
Modula-2
generate static scaffold initialization and finalization for every module inside main
fscaffold-dynamic
Modula-2
the modules initialization order is dynamically determined by M2RTS and application dependancies
fscaffold-c
Modula-2
generate a C source scaffold for the current module being compiled
fscaffold-c++
Modula-2
generate a C++ source scaffold for the current module being compiled
fscaffold-main
Modula-2
generate the main function
fruntime-modules=
Modula-2 Joined
specify the list of runtime modules and their initialization order
fcpp
Modula-2
use cpp to preprocess the module
fq
Modula-2
internal compiler debugging information, dump the list of quadruples
fsources
Modula-2
display the location of module source files as they are compiled
funbounded-by-reference
Modula-2
optimize non var unbounded parameters by passing it by reference, providing it is not written to within the callee procedure.
fdef=
Modula-2 Joined
recognise the specified suffix as a definition module filename
fmod=
Modula-2 Joined
recognise the specified suffix as implementation and module filenames
fxcode
Modula-2
issue all errors and warnings in the Xcode format
fdebug-builtins
Modula-2
call a real function, rather than the builtin equivalent
fdump-system-exports
Modula-2
display all inbuilt system items
fd
Modula-2
turn on internal debugging of the compiler
fdebug-trace-quad
Modula-2
turn on quadruple tracing (internal switch)
fdebug-trace-api
Modula-2
turn on the Modula-2 api tracing (internal switch)
fdebug-function-line-numbers
Modula-2
turn on the Modula-2 function line number generation (internal switch)
fm2-statistics
Modula-2
display statistics about the amount of source lines compiled and symbols used
fm2-g
Modula-2
generate extra nops to improve debugging, producing an instruction for every code related keyword
fm2-lower-case
Modula-2
generate error messages which render keywords in lower case
fm2-strict-type
Modula-2
experimental flag to turn on the new strict type checker
fswig
Modula-2
create a swig interface file for the module
fshared
Modula-2
generate a shared library from the module
fm2-whole-program
Modula-2
compile all implementation modules and program module at once
fversion
Modula-2
; Documented in common.opt
fm2-version
Modula-2
display the GNU Modula-2 version
Wstudents
Modula-2
extra compile time semantic checking, typically tries to catch bad style
Wpedantic
Modula-2
; Documented in common.opt
Wpedantic-param-names
Modula-2
compiler checks to force definition module procedure parameter names with their implementation module counterpart
Wpedantic-cast
Modula-2
compiler warns if a cast is being used on types of differing sizes
Wverbose-unbounded
Modula-2
inform user which parameters will be passed by reference
Wall
Modula-2
; Documented in c.opt
Wunused-variable
Modula-2
; Documented in c.opt
Wunused-parameter
Modula-2
; Documented in c.opt
version
Modula-2
; Documented in c.opt
v
Modula-2
; Documented in c.opt
lang-asm
Modula-2
; Documented in c.opt
traditional-cpp
Modula-2
; Documented in c.opt
iprefix
Modula-2
; Documented in c.opt
isystem
Modula-2
; Documented in c.opt
idirafter
Modula-2
; Documented in c.opt
imultilib
Modula-2
; Documented in c.opt
fobjc-std=objc1
Modula-2
; Documented in c.opt
fcpp-end
Modula-2
passed to the preprocessor if -fcpp is used (internal switch)
fcpp-begin
Modula-2
passed to the preprocessor if -fcpp is used (internal switch)
fcpp-prog=
Modula-2 Joined
passed to the preprocessor if -fcpp is used (internal switch)
E
Modula-2
; Documented in c.opt (passed to the preprocessor if -fcpp is used)
D
Modula-2
; Documented in c.opt
x
Modula-2 Joined
specify the language from the compiler driver
-save-temps
Modula-2 Alias(save-temps)
save-temps
Modula-2
save temporary preprocessed files
save-temps=
Modula-2 Joined
save temporary preprocessed files
; This comment is to ensure we retain the blank line above.
|