]>
Commit | Line | Data |
---|---|---|
8179b067 | 1 | ; Options for the Fortran front end. |
8d9254fc | 2 | ; Copyright (C) 2003-2020 Free Software Foundation, Inc. |
6de9cd9a DN |
3 | ; |
4 | ; This file is part of GCC. | |
5 | ; | |
6 | ; GCC is free software; you can redistribute it and/or modify it under | |
7 | ; the terms of the GNU General Public License as published by the Free | |
d234d788 | 8 | ; Software Foundation; either version 3, or (at your option) any later |
6de9cd9a DN |
9 | ; version. |
10 | ; | |
11 | ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY | |
12 | ; WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 | ; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
14 | ; for more details. | |
15 | ; | |
16 | ; You should have received a copy of the GNU General Public License | |
d234d788 NC |
17 | ; along with GCC; see the file COPYING3. If not see |
18 | ; <http://www.gnu.org/licenses/>. | |
6de9cd9a | 19 | |
0b026622 | 20 | ; See the GCC internals manual for a description of this file's format. |
6de9cd9a DN |
21 | |
22 | ; Please try to keep this file in ASCII collating order. | |
23 | ||
24 | Language | |
7f26dfa3 | 25 | Fortran |
6de9cd9a | 26 | |
e200444e JM |
27 | -all-warnings |
28 | Fortran Alias(Wall) | |
29 | ||
30 | -assert | |
31 | Fortran Separate Alias(A) | |
32 | ||
33 | -assert= | |
34 | Fortran Joined Alias(A) | |
35 | ||
36 | -comments | |
37 | Fortran Alias(C) | |
38 | ||
39 | -comments-in-macros | |
40 | Fortran Alias(CC) | |
41 | ||
42 | -define-macro | |
43 | Fortran Separate Alias(D) | |
44 | ||
45 | -define-macro= | |
46 | Fortran Joined Alias(D) | |
47 | ||
48 | -dependencies | |
49 | Fortran Alias(M) | |
50 | ||
51 | -dump | |
52 | Fortran Separate Alias(d) | |
53 | ||
54 | -dump= | |
55 | Fortran Joined Alias(d) | |
56 | ||
57 | -include-barrier | |
58 | Fortran Alias(I, -) | |
59 | ||
60 | -include-directory | |
61 | Fortran Separate Alias(I) | |
62 | ||
63 | -include-directory= | |
64 | Fortran Joined Alias(I) | |
65 | ||
66 | -include-directory-after | |
67 | Fortran Separate Alias(idirafter) | |
68 | ||
69 | -include-directory-after= | |
70 | Fortran Joined Alias(idirafter) | |
71 | ||
72 | -include-prefix | |
73 | Fortran Separate Alias(iprefix) | |
74 | ||
75 | -include-prefix= | |
76 | Fortran JoinedOrMissing Alias(iprefix) | |
77 | ||
78 | -no-line-commands | |
79 | Fortran Alias(P) | |
80 | ||
81 | -no-standard-includes | |
82 | Fortran Alias(nostdinc) | |
83 | ||
84 | -output | |
85 | Fortran Separate Alias(o) | |
86 | ||
87 | -output= | |
88 | Fortran Joined Alias(o) | |
89 | ||
90 | -preprocess | |
91 | Fortran Undocumented Alias(E) | |
92 | ||
93 | -print-missing-file-dependencies | |
94 | Fortran Alias(MG) | |
95 | ||
96 | -trace-includes | |
97 | Fortran Alias(H) | |
98 | ||
99 | -undefine-macro | |
100 | Fortran Separate Alias(U) | |
101 | ||
102 | -undefine-macro= | |
103 | Fortran Joined Alias(U) | |
104 | ||
105 | -user-dependencies | |
106 | Fortran Alias(MM) | |
107 | ||
108 | -verbose | |
109 | Fortran Alias(v) | |
110 | ||
111 | -write-dependencies | |
112 | Fortran NoDriverArg Separate Alias(MD) | |
113 | ||
114 | -write-user-dependencies | |
115 | Fortran NoDriverArg Separate Alias(MMD) | |
116 | ||
670637ee DF |
117 | A |
118 | Fortran Joined Separate | |
119 | ; Documented in C | |
120 | ||
121 | C | |
122 | Fortran | |
123 | ; Documented in C | |
124 | ||
125 | CC | |
126 | Fortran | |
127 | ; Documented in C | |
128 | ||
129 | D | |
130 | Fortran Joined Separate | |
131 | ; Documented in C | |
132 | ||
133 | E | |
134 | Fortran Undocumented | |
135 | ||
136 | H | |
137 | Fortran | |
138 | ; Documented in C | |
139 | ||
6de9cd9a | 140 | I |
3d39d415 | 141 | Fortran Joined Separate |
9a0f3e86 | 142 | ; Documented in C |
6de9cd9a DN |
143 | |
144 | J | |
3d39d415 | 145 | Fortran Joined Separate |
a7b2e184 | 146 | -J<directory> Put MODULE files in 'directory'. |
6de9cd9a | 147 | |
d8ddea40 DF |
148 | M |
149 | Fortran | |
150 | ; Documented in C | |
151 | ||
c878765b | 152 | MD |
ca865c2b | 153 | Fortran Separate NoDriverArg |
d8ddea40 DF |
154 | ; Documented in C |
155 | ||
156 | MF | |
157 | Fortran Joined Separate | |
158 | ; Documented in C | |
159 | ||
160 | MG | |
161 | Fortran | |
162 | ; Documented in C | |
163 | ||
164 | MM | |
165 | Fortran | |
166 | ; Documented in C | |
167 | ||
c878765b | 168 | MMD |
ca865c2b | 169 | Fortran Separate NoDriverArg |
d8ddea40 DF |
170 | ; Documented in C |
171 | ||
172 | MP | |
173 | Fortran | |
174 | ; Documented in C | |
175 | ||
176 | MT | |
177 | Fortran Joined Separate | |
178 | ; Documented in C | |
179 | ||
180 | MQ | |
181 | Fortran Joined Separate | |
182 | ; Documented in C | |
183 | ||
670637ee DF |
184 | P |
185 | Fortran | |
186 | ; Documented in C | |
187 | ||
188 | U | |
189 | Fortran Joined Separate | |
190 | ; Documented in C | |
191 | ||
6de9cd9a | 192 | Wall |
4428e682 | 193 | Fortran |
6de9cd9a DN |
194 | ; Documented in C |
195 | ||
196 | Waliasing | |
73e42eef | 197 | Fortran Warning Var(warn_aliasing) LangEnabledBy(Fortran,Wall) |
a7b2e184 | 198 | Warn about possible aliasing of dummy arguments. |
6de9cd9a | 199 | |
f613cea7 | 200 | Walign-commons |
73e42eef | 201 | Fortran Warning Var(warn_align_commons) Init(1) |
a7b2e184 | 202 | Warn about alignment of COMMON blocks. |
f613cea7 | 203 | |
3fbab549 | 204 | Wampersand |
73e42eef | 205 | Fortran Warning Var(warn_ampersand) LangEnabledBy(Fortran,Wall || Wpedantic) |
a7b2e184 | 206 | Warn about missing ampersand in continued character constants. |
3fbab549 | 207 | |
bdfd2ff0 | 208 | Warray-temporaries |
73e42eef | 209 | Fortran Warning Var(warn_array_temporaries) |
a7b2e184 | 210 | Warn about creation of array temporaries. |
bdfd2ff0 | 211 | |
3df19fa0 | 212 | Wargument-mismatch |
e0b9e5f9 TK |
213 | Fortran WarnRemoved |
214 | Does nothing. Preserved for backward compatibility. | |
3df19fa0 | 215 | |
0e193637 | 216 | Wc-binding-type |
4daa149b | 217 | Fortran Var(warn_c_binding_type) Warning LangEnabledBy(Fortran,Wall) |
a7b2e184 | 218 | Warn if the type of a variable might be not interoperable with C. |
0e193637 | 219 | |
e8ff5196 TB |
220 | Wdate-time |
221 | Fortran | |
222 | ; Documented in C | |
223 | ||
0b30ba3b | 224 | Wcharacter-truncation |
a96c39ea | 225 | Fortran Var(warn_character_truncation) Warning LangEnabledBy(Fortran,Wall) |
a7b2e184 | 226 | Warn about truncated character expressions. |
0b30ba3b | 227 | |
cf21551e | 228 | Wcompare-reals |
73e42eef | 229 | Fortran Warning Var(warn_compare_reals) LangEnabledBy(Fortran,Wextra) |
a7b2e184 | 230 | Warn about equality comparisons involving REAL or COMPLEX expressions. |
cf21551e | 231 | |
6de9cd9a | 232 | Wconversion |
4daa149b | 233 | Fortran Var(warn_conversion) Warning LangEnabledBy(Fortran,Wall) |
9a0f3e86 | 234 | ; Documented in C |
6de9cd9a | 235 | |
daf8c6f0 | 236 | Wconversion-extra |
4daa149b | 237 | Fortran Var(warn_conversion_extra) Warning |
a7b2e184 | 238 | Warn about most implicit conversions. |
daf8c6f0 | 239 | |
15e23330 TK |
240 | Wdo-subscript |
241 | Fortran Var(warn_do_subscript) Warning LangEnabledBy(Fortran,Wextra) | |
04620f22 | 242 | Warn about possibly incorrect subscripts in do loops. |
15e23330 | 243 | |
72ac1c07 TK |
244 | Wextra |
245 | Fortran Warning | |
73e42eef | 246 | ; Documented in common |
72ac1c07 | 247 | |
d88412fc TK |
248 | Wfrontend-loop-interchange |
249 | Fortran Var(flag_warn_frontend_loop_interchange) | |
250 | Warn if loops have been interchanged. | |
251 | ||
51a30b32 | 252 | Wfunction-elimination |
6457b1f0 | 253 | Fortran Warning Var(warn_function_elimination) LangEnabledBy(Fortran,Wextra) |
a7b2e184 | 254 | Warn about function call elimination. |
51a30b32 | 255 | |
6de9cd9a | 256 | Wimplicit-interface |
73e42eef | 257 | Fortran Warning Var(warn_implicit_interface) |
a7b2e184 | 258 | Warn about calls with implicit interface. |
6de9cd9a | 259 | |
ca071303 | 260 | Wimplicit-procedure |
73e42eef | 261 | Fortran Warning Var(warn_implicit_procedure) |
a7b2e184 | 262 | Warn about called procedures not explicitly declared. |
ca071303 | 263 | |
c219aeb7 TK |
264 | Winteger-division |
265 | Fortran Warning Var(warn_integer_division) LangEnabledBy(Fortran,Wall) | |
a7b2e184 | 266 | Warn about constant integer divisions with truncated results. |
c219aeb7 | 267 | |
6de9cd9a | 268 | Wline-truncation |
aecfd035 | 269 | Fortran Warning Var(warn_line_truncation) LangEnabledBy(Fortran,Wall) Init(-1) |
a7b2e184 | 270 | Warn about truncated source lines. |
6de9cd9a | 271 | |
c3005b0f | 272 | Wintrinsics-std |
4daa149b | 273 | Fortran Var(warn_intrinsics_std) Warning LangEnabledBy(Fortran,Wall) |
a7b2e184 | 274 | Warn on intrinsics not part of the selected standard. |
b7892582 | 275 | |
73e42eef TB |
276 | Wmaybe-uninitialized |
277 | Fortran LangEnabledBy(Fortran,Wall) | |
278 | ; Documented in common.opt | |
279 | ||
7c02f68b MLI |
280 | Wmissing-include-dirs |
281 | Fortran | |
282 | ; Documented in C/C++ | |
283 | ||
7e114fad | 284 | Wuse-without-only |
3aa34c1d | 285 | Fortran Var(warn_use_without_only) Warning |
a7b2e184 | 286 | Warn about USE statements that have no ONLY qualifier. |
7e114fad | 287 | |
8b5e1202 SO |
288 | Wopenmp-simd |
289 | Fortran | |
290 | ; Documented in C | |
291 | ||
91c4891a ME |
292 | Woverwrite-recursive |
293 | Fortran Warning Var(warn_overwrite_recursive) Init(1) | |
294 | Warn that -fno-automatic may break recursion. | |
295 | ||
16db2a6a TB |
296 | Wpedantic |
297 | Fortran | |
298 | ; Documented in common.opt | |
299 | ||
5a17346a | 300 | Wreal-q-constant |
73e42eef | 301 | Fortran Warning Var(warn_real_q_constant) LangEnabledBy(Fortran,Wall) |
a7b2e184 | 302 | Warn about real-literal-constants with 'q' exponent-letter. |
5a17346a | 303 | |
f1fb11f1 | 304 | Wrealloc-lhs |
73e42eef | 305 | Fortran Warning Var(warn_realloc_lhs) LangEnabledBy(Fortran,Wrealloc-lhs-all) |
a7b2e184 | 306 | Warn when a left-hand-side array variable is reallocated. |
f1fb11f1 TB |
307 | |
308 | Wrealloc-lhs-all | |
73e42eef | 309 | Fortran Warning Var(warn_realloc_lhs_all) |
a7b2e184 | 310 | Warn when a left-hand-side variable is reallocated. |
f1fb11f1 | 311 | |
f657024b | 312 | Wtarget-lifetime |
73e42eef | 313 | Fortran Warning Var(warn_target_lifetime) LangEnabledBy(Fortran,Wall) |
a7b2e184 | 314 | Warn if the pointer in a pointer assignment might outlive its target. |
f657024b | 315 | |
766d0c8c | 316 | Wreturn-type |
73e42eef | 317 | Fortran Warning LangEnabledBy(Fortran,Wall) |
766d0c8c DF |
318 | ; Documented in C |
319 | ||
6de9cd9a | 320 | Wsurprising |
73e42eef | 321 | Fortran Warning Var(warn_surprising) LangEnabledBy(Fortran,Wall) |
a7b2e184 | 322 | Warn about \"suspicious\" constructs. |
6de9cd9a | 323 | |
840bd9f7 | 324 | Wtabs |
27e51192 | 325 | Fortran Warning Var(warn_tabs) LangEnabledBy(Fortran,Wall || Wpedantic) |
a7b2e184 | 326 | Permit nonconforming uses of the tab character. |
840bd9f7 | 327 | |
1c122092 ML |
328 | Wundefined-do-loop |
329 | Fortran Warning Var(warn_undefined_do_loop) LangEnabledBy(Fortran,Wall) | |
330 | Warn about an invalid DO loop. | |
331 | ||
2d8b59df | 332 | Wunderflow |
73e42eef | 333 | Fortran Warning Var(warn_underflow) Init(1) |
a7b2e184 | 334 | Warn about underflow of numerical constant expressions. |
2d8b59df | 335 | |
73e42eef TB |
336 | Wuninitialized |
337 | Fortran LangEnabledBy(Fortran,Wall) | |
338 | ; Documented in common.opt | |
339 | ||
c3005b0f | 340 | Wintrinsic-shadow |
73e42eef | 341 | Fortran Warning Var(warn_intrinsic_shadow) LangEnabledBy(Fortran,Wall) |
a7b2e184 | 342 | Warn if a user-procedure has the same name as an intrinsic. |
c3005b0f | 343 | |
73e42eef TB |
344 | Wunused |
345 | LangEnabledBy(Fortran,Wall) | |
346 | ; Documented in common.opt | |
347 | ||
4ed44ccc | 348 | Wunused-dummy-argument |
73e42eef | 349 | Fortran Warning Var(warn_unused_dummy_argument) LangEnabledBy(Fortran,Wall) |
4ed44ccc DF |
350 | Warn about unused dummy arguments. |
351 | ||
0e533e50 | 352 | Wzerotrip |
73e42eef | 353 | Fortran Warning Var(warn_zerotrip) LangEnabledBy(Fortran,Wall) |
a7b2e184 | 354 | Warn about zero-trip DO loops. |
0e533e50 | 355 | |
670637ee | 356 | cpp |
6cfcf3ed | 357 | Fortran Negative(nocpp) |
a7b2e184 | 358 | Enable preprocessing. |
670637ee | 359 | |
6cfcf3ed | 360 | cpp= |
77ee7190 | 361 | Fortran Joined Negative(nocpp) Undocumented NoDWARFRecord |
6cfcf3ed JM |
362 | ; Internal option generated by specs from -cpp. |
363 | ||
670637ee DF |
364 | nocpp |
365 | Fortran Negative(cpp) | |
a7b2e184 | 366 | Disable preprocessing. |
670637ee DF |
367 | |
368 | d | |
369 | Fortran Joined | |
9a0f3e86 | 370 | ; Documented in common.opt |
670637ee | 371 | |
7a56096c TK |
372 | fallow-argument-mismatch |
373 | Fortran Var(flag_allow_argument_mismatch) LangEnabledBy(Fortran,std=legacy) | |
374 | Accept argument mismatches in procedure calls. | |
375 | ||
2757d5ec | 376 | faggressive-function-elimination |
c61819ff | 377 | Fortran Var(flag_aggressive_function_elimination) |
bd2c6270 | 378 | Eliminate multiple function invocations also for impure functions. |
2757d5ec | 379 | |
f613cea7 | 380 | falign-commons |
c61819ff | 381 | Fortran Var(flag_align_commons) Init(1) |
a7b2e184 | 382 | Enable alignment of COMMON blocks. |
f613cea7 | 383 | |
a23eec13 | 384 | fall-intrinsics |
c61819ff | 385 | Fortran RejectNegative Var(flag_all_intrinsics) |
a7b2e184 | 386 | All intrinsics procedures are available regardless of selected standard. |
a23eec13 | 387 | |
8dc63166 SK |
388 | fallow-invalid-boz |
389 | Fortran RejectNegative Var(flag_allow_invalid_boz) | |
c35a3046 | 390 | Allow a BOZ literal constant to appear in an invalid context and with X instead of Z. |
8dc63166 | 391 | |
e6472bce | 392 | fallow-leading-underscore |
c61819ff | 393 | Fortran Undocumented Var(flag_allow_leading_underscore) |
e6472bce FXC |
394 | ; For internal use only: allow the first character of symbol names to be an underscore |
395 | ||
ee5426a4 | 396 | fautomatic |
c61819ff | 397 | Fortran Var(flag_automatic) Init(1) |
a7b2e184 | 398 | Do not treat local variables and COMMON blocks as if they were named in SAVE statements. |
ee5426a4 | 399 | |
e0bcf78c | 400 | fbackslash |
c61819ff | 401 | Fortran Var(flag_backslash) |
a7b2e184 | 402 | Specify that backslash in string introduces an escape character. |
e0bcf78c | 403 | |
868d75db | 404 | fbacktrace |
c61819ff | 405 | Fortran Var(flag_backtrace) Init(1) |
a7b2e184 | 406 | Produce a backtrace when a runtime error is encountered. |
868d75db | 407 | |
5a0aad31 | 408 | fblas-matmul-limit= |
c61819ff | 409 | Fortran RejectNegative Joined UInteger Var(flag_blas_matmul_limit) Init(30) |
a7b2e184 | 410 | -fblas-matmul-limit=<n> Size of the smallest matrix for which matmul will use BLAS. |
5a0aad31 | 411 | |
0d52899f TB |
412 | fcheck-array-temporaries |
413 | Fortran | |
a7b2e184 | 414 | Produce a warning at runtime if a array temporary has been created for a procedure argument. |
0d52899f | 415 | |
f19626cf TB |
416 | fconvert= |
417 | Fortran RejectNegative Joined Enum(gfc_convert) Var(flag_convert) Init(GFC_FLAG_CONVERT_NATIVE) | |
b408e010 | 418 | -fconvert=<big-endian|little-endian|native|swap> The endianness used for unformatted files. |
3ae9eb27 | 419 | |
f19626cf | 420 | Enum |
bd2c6270 | 421 | Name(gfc_convert) Type(enum gfc_convert) UnknownError(Unrecognized option to endianness value: %qs) |
3ae9eb27 | 422 | |
f19626cf TB |
423 | EnumValue |
424 | Enum(gfc_convert) String(big-endian) Value(GFC_FLAG_CONVERT_BIG) | |
10612ddf | 425 | |
f19626cf TB |
426 | EnumValue |
427 | Enum(gfc_convert) String(little-endian) Value(GFC_FLAG_CONVERT_LITTLE) | |
428 | ||
429 | EnumValue | |
430 | Enum(gfc_convert) String(native) Value(GFC_FLAG_CONVERT_NATIVE) | |
431 | ||
432 | EnumValue | |
433 | Enum(gfc_convert) String(swap) Value(GFC_FLAG_CONVERT_SWAP) | |
10612ddf BM |
434 | |
435 | fcray-pointer | |
c61819ff | 436 | Fortran Var(flag_cray_pointer) |
a7b2e184 | 437 | Use the Cray Pointer extension. |
6de9cd9a | 438 | |
e655a6cc TK |
439 | fc-prototypes |
440 | Fortran Var(flag_c_prototypes) | |
441 | Generate C prototypes from BIND(C) declarations. | |
442 | ||
6328ce1f TK |
443 | fc-prototypes-external |
444 | Fortran Var(flag_c_prototypes_external) | |
445 | Generate C prototypes from non-BIND(C) external procedure definitions. | |
446 | ||
e0bcf78c | 447 | fd-lines-as-code |
7f26dfa3 | 448 | Fortran RejectNegative |
a7b2e184 | 449 | Ignore 'D' in column one in fixed form. |
e0bcf78c TS |
450 | |
451 | fd-lines-as-comments | |
7f26dfa3 | 452 | Fortran RejectNegative |
a7b2e184 | 453 | Treat lines with 'D' in column one as comments. |
e0bcf78c | 454 | |
f6288c24 | 455 | fdec |
f6d17ecd | 456 | Fortran Var(flag_dec) |
f6288c24 FR |
457 | Enable all DEC language extensions. |
458 | ||
17f62b7e JM |
459 | fdec-blank-format-item |
460 | Fortran Var(flag_dec_blank_format_item) | |
461 | Enable the use of blank format items in format strings. | |
462 | ||
2afeb1ca ME |
463 | fdec-char-conversions |
464 | Fortran Var(flag_dec_char_conversions) | |
465 | Enable the use of character literals in assignments and data statements | |
466 | for non-character variables. | |
467 | ||
7c74e813 JJ |
468 | fdec-include |
469 | Fortran Var(flag_dec_include) | |
470 | Enable legacy parsing of INCLUDE as statement. | |
471 | ||
88a8126a JB |
472 | fdec-format-defaults |
473 | Fortran Var(flag_dec_format_defaults) | |
474 | Enable default widths for i, f and g format specifiers. | |
475 | ||
c98583e9 FR |
476 | fdec-intrinsic-ints |
477 | Fortran Var(flag_dec_intrinsic_ints) | |
478 | Enable kind-specific variants of integer intrinsic functions. | |
479 | ||
8e8c2744 FR |
480 | fdec-math |
481 | Fortran Var(flag_dec_math) | |
482 | Enable legacy math intrinsics for compatibility. | |
483 | ||
f6288c24 | 484 | fdec-structure |
f6d17ecd | 485 | Fortran Var(flag_dec_structure) |
f6288c24 FR |
486 | Enable support for DEC STRUCTURE/RECORD. |
487 | ||
34d567d1 FR |
488 | fdec-static |
489 | Fortran Var(flag_dec_static) | |
490 | Enable DEC-style STATIC and AUTOMATIC attributes. | |
491 | ||
10612ddf | 492 | fdefault-double-8 |
203c7ebf | 493 | Fortran Var(flag_default_double) |
a7b2e184 | 494 | Set the default double precision kind to an 8 byte wide type. |
10612ddf BM |
495 | |
496 | fdefault-integer-8 | |
203c7ebf | 497 | Fortran Var(flag_default_integer) |
a7b2e184 | 498 | Set the default integer kind to an 8 byte wide type. |
10612ddf BM |
499 | |
500 | fdefault-real-8 | |
d16d81b5 | 501 | Fortran Var(flag_default_real_8) |
a7b2e184 | 502 | Set the default real kind to an 8 byte wide type. |
10612ddf | 503 | |
d16d81b5 JW |
504 | fdefault-real-10 |
505 | Fortran Var(flag_default_real_10) | |
506 | Set the default real kind to an 10 byte wide type. | |
507 | ||
508 | fdefault-real-16 | |
509 | Fortran Var(flag_default_real_16) | |
510 | Set the default real kind to an 16 byte wide type. | |
511 | ||
6de9cd9a | 512 | fdollar-ok |
c61819ff | 513 | Fortran Var(flag_dollar_ok) |
a7b2e184 | 514 | Allow dollar signs in entity names. |
6de9cd9a | 515 | |
ade2e403 TB |
516 | fdump-core |
517 | Fortran Ignore | |
518 | Does nothing. Preserved for backward compatibility. | |
519 | ||
1607a827 | 520 | fdump-fortran-original |
c61819ff | 521 | Fortran Var(flag_dump_fortran_original) |
a7b2e184 | 522 | Display the code tree after parsing. |
6de9cd9a | 523 | |
1607a827 | 524 | fdump-fortran-optimized |
c61819ff | 525 | Fortran Var(flag_dump_fortran_optimized) |
a7b2e184 | 526 | Display the code tree after front end optimization. |
1607a827 | 527 | |
5c6aa9a8 TK |
528 | fdump-fortran-global |
529 | Fortran Var(flag_dump_fortran_global) | |
530 | Display the global symbol table after parsing. | |
531 | ||
1607a827 | 532 | fdump-parse-tree |
c61819ff | 533 | Fortran Alias(fdump-fortran-original) |
a7b2e184 | 534 | Display the code tree after parsing; deprecated option. |
1607a827 | 535 | |
10612ddf | 536 | fexternal-blas |
c61819ff | 537 | Fortran Var(flag_external_blas) |
a7b2e184 | 538 | Specify that an external BLAS library should be used for matmul calls on large-size arrays. |
10612ddf | 539 | |
973ff4c0 | 540 | ff2c |
c61819ff | 541 | Fortran Var(flag_f2c) |
a7b2e184 | 542 | Use f2c calling convention. |
973ff4c0 | 543 | |
6de9cd9a | 544 | ffixed-form |
1005cc9c | 545 | Fortran RejectNegative |
a7b2e184 | 546 | Assume that the source file is fixed form. |
6de9cd9a | 547 | |
7bd5dad2 LK |
548 | ftest-forall-temp |
549 | Fortran Var(flag_test_forall_temp) Init(0) | |
02a7f8dc | 550 | Force creation of temporary to test infrequently-executed forall code. |
7bd5dad2 | 551 | |
f4347334 | 552 | finteger-4-integer-8 |
203c7ebf | 553 | Fortran RejectNegative Var(flag_integer4_kind,8) |
a7b2e184 | 554 | Interpret any INTEGER(4) as an INTEGER(8). |
f4347334 | 555 | |
31198773 | 556 | fintrinsic-modules-path |
f34dea03 | 557 | Fortran RejectNegative Separate |
a7b2e184 | 558 | Specify where to find the compiled intrinsic modules. |
f34dea03 JJ |
559 | |
560 | fintrinsic-modules-path= | |
561 | Fortran RejectNegative Joined | |
a7b2e184 | 562 | Specify where to find the compiled intrinsic modules. |
31198773 | 563 | |
f56c5d5d | 564 | ffixed-line-length-none |
203c7ebf | 565 | Fortran RejectNegative Var(flag_fixed_line_length,0) |
a7b2e184 | 566 | Allow arbitrary character line width in fixed mode. |
6de9cd9a | 567 | |
f56c5d5d | 568 | ffixed-line-length- |
203c7ebf | 569 | Fortran RejectNegative Joined UInteger Var(flag_fixed_line_length) Init(72) |
a7b2e184 | 570 | -ffixed-line-length-<n> Use n as character line width in fixed mode. |
6de9cd9a | 571 | |
f03d260a JJ |
572 | fpad-source |
573 | Fortran Var(flag_pad_source) Init(1) | |
574 | Pad shorter fixed form lines to line width with spaces. | |
575 | ||
10612ddf BM |
576 | ffpe-trap= |
577 | Fortran RejectNegative JoinedOrMissing | |
a7b2e184 | 578 | -ffpe-trap=[...] Stop on following floating point exceptions. |
10612ddf | 579 | |
fa86f4f9 TB |
580 | ffpe-summary= |
581 | Fortran RejectNegative JoinedOrMissing | |
a7b2e184 | 582 | -ffpe-summary=[...] Print summary of floating point exceptions. |
fa86f4f9 | 583 | |
10612ddf BM |
584 | ffree-form |
585 | Fortran RejectNegative | |
a7b2e184 | 586 | Assume that the source file is free form. |
10612ddf | 587 | |
16ab8e74 | 588 | ffree-line-length-none |
203c7ebf | 589 | Fortran RejectNegative Var(flag_free_line_length,0) |
a7b2e184 | 590 | Allow arbitrary character line width in free mode. |
16ab8e74 BF |
591 | |
592 | ffree-line-length- | |
203c7ebf | 593 | Fortran RejectNegative Joined UInteger Var(flag_free_line_length) Init(132) |
a7b2e184 | 594 | -ffree-line-length-<n> Use n as character line width in free mode. |
16ab8e74 | 595 | |
d88412fc TK |
596 | ffrontend-loop-interchange |
597 | Fortran Var(flag_frontend_loop_interchange) Init(-1) | |
598 | Try to interchange loops if profitable. | |
599 | ||
51a30b32 | 600 | ffrontend-optimize |
203c7ebf | 601 | Fortran Var(flag_frontend_optimize) Init(-1) |
a7b2e184 | 602 | Enable front end optimization. |
51a30b32 | 603 | |
10612ddf | 604 | fimplicit-none |
c61819ff | 605 | Fortran Var(flag_implicit_none) |
a7b2e184 | 606 | Specify that no implicit typing is allowed, unless overridden by explicit IMPLICIT statements. |
10612ddf | 607 | |
51b09ce3 AL |
608 | finit-character= |
609 | Fortran RejectNegative Joined UInteger | |
a7b2e184 | 610 | -finit-character=<n> Initialize local character variables to ASCII value n. |
51b09ce3 | 611 | |
7fc61626 FR |
612 | finit-derived |
613 | Fortran Var(flag_init_derived) | |
614 | Initialize components of derived type variables according to other init flags. | |
615 | ||
51b09ce3 AL |
616 | finit-integer= |
617 | Fortran RejectNegative Joined | |
a7b2e184 | 618 | -finit-integer=<n> Initialize local integer variables to n. |
51b09ce3 AL |
619 | |
620 | finit-local-zero | |
621 | Fortran | |
a7b2e184 | 622 | Initialize local variables to zero (from g77). |
51b09ce3 AL |
623 | |
624 | finit-logical= | |
625 | Fortran RejectNegative Joined | |
a7b2e184 | 626 | -finit-logical=<true|false> Initialize local logical variables. |
51b09ce3 AL |
627 | |
628 | finit-real= | |
f19626cf | 629 | Fortran RejectNegative ToLower Joined Enum(gfc_init_local_real) Var(flag_init_real) Init(GFC_INIT_REAL_OFF) |
a7b2e184 | 630 | -finit-real=<zero|snan|nan|inf|-inf> Initialize local real variables. |
f19626cf TB |
631 | |
632 | Enum | |
633 | Name(gfc_init_local_real) Type(enum gfc_init_local_real) UnknownError(Unrecognized option to floating-point init value: %qs) | |
634 | ||
635 | EnumValue | |
636 | Enum(gfc_init_local_real) String(zero) Value(GFC_INIT_REAL_ZERO) | |
637 | ||
638 | EnumValue | |
639 | Enum(gfc_init_local_real) String(snan) Value(GFC_INIT_REAL_SNAN) | |
640 | ||
641 | EnumValue | |
642 | Enum(gfc_init_local_real) String(nan) Value(GFC_INIT_REAL_NAN) | |
643 | ||
644 | EnumValue | |
645 | Enum(gfc_init_local_real) String(inf) Value(GFC_INIT_REAL_INF) | |
646 | ||
647 | EnumValue | |
648 | Enum(gfc_init_local_real) String(-inf) Value(GFC_INIT_REAL_NEG_INF) | |
51b09ce3 | 649 | |
95d27703 TK |
650 | finline-arg-packing |
651 | Fortran Var(flag_inline_arg_packing) Init(-1) | |
907343e8 | 652 | -finline-arg-packing Perform argument packing inline. |
95d27703 | 653 | |
f1abbf69 TK |
654 | finline-matmul-limit= |
655 | Fortran RejectNegative Joined UInteger Var(flag_inline_matmul_limit) Init(-1) | |
a7b2e184 | 656 | -finline-matmul-limit=<n> Specify the size of the largest matrix for which matmul will be inlined. |
f1abbf69 | 657 | |
63346ddb | 658 | fmax-array-constructor= |
c61819ff | 659 | Fortran RejectNegative Joined UInteger Var(flag_max_array_constructor) Init(65535) |
a7b2e184 | 660 | -fmax-array-constructor=<n> Maximum number of objects in an array constructor. |
63346ddb | 661 | |
6de9cd9a | 662 | fmax-identifier-length= |
7f26dfa3 | 663 | Fortran RejectNegative Joined UInteger |
a7b2e184 | 664 | -fmax-identifier-length=<n> Maximum identifier length. |
6de9cd9a | 665 | |
07b3bbf2 | 666 | fmax-subrecord-length= |
203c7ebf | 667 | Fortran RejectNegative Joined UInteger Var(flag_max_subrecord_length) |
a7b2e184 | 668 | -fmax-subrecord-length=<n> Maximum length for subrecords. |
07b3bbf2 | 669 | |
6de9cd9a | 670 | fmax-stack-var-size= |
203c7ebf | 671 | Fortran RejectNegative Joined UInteger Var(flag_max_stack_var_size) Init(-2) |
a7b2e184 | 672 | -fmax-stack-var-size=<n> Size in bytes of the largest array that will be put on the stack. |
6de9cd9a | 673 | |
c76f8d52 | 674 | fstack-arrays |
203c7ebf | 675 | Fortran Var(flag_stack_arrays) Init(-1) |
c76f8d52 MM |
676 | Put all local arrays on stack. |
677 | ||
654b6073 | 678 | fmodule-private |
c61819ff | 679 | Fortran Var(flag_module_private) |
654b6073 FXC |
680 | Set default accessibility of module entities to PRIVATE. |
681 | ||
41dbbb37 | 682 | fopenacc |
a0c88d06 | 683 | Fortran LTO |
41dbbb37 TS |
684 | ; Documented in C |
685 | ||
b6adbb9f NS |
686 | fopenacc-dim= |
687 | Fortran LTO Joined Var(flag_openacc_dims) | |
688 | ; Documented in C | |
689 | ||
10612ddf | 690 | fopenmp |
1506ae0e | 691 | Fortran LTO |
9a0f3e86 | 692 | ; Documented in C |
54554825 | 693 | |
6d7f7e0a TB |
694 | fopenmp-simd |
695 | Fortran | |
696 | ; Documented in C | |
697 | ||
6de9cd9a | 698 | fpack-derived |
c61819ff | 699 | Fortran Var(flag_pack_derived) |
a7b2e184 | 700 | Try to lay out derived types as compactly as possible. |
6de9cd9a | 701 | |
10612ddf BM |
702 | fpreprocessed |
703 | Fortran | |
9a0f3e86 | 704 | ; Documented in C |
10612ddf | 705 | |
72bd130e | 706 | fprotect-parens |
203c7ebf | 707 | Fortran Var(flag_protect_parens) Init(-1) |
a7b2e184 | 708 | Protect parentheses in expressions. |
72bd130e | 709 | |
facf0354 ML |
710 | fpre-include= |
711 | Fortran RejectNegative Joined Var(flag_pre_include) Undocumented | |
712 | Path to header file that should be pre-included before each compilation unit. | |
713 | ||
10612ddf | 714 | frange-check |
c61819ff | 715 | Fortran Var(flag_range_check) Init(1) |
a7b2e184 | 716 | Enable range checking during compilation. |
10612ddf | 717 | |
f4347334 | 718 | freal-4-real-8 |
203c7ebf | 719 | Fortran RejectNegative Var(flag_real4_kind,8) |
a7b2e184 | 720 | Interpret any REAL(4) as a REAL(8). |
f4347334 ZG |
721 | |
722 | freal-4-real-10 | |
203c7ebf | 723 | Fortran RejectNegative Var(flag_real4_kind,10) |
a7b2e184 | 724 | Interpret any REAL(4) as a REAL(10). |
f4347334 ZG |
725 | |
726 | freal-4-real-16 | |
203c7ebf | 727 | Fortran RejectNegative Var(flag_real4_kind,16) |
a7b2e184 | 728 | Interpret any REAL(4) as a REAL(16). |
f4347334 ZG |
729 | |
730 | freal-8-real-4 | |
203c7ebf | 731 | Fortran RejectNegative Var(flag_real8_kind,4) |
a7b2e184 | 732 | Interpret any REAL(8) as a REAL(4). |
f4347334 ZG |
733 | |
734 | freal-8-real-10 | |
203c7ebf | 735 | Fortran RejectNegative Var(flag_real8_kind,10) |
a7b2e184 | 736 | Interpret any REAL(8) as a REAL(10). |
f4347334 ZG |
737 | |
738 | freal-8-real-16 | |
203c7ebf | 739 | Fortran RejectNegative Var(flag_real8_kind,16) |
a7b2e184 | 740 | Interpret any REAL(8) as a REAL(16). |
f4347334 | 741 | |
597553ab | 742 | frealloc-lhs |
203c7ebf | 743 | Fortran Var(flag_realloc_lhs) Init(-1) |
a7b2e184 | 744 | Reallocate the LHS in assignments. |
597553ab | 745 | |
10612ddf | 746 | frecord-marker=4 |
203c7ebf | 747 | Fortran RejectNegative Var(flag_record_marker,4) |
a7b2e184 | 748 | Use a 4-byte record marker for unformatted files. |
10612ddf BM |
749 | |
750 | frecord-marker=8 | |
203c7ebf | 751 | Fortran RejectNegative Var(flag_record_marker,8) |
a7b2e184 | 752 | Use an 8-byte record marker for unformatted files. |
10612ddf | 753 | |
1e7de83b | 754 | frecursive |
c61819ff | 755 | Fortran Var(flag_recursive) |
a7b2e184 | 756 | Allocate local variables on the stack to allow indirect recursion. |
1e7de83b | 757 | |
6de9cd9a | 758 | frepack-arrays |
c61819ff | 759 | Fortran Var(flag_repack_arrays) |
a7b2e184 | 760 | Copy array sections into a contiguous block on procedure entry. |
6de9cd9a | 761 | |
f4d1d50a | 762 | fcoarray= |
f19626cf | 763 | Fortran RejectNegative Joined Enum(gfc_fcoarray) Var(flag_coarray) Init(GFC_FCOARRAY_NONE) |
a7b2e184 | 764 | -fcoarray=<none|single|lib> Specify which coarray parallelization should be used. |
f19626cf TB |
765 | |
766 | Enum | |
767 | Name(gfc_fcoarray) Type(enum gfc_fcoarray) UnknownError(Unrecognized option: %qs) | |
768 | ||
769 | EnumValue | |
770 | Enum(gfc_fcoarray) String(none) Value(GFC_FCOARRAY_NONE) | |
771 | ||
772 | EnumValue | |
773 | Enum(gfc_fcoarray) String(single) Value(GFC_FCOARRAY_SINGLE) | |
774 | ||
775 | EnumValue | |
776 | Enum(gfc_fcoarray) String(lib) Value(GFC_FCOARRAY_LIB) | |
f4d1d50a | 777 | |
d3d3011f FXC |
778 | fcheck= |
779 | Fortran RejectNegative JoinedOrMissing | |
a7b2e184 | 780 | -fcheck=[...] Specify which runtime checks are to be performed. |
d3d3011f | 781 | |
10612ddf | 782 | fsecond-underscore |
203c7ebf | 783 | Fortran Var(flag_second_underscore) Init(-1) |
a7b2e184 | 784 | Append a second underscore if the name already contains an underscore. |
2d7c7df6 | 785 | |
10612ddf | 786 | fshort-enums |
f0036cca | 787 | Fortran Var(flag_short_enums) |
cab129d1 | 788 | ; Documented in C |
944b8b35 | 789 | |
68d2e027 | 790 | fsign-zero |
c61819ff | 791 | Fortran Var(flag_sign_zero) Init(1) |
a7b2e184 | 792 | Apply negative sign to zero values. |
68d2e027 | 793 | |
ffeebc4f | 794 | ftail-call-workaround |
d4ecfa56 | 795 | Fortran Alias(ftail-call-workaround=,1,0) |
ffeebc4f JJ |
796 | |
797 | ftail-call-workaround= | |
798 | Fortran RejectNegative Joined UInteger IntegerRange(0, 2) Var(flag_tail_call_workaround) Init(1) | |
02fac244 | 799 | Disallow tail call optimization when a calling routine may have omitted character lengths. |
ffeebc4f | 800 | |
10612ddf | 801 | funderscoring |
c61819ff | 802 | Fortran Var(flag_underscoring) Init(1) |
a7b2e184 | 803 | Append underscores to externally visible names. |
6de9cd9a | 804 | |
71a7778c | 805 | fwhole-file |
9fa52231 TB |
806 | Fortran Ignore |
807 | Does nothing. Preserved for backward compatibility. | |
71a7778c | 808 | |
670637ee DF |
809 | fworking-directory |
810 | Fortran | |
811 | ; Documented in C | |
812 | ||
c3280643 DF |
813 | idirafter |
814 | Fortran Joined Separate | |
815 | ; Documented in C | |
816 | ||
670637ee DF |
817 | imultilib |
818 | Fortran Joined Separate | |
819 | ; Documented in C | |
820 | ||
821 | iprefix | |
822 | Fortran Joined Separate | |
823 | ; Documented in C | |
824 | ||
825 | iquote | |
826 | Fortran Joined Separate | |
827 | ; Documented in C | |
828 | ||
829 | isysroot | |
830 | Fortran Joined Separate | |
831 | ; Documented in C | |
832 | ||
833 | isystem | |
834 | Fortran Joined Separate | |
835 | ; Documented in C | |
836 | ||
837 | nostdinc | |
838 | Fortran | |
839 | ; Documented in C | |
840 | ||
841 | o | |
842 | Fortran Joined Separate | |
843 | ; Documented in common.opt | |
844 | ||
86db887a FXC |
845 | static-libgfortran |
846 | Fortran | |
a7b2e184 | 847 | Statically link the GNU Fortran helper library (libgfortran). |
86db887a | 848 | |
6de9cd9a | 849 | std=f2003 |
7f26dfa3 | 850 | Fortran |
a7b2e184 | 851 | Conform to the ISO Fortran 2003 standard. |
6de9cd9a | 852 | |
f489fba1 FXC |
853 | std=f2008 |
854 | Fortran | |
a7b2e184 | 855 | Conform to the ISO Fortran 2008 standard. |
f489fba1 | 856 | |
4650947d | 857 | std=f2008ts |
2e8d9212 | 858 | Fortran |
a7b2e184 | 859 | Conform to the ISO Fortran 2008 standard including TS 29113. |
2e8d9212 | 860 | |
8179b067 JB |
861 | std=f2018 |
862 | Fortran | |
863 | Conform to the ISO Fortran 2018 standard. | |
864 | ||
10612ddf BM |
865 | std=f95 |
866 | Fortran | |
a7b2e184 | 867 | Conform to the ISO Fortran 95 standard. |
10612ddf | 868 | |
6de9cd9a | 869 | std=gnu |
7f26dfa3 | 870 | Fortran |
a7b2e184 | 871 | Conform to nothing in particular. |
6de9cd9a | 872 | |
c0309c74 | 873 | std=legacy |
7f26dfa3 | 874 | Fortran |
a7b2e184 | 875 | Accept extensions to support legacy code. |
c0309c74 | 876 | |
670637ee DF |
877 | undef |
878 | Fortran | |
879 | ; Documented in C | |
880 | ||
881 | v | |
882 | Fortran | |
883 | ; Documented in C | |
884 | ||
6de9cd9a | 885 | ; This comment is to ensure we retain the blank line above. |