comparison gcc/d/lang.opt @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 ; lang.opt -- Options for the D front end.
2 ; Copyright (C) 2006-2020 Free Software Foundation, Inc.
3 ;
4 ; GCC is free software; you can redistribute it and/or modify it under
5 ; the terms of the GNU General Public License as published by the Free
6 ; Software Foundation; either version 3, or (at your option) any later
7 ; version.
8 ;
9 ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
10 ; WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 ; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 ; for more details.
13 ;
14 ; You should have received a copy of the GNU General Public License
15 ; along with GCC; see the file COPYING3. If not see
16 ; <http://www.gnu.org/licenses/>.
17
18 ; See the GCC internals manual for a description of this file's format.
19
20 ; Please try to keep this file in ASCII collating order.
21
22 Language
23 D
24
25 -dependencies
26 D Alias(M)
27 ; Documented in C
28
29 -print-missing-file-dependencies
30 D Alias(MG)
31 ; Documented in C
32
33 -user-dependencies
34 D Alias(MM)
35 ; Documented in C
36
37 -write-dependencies
38 D NoDriverArg Separate Alias(MD)
39 ; Documented in C
40
41 -write-user-dependencies
42 D NoDriverArg Separate Alias(MMD)
43 ; Documented in C
44
45 H
46 D
47 ; Different from documented use in C.
48
49 Hd
50 D Joined Separate
51 -Hd <dir> Write D interface files to directory <dir>.
52
53 Hf
54 D Joined Separate
55 -Hf <file> Write D interface to <file>.
56
57 I
58 D Joined Separate
59 ; Documented in C
60
61 J
62 D Joined Separate
63 ; Different from documented use in Fortran.
64
65 M
66 D
67 ; Documented in C
68
69 MD
70 D Separate NoDriverArg
71 ; Documented in C
72
73 MF
74 D Joined Separate
75 ; Documented in C
76
77 MG
78 D
79 ; Documented in C
80
81 MM
82 D
83 ; Documented in C
84
85 MMD
86 D Separate NoDriverArg
87 ; Documented in C
88
89 MP
90 D
91 ; Documented in C
92
93 MT
94 D Joined Separate
95 ; Documented in C
96
97 MQ
98 D Joined Separate
99 ; Documented in C
100
101 Waddress
102 D Warning Var(warn_address)
103 ; Documented in C
104
105 Wall
106 D
107 ; Documented in C
108
109 Walloca
110 D
111 ; Documented in C
112
113 Walloca-larger-than=
114 D
115 ; Documented in C
116
117 Wno-alloca-larger-than
118 D
119 ; Documented in C
120
121 Wcast-result
122 D Warning Var(warn_cast_result)
123 Warn about casts that will produce a null result.
124
125 Wdeprecated
126 D
127 ; Documented in common.opt
128
129 Werror
130 D
131 ; Documented in common.opt
132
133 Wpsabi
134 D
135 ; Documented in C
136
137 Wspeculative
138 D
139 Warn from speculative compiles such as __traits(compiles).
140
141 Wtemplates
142 D
143 ; Documented in C
144
145 Wunknown-pragmas
146 D LangEnabledBy(D, Wall)
147 ; Documented in C
148
149 X
150 D
151 Generate JSON file.
152
153 Xf
154 D Joined Separate
155 -Xf <file> Write JSON output to the given <file>.
156
157 debuglib=
158 Driver Joined
159 Debug library to use instead of phobos.
160
161 defaultlib=
162 Driver Joined
163 Default library to use instead of phobos.
164
165 dstartfiles
166 Driver
167 Do link the standard D startup files in the compilation.
168
169 -verbose
170 D Alias(v)
171
172 fall-instantiations
173 D
174 Generate code for all template instantiations.
175
176 fassert
177 D Var(flag_assert)
178 Generate code for assert contracts.
179
180 fbounds-check
181 D
182 ; Documented in common.opt
183
184 fbounds-check=
185 D Joined RejectNegative Enum(bounds_check) Var(flag_bounds_check)
186 -fbounds-check=[on|safeonly|off] Turn array bounds checks on, in @safe code only, or off.
187
188 Enum
189 Name(bounds_check) Type(int) UnknownError(unknown array bounds setting %qs)
190
191 EnumValue
192 Enum(bounds_check) String(off) Value(0)
193
194 EnumValue
195 Enum(bounds_check) String(safeonly) Value(1)
196
197 EnumValue
198 Enum(bounds_check) String(on) Value(2)
199
200 ; Generates a secondary ModuleInfo symbol for linking in unittests
201 fbuilding-libphobos-tests
202 D Undocumented Var(flag_building_libphobos_tests)
203
204 fbuiltin
205 D Var(flag_no_builtin, 0)
206 ; Documented in C
207
208 fdebug
209 D
210 Compile in debug code.
211
212 fdebug=
213 D Joined RejectNegative
214 -fdebug=<level|ident> Compile in debug code, code <= <level>, or code identified by <ident>.
215
216 fdoc
217 D
218 Generate documentation.
219
220 fdoc-dir=
221 D Joined RejectNegative
222 -fdoc-dir=<dir> Write documentation file to directory <dir>.
223
224 fdoc-file=
225 D Joined RejectNegative
226 -fdoc-file=<file> Write documentation to <file>.
227
228 fdoc-inc=
229 D Joined RejectNegative
230 -fdoc-inc=<file> Include a Ddoc macro <file>.
231
232 fdruntime
233 D
234 Assume that standard D runtime libraries and \"D main\" exist.
235
236 fdump-d-original
237 D
238 Display the frontend AST after parsing and semantic passes.
239
240 fignore-unknown-pragmas
241 D
242 Ignore unsupported pragmas.
243
244 finvariants
245 D Var(flag_invariants)
246 Generate code for class invariant contracts.
247
248 fmain
249 D RejectNegative
250 Generate a default D main() function when compiling.
251
252 fmodule-file=
253 D Joined RejectNegative
254 -fmodule-file=<package.module>=<filespec> use <filespec> as source file for <package.module>.
255
256 fmoduleinfo
257 D Var(flag_moduleinfo)
258 Generate ModuleInfo struct for output module.
259
260 fonly=
261 D Joined RejectNegative
262 Process all modules specified on the command line, but only generate code for the module specified by the argument.
263
264 fpostconditions
265 D Var(flag_postconditions)
266 Generate code for postcondition contracts.
267
268 fpreconditions
269 D Var(flag_preconditions)
270 Generate code for precondition contracts.
271
272 frelease
273 D
274 Compile release version.
275
276 frtti
277 D
278 ; Documented in C
279
280 fswitch-errors
281 D Var(flag_switch_errors)
282 Generate code for switches without a default case.
283
284 ftransition=all
285 D RejectNegative
286 List information on all language changes.
287
288 ftransition=checkimports
289 D RejectNegative
290 Give deprecation messages about -ftransition=import anomalies.
291
292 ftransition=complex
293 D RejectNegative
294 List all usages of complex or imaginary types.
295
296 ftransition=dip1000
297 D RejectNegative
298 Implement DIP1000: Scoped pointers (experimental).
299
300 ftransition=dip25
301 D RejectNegative
302 Implement DIP25: Sealed references (experimental).
303
304 ftransition=field
305 D RejectNegative
306 List all non-mutable fields which occupy an object instance.
307
308 ftransition=import
309 D RejectNegative
310 Revert to single phase name lookup.
311
312 ftransition=nogc
313 D RejectNegative
314 List all hidden GC allocations.
315
316 ftransition=tls
317 D RejectNegative
318 List all variables going into thread local storage.
319
320 funittest
321 D
322 Compile in unittest code.
323
324 fversion=
325 D Joined RejectNegative
326 -fversion=<level|ident> Compile in version code >= <level> or identified by <ident>.
327
328 fweak
329 D Var(flag_weak) Init(1)
330 Emit common-like symbols as weak symbols.
331
332 imultilib
333 D Joined Separate
334 ; Documented in C
335
336 iprefix
337 D Joined Separate
338 ; Documented in C
339
340 isysroot
341 D Joined Separate
342 ; Documented in C
343
344 isystem
345 D Joined Separate
346 ; Documented in C
347
348 nophoboslib
349 Driver
350 Do not link the standard D library in the compilation.
351
352 nostdinc
353 D
354 ; Documented in C
355
356 static-libphobos
357 Driver
358 Link the standard D library statically in the compilation.
359
360 shared-libphobos
361 Driver
362 Link the standard D library dynamically in the compilation.
363
364 v
365 D
366 ; Documented in C