]>
Commit | Line | Data |
---|---|---|
6de9cd9a | 1 | ; Options for the Fortran 95 front end. |
5624e564 | 2 | ; Copyright (C) 2003-2015 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 | |
0e193637 | 212 | Wc-binding-type |
4daa149b | 213 | Fortran Var(warn_c_binding_type) Warning LangEnabledBy(Fortran,Wall) |
a7b2e184 | 214 | Warn if the type of a variable might be not interoperable with C. |
0e193637 | 215 | |
e8ff5196 TB |
216 | Wdate-time |
217 | Fortran | |
218 | ; Documented in C | |
219 | ||
0b30ba3b | 220 | Wcharacter-truncation |
a96c39ea | 221 | Fortran Var(warn_character_truncation) Warning LangEnabledBy(Fortran,Wall) |
a7b2e184 | 222 | Warn about truncated character expressions. |
0b30ba3b | 223 | |
cf21551e | 224 | Wcompare-reals |
73e42eef | 225 | Fortran Warning Var(warn_compare_reals) LangEnabledBy(Fortran,Wextra) |
a7b2e184 | 226 | Warn about equality comparisons involving REAL or COMPLEX expressions. |
cf21551e | 227 | |
6de9cd9a | 228 | Wconversion |
4daa149b | 229 | Fortran Var(warn_conversion) Warning LangEnabledBy(Fortran,Wall) |
9a0f3e86 | 230 | ; Documented in C |
6de9cd9a | 231 | |
daf8c6f0 | 232 | Wconversion-extra |
4daa149b | 233 | Fortran Var(warn_conversion_extra) Warning |
a7b2e184 | 234 | Warn about most implicit conversions. |
daf8c6f0 | 235 | |
72ac1c07 TK |
236 | Wextra |
237 | Fortran Warning | |
73e42eef | 238 | ; Documented in common |
72ac1c07 | 239 | |
51a30b32 | 240 | Wfunction-elimination |
73e42eef | 241 | Fortran Warning Var(warn_function_elimination) |
a7b2e184 | 242 | Warn about function call elimination. |
51a30b32 | 243 | |
6de9cd9a | 244 | Wimplicit-interface |
73e42eef | 245 | Fortran Warning Var(warn_implicit_interface) |
a7b2e184 | 246 | Warn about calls with implicit interface. |
6de9cd9a | 247 | |
ca071303 | 248 | Wimplicit-procedure |
73e42eef | 249 | Fortran Warning Var(warn_implicit_procedure) |
a7b2e184 | 250 | Warn about called procedures not explicitly declared. |
ca071303 | 251 | |
c219aeb7 TK |
252 | Winteger-division |
253 | Fortran Warning Var(warn_integer_division) LangEnabledBy(Fortran,Wall) | |
a7b2e184 | 254 | Warn about constant integer divisions with truncated results. |
c219aeb7 | 255 | |
6de9cd9a | 256 | Wline-truncation |
aecfd035 | 257 | Fortran Warning Var(warn_line_truncation) LangEnabledBy(Fortran,Wall) Init(-1) |
a7b2e184 | 258 | Warn about truncated source lines. |
6de9cd9a | 259 | |
c3005b0f | 260 | Wintrinsics-std |
4daa149b | 261 | Fortran Var(warn_intrinsics_std) Warning LangEnabledBy(Fortran,Wall) |
a7b2e184 | 262 | Warn on intrinsics not part of the selected standard. |
b7892582 | 263 | |
73e42eef TB |
264 | Wmaybe-uninitialized |
265 | Fortran LangEnabledBy(Fortran,Wall) | |
266 | ; Documented in common.opt | |
267 | ||
7c02f68b MLI |
268 | Wmissing-include-dirs |
269 | Fortran | |
270 | ; Documented in C/C++ | |
271 | ||
7e114fad | 272 | Wuse-without-only |
3aa34c1d | 273 | Fortran Var(warn_use_without_only) Warning |
a7b2e184 | 274 | Warn about USE statements that have no ONLY qualifier. |
7e114fad | 275 | |
8b5e1202 SO |
276 | Wopenmp-simd |
277 | Fortran | |
278 | ; Documented in C | |
279 | ||
16db2a6a TB |
280 | Wpedantic |
281 | Fortran | |
282 | ; Documented in common.opt | |
283 | ||
5a17346a | 284 | Wreal-q-constant |
73e42eef | 285 | Fortran Warning Var(warn_real_q_constant) LangEnabledBy(Fortran,Wall) |
a7b2e184 | 286 | Warn about real-literal-constants with 'q' exponent-letter. |
5a17346a | 287 | |
f1fb11f1 | 288 | Wrealloc-lhs |
73e42eef | 289 | Fortran Warning Var(warn_realloc_lhs) LangEnabledBy(Fortran,Wrealloc-lhs-all) |
a7b2e184 | 290 | Warn when a left-hand-side array variable is reallocated. |
f1fb11f1 TB |
291 | |
292 | Wrealloc-lhs-all | |
73e42eef | 293 | Fortran Warning Var(warn_realloc_lhs_all) |
a7b2e184 | 294 | Warn when a left-hand-side variable is reallocated. |
f1fb11f1 | 295 | |
f657024b | 296 | Wtarget-lifetime |
73e42eef | 297 | Fortran Warning Var(warn_target_lifetime) LangEnabledBy(Fortran,Wall) |
a7b2e184 | 298 | Warn if the pointer in a pointer assignment might outlive its target. |
f657024b | 299 | |
766d0c8c | 300 | Wreturn-type |
73e42eef | 301 | Fortran Warning LangEnabledBy(Fortran,Wall) |
766d0c8c DF |
302 | ; Documented in C |
303 | ||
6de9cd9a | 304 | Wsurprising |
73e42eef | 305 | Fortran Warning Var(warn_surprising) LangEnabledBy(Fortran,Wall) |
a7b2e184 | 306 | Warn about \"suspicious\" constructs. |
6de9cd9a | 307 | |
840bd9f7 | 308 | Wtabs |
27e51192 | 309 | Fortran Warning Var(warn_tabs) LangEnabledBy(Fortran,Wall || Wpedantic) |
a7b2e184 | 310 | Permit nonconforming uses of the tab character. |
840bd9f7 | 311 | |
2d8b59df | 312 | Wunderflow |
73e42eef | 313 | Fortran Warning Var(warn_underflow) Init(1) |
a7b2e184 | 314 | Warn about underflow of numerical constant expressions. |
2d8b59df | 315 | |
73e42eef TB |
316 | Wuninitialized |
317 | Fortran LangEnabledBy(Fortran,Wall) | |
318 | ; Documented in common.opt | |
319 | ||
c3005b0f | 320 | Wintrinsic-shadow |
73e42eef | 321 | Fortran Warning Var(warn_intrinsic_shadow) LangEnabledBy(Fortran,Wall) |
a7b2e184 | 322 | Warn if a user-procedure has the same name as an intrinsic. |
c3005b0f | 323 | |
73e42eef TB |
324 | Wunused |
325 | LangEnabledBy(Fortran,Wall) | |
326 | ; Documented in common.opt | |
327 | ||
4ed44ccc | 328 | Wunused-dummy-argument |
73e42eef | 329 | Fortran Warning Var(warn_unused_dummy_argument) LangEnabledBy(Fortran,Wall) |
4ed44ccc DF |
330 | Warn about unused dummy arguments. |
331 | ||
0e533e50 | 332 | Wzerotrip |
73e42eef | 333 | Fortran Warning Var(warn_zerotrip) LangEnabledBy(Fortran,Wall) |
a7b2e184 | 334 | Warn about zero-trip DO loops. |
0e533e50 | 335 | |
670637ee | 336 | cpp |
6cfcf3ed | 337 | Fortran Negative(nocpp) |
a7b2e184 | 338 | Enable preprocessing. |
670637ee | 339 | |
6cfcf3ed | 340 | cpp= |
77ee7190 | 341 | Fortran Joined Negative(nocpp) Undocumented NoDWARFRecord |
6cfcf3ed JM |
342 | ; Internal option generated by specs from -cpp. |
343 | ||
670637ee DF |
344 | nocpp |
345 | Fortran Negative(cpp) | |
a7b2e184 | 346 | Disable preprocessing. |
670637ee DF |
347 | |
348 | d | |
349 | Fortran Joined | |
9a0f3e86 | 350 | ; Documented in common.opt |
670637ee | 351 | |
2757d5ec | 352 | faggressive-function-elimination |
c61819ff | 353 | Fortran Var(flag_aggressive_function_elimination) |
a7b2e184 | 354 | Eliminate multiple function invokations also for impure functions. |
2757d5ec | 355 | |
f613cea7 | 356 | falign-commons |
c61819ff | 357 | Fortran Var(flag_align_commons) Init(1) |
a7b2e184 | 358 | Enable alignment of COMMON blocks. |
f613cea7 | 359 | |
a23eec13 | 360 | fall-intrinsics |
c61819ff | 361 | Fortran RejectNegative Var(flag_all_intrinsics) |
a7b2e184 | 362 | All intrinsics procedures are available regardless of selected standard. |
a23eec13 | 363 | |
e6472bce | 364 | fallow-leading-underscore |
c61819ff | 365 | Fortran Undocumented Var(flag_allow_leading_underscore) |
e6472bce FXC |
366 | ; For internal use only: allow the first character of symbol names to be an underscore |
367 | ||
ee5426a4 | 368 | fautomatic |
c61819ff | 369 | Fortran Var(flag_automatic) Init(1) |
a7b2e184 | 370 | Do not treat local variables and COMMON blocks as if they were named in SAVE statements. |
ee5426a4 | 371 | |
e0bcf78c | 372 | fbackslash |
c61819ff | 373 | Fortran Var(flag_backslash) |
a7b2e184 | 374 | Specify that backslash in string introduces an escape character. |
e0bcf78c | 375 | |
868d75db | 376 | fbacktrace |
c61819ff | 377 | Fortran Var(flag_backtrace) Init(1) |
a7b2e184 | 378 | Produce a backtrace when a runtime error is encountered. |
868d75db | 379 | |
5a0aad31 | 380 | fblas-matmul-limit= |
c61819ff | 381 | Fortran RejectNegative Joined UInteger Var(flag_blas_matmul_limit) Init(30) |
a7b2e184 | 382 | -fblas-matmul-limit=<n> Size of the smallest matrix for which matmul will use BLAS. |
5a0aad31 | 383 | |
0d52899f TB |
384 | fcheck-array-temporaries |
385 | Fortran | |
a7b2e184 | 386 | Produce a warning at runtime if a array temporary has been created for a procedure argument. |
0d52899f | 387 | |
f19626cf TB |
388 | fconvert= |
389 | Fortran RejectNegative Joined Enum(gfc_convert) Var(flag_convert) Init(GFC_FLAG_CONVERT_NATIVE) | |
390 | -fconvert=<big-endian|little-endian|native|swap> The endianness used for unformatted files. | |
3ae9eb27 | 391 | |
f19626cf TB |
392 | Enum |
393 | Name(gfc_convert) Type(enum gfc_convert) UnknownError(Unrecognized option to endianess value: %qs) | |
3ae9eb27 | 394 | |
f19626cf TB |
395 | EnumValue |
396 | Enum(gfc_convert) String(big-endian) Value(GFC_FLAG_CONVERT_BIG) | |
10612ddf | 397 | |
f19626cf TB |
398 | EnumValue |
399 | Enum(gfc_convert) String(little-endian) Value(GFC_FLAG_CONVERT_LITTLE) | |
400 | ||
401 | EnumValue | |
402 | Enum(gfc_convert) String(native) Value(GFC_FLAG_CONVERT_NATIVE) | |
403 | ||
404 | EnumValue | |
405 | Enum(gfc_convert) String(swap) Value(GFC_FLAG_CONVERT_SWAP) | |
10612ddf BM |
406 | |
407 | fcray-pointer | |
c61819ff | 408 | Fortran Var(flag_cray_pointer) |
a7b2e184 | 409 | Use the Cray Pointer extension. |
6de9cd9a | 410 | |
e0bcf78c | 411 | fd-lines-as-code |
7f26dfa3 | 412 | Fortran RejectNegative |
a7b2e184 | 413 | Ignore 'D' in column one in fixed form. |
e0bcf78c TS |
414 | |
415 | fd-lines-as-comments | |
7f26dfa3 | 416 | Fortran RejectNegative |
a7b2e184 | 417 | Treat lines with 'D' in column one as comments. |
e0bcf78c | 418 | |
10612ddf | 419 | fdefault-double-8 |
203c7ebf | 420 | Fortran Var(flag_default_double) |
a7b2e184 | 421 | Set the default double precision kind to an 8 byte wide type. |
10612ddf BM |
422 | |
423 | fdefault-integer-8 | |
203c7ebf | 424 | Fortran Var(flag_default_integer) |
a7b2e184 | 425 | Set the default integer kind to an 8 byte wide type. |
10612ddf BM |
426 | |
427 | fdefault-real-8 | |
203c7ebf | 428 | Fortran Var(flag_default_real) |
a7b2e184 | 429 | Set the default real kind to an 8 byte wide type. |
10612ddf | 430 | |
6de9cd9a | 431 | fdollar-ok |
c61819ff | 432 | Fortran Var(flag_dollar_ok) |
a7b2e184 | 433 | Allow dollar signs in entity names. |
6de9cd9a | 434 | |
ade2e403 TB |
435 | fdump-core |
436 | Fortran Ignore | |
437 | Does nothing. Preserved for backward compatibility. | |
438 | ||
1607a827 | 439 | fdump-fortran-original |
c61819ff | 440 | Fortran Var(flag_dump_fortran_original) |
a7b2e184 | 441 | Display the code tree after parsing. |
6de9cd9a | 442 | |
1607a827 | 443 | fdump-fortran-optimized |
c61819ff | 444 | Fortran Var(flag_dump_fortran_optimized) |
a7b2e184 | 445 | Display the code tree after front end optimization. |
1607a827 TK |
446 | |
447 | fdump-parse-tree | |
c61819ff | 448 | Fortran Alias(fdump-fortran-original) |
a7b2e184 | 449 | Display the code tree after parsing; deprecated option. |
1607a827 | 450 | |
10612ddf | 451 | fexternal-blas |
c61819ff | 452 | Fortran Var(flag_external_blas) |
a7b2e184 | 453 | Specify that an external BLAS library should be used for matmul calls on large-size arrays. |
10612ddf | 454 | |
973ff4c0 | 455 | ff2c |
c61819ff | 456 | Fortran Var(flag_f2c) |
a7b2e184 | 457 | Use f2c calling convention. |
973ff4c0 | 458 | |
6de9cd9a | 459 | ffixed-form |
1005cc9c | 460 | Fortran RejectNegative |
a7b2e184 | 461 | Assume that the source file is fixed form. |
6de9cd9a | 462 | |
f4347334 | 463 | finteger-4-integer-8 |
203c7ebf | 464 | Fortran RejectNegative Var(flag_integer4_kind,8) |
a7b2e184 | 465 | Interpret any INTEGER(4) as an INTEGER(8). |
f4347334 | 466 | |
31198773 | 467 | fintrinsic-modules-path |
f34dea03 | 468 | Fortran RejectNegative Separate |
a7b2e184 | 469 | Specify where to find the compiled intrinsic modules. |
f34dea03 JJ |
470 | |
471 | fintrinsic-modules-path= | |
472 | Fortran RejectNegative Joined | |
a7b2e184 | 473 | Specify where to find the compiled intrinsic modules. |
31198773 | 474 | |
f56c5d5d | 475 | ffixed-line-length-none |
203c7ebf | 476 | Fortran RejectNegative Var(flag_fixed_line_length,0) |
a7b2e184 | 477 | Allow arbitrary character line width in fixed mode. |
6de9cd9a | 478 | |
f56c5d5d | 479 | ffixed-line-length- |
203c7ebf | 480 | Fortran RejectNegative Joined UInteger Var(flag_fixed_line_length) Init(72) |
a7b2e184 | 481 | -ffixed-line-length-<n> Use n as character line width in fixed mode. |
6de9cd9a | 482 | |
10612ddf BM |
483 | ffpe-trap= |
484 | Fortran RejectNegative JoinedOrMissing | |
a7b2e184 | 485 | -ffpe-trap=[...] Stop on following floating point exceptions. |
10612ddf | 486 | |
fa86f4f9 TB |
487 | ffpe-summary= |
488 | Fortran RejectNegative JoinedOrMissing | |
a7b2e184 | 489 | -ffpe-summary=[...] Print summary of floating point exceptions. |
fa86f4f9 | 490 | |
10612ddf BM |
491 | ffree-form |
492 | Fortran RejectNegative | |
a7b2e184 | 493 | Assume that the source file is free form. |
10612ddf | 494 | |
16ab8e74 | 495 | ffree-line-length-none |
203c7ebf | 496 | Fortran RejectNegative Var(flag_free_line_length,0) |
a7b2e184 | 497 | Allow arbitrary character line width in free mode. |
16ab8e74 BF |
498 | |
499 | ffree-line-length- | |
203c7ebf | 500 | Fortran RejectNegative Joined UInteger Var(flag_free_line_length) Init(132) |
a7b2e184 | 501 | -ffree-line-length-<n> Use n as character line width in free mode. |
16ab8e74 | 502 | |
51a30b32 | 503 | ffrontend-optimize |
203c7ebf | 504 | Fortran Var(flag_frontend_optimize) Init(-1) |
a7b2e184 | 505 | Enable front end optimization. |
51a30b32 | 506 | |
10612ddf | 507 | fimplicit-none |
c61819ff | 508 | Fortran Var(flag_implicit_none) |
a7b2e184 | 509 | Specify that no implicit typing is allowed, unless overridden by explicit IMPLICIT statements. |
10612ddf | 510 | |
51b09ce3 AL |
511 | finit-character= |
512 | Fortran RejectNegative Joined UInteger | |
a7b2e184 | 513 | -finit-character=<n> Initialize local character variables to ASCII value n. |
51b09ce3 AL |
514 | |
515 | finit-integer= | |
516 | Fortran RejectNegative Joined | |
a7b2e184 | 517 | -finit-integer=<n> Initialize local integer variables to n. |
51b09ce3 AL |
518 | |
519 | finit-local-zero | |
520 | Fortran | |
a7b2e184 | 521 | Initialize local variables to zero (from g77). |
51b09ce3 AL |
522 | |
523 | finit-logical= | |
524 | Fortran RejectNegative Joined | |
a7b2e184 | 525 | -finit-logical=<true|false> Initialize local logical variables. |
51b09ce3 AL |
526 | |
527 | finit-real= | |
f19626cf | 528 | Fortran RejectNegative ToLower Joined Enum(gfc_init_local_real) Var(flag_init_real) Init(GFC_INIT_REAL_OFF) |
a7b2e184 | 529 | -finit-real=<zero|snan|nan|inf|-inf> Initialize local real variables. |
f19626cf TB |
530 | |
531 | Enum | |
532 | Name(gfc_init_local_real) Type(enum gfc_init_local_real) UnknownError(Unrecognized option to floating-point init value: %qs) | |
533 | ||
534 | EnumValue | |
535 | Enum(gfc_init_local_real) String(zero) Value(GFC_INIT_REAL_ZERO) | |
536 | ||
537 | EnumValue | |
538 | Enum(gfc_init_local_real) String(snan) Value(GFC_INIT_REAL_SNAN) | |
539 | ||
540 | EnumValue | |
541 | Enum(gfc_init_local_real) String(nan) Value(GFC_INIT_REAL_NAN) | |
542 | ||
543 | EnumValue | |
544 | Enum(gfc_init_local_real) String(inf) Value(GFC_INIT_REAL_INF) | |
545 | ||
546 | EnumValue | |
547 | Enum(gfc_init_local_real) String(-inf) Value(GFC_INIT_REAL_NEG_INF) | |
51b09ce3 | 548 | |
f1abbf69 TK |
549 | finline-matmul-limit= |
550 | Fortran RejectNegative Joined UInteger Var(flag_inline_matmul_limit) Init(-1) | |
a7b2e184 | 551 | -finline-matmul-limit=<n> Specify the size of the largest matrix for which matmul will be inlined. |
f1abbf69 | 552 | |
63346ddb | 553 | fmax-array-constructor= |
c61819ff | 554 | Fortran RejectNegative Joined UInteger Var(flag_max_array_constructor) Init(65535) |
a7b2e184 | 555 | -fmax-array-constructor=<n> Maximum number of objects in an array constructor. |
63346ddb | 556 | |
6de9cd9a | 557 | fmax-identifier-length= |
7f26dfa3 | 558 | Fortran RejectNegative Joined UInteger |
a7b2e184 | 559 | -fmax-identifier-length=<n> Maximum identifier length. |
6de9cd9a | 560 | |
07b3bbf2 | 561 | fmax-subrecord-length= |
203c7ebf | 562 | Fortran RejectNegative Joined UInteger Var(flag_max_subrecord_length) |
a7b2e184 | 563 | -fmax-subrecord-length=<n> Maximum length for subrecords. |
07b3bbf2 | 564 | |
6de9cd9a | 565 | fmax-stack-var-size= |
203c7ebf | 566 | Fortran RejectNegative Joined UInteger Var(flag_max_stack_var_size) Init(-2) |
a7b2e184 | 567 | -fmax-stack-var-size=<n> Size in bytes of the largest array that will be put on the stack. |
6de9cd9a | 568 | |
c76f8d52 | 569 | fstack-arrays |
203c7ebf | 570 | Fortran Var(flag_stack_arrays) Init(-1) |
c76f8d52 MM |
571 | Put all local arrays on stack. |
572 | ||
654b6073 | 573 | fmodule-private |
c61819ff | 574 | Fortran Var(flag_module_private) |
654b6073 FXC |
575 | Set default accessibility of module entities to PRIVATE. |
576 | ||
41dbbb37 | 577 | fopenacc |
a0c88d06 | 578 | Fortran LTO |
41dbbb37 TS |
579 | ; Documented in C |
580 | ||
10612ddf | 581 | fopenmp |
1506ae0e | 582 | Fortran LTO |
9a0f3e86 | 583 | ; Documented in C |
54554825 | 584 | |
6d7f7e0a TB |
585 | fopenmp-simd |
586 | Fortran | |
587 | ; Documented in C | |
588 | ||
6de9cd9a | 589 | fpack-derived |
c61819ff | 590 | Fortran Var(flag_pack_derived) |
a7b2e184 | 591 | Try to lay out derived types as compactly as possible. |
6de9cd9a | 592 | |
10612ddf BM |
593 | fpreprocessed |
594 | Fortran | |
9a0f3e86 | 595 | ; Documented in C |
10612ddf | 596 | |
72bd130e | 597 | fprotect-parens |
203c7ebf | 598 | Fortran Var(flag_protect_parens) Init(-1) |
a7b2e184 | 599 | Protect parentheses in expressions. |
72bd130e | 600 | |
10612ddf | 601 | frange-check |
c61819ff | 602 | Fortran Var(flag_range_check) Init(1) |
a7b2e184 | 603 | Enable range checking during compilation. |
10612ddf | 604 | |
f4347334 | 605 | freal-4-real-8 |
203c7ebf | 606 | Fortran RejectNegative Var(flag_real4_kind,8) |
a7b2e184 | 607 | Interpret any REAL(4) as a REAL(8). |
f4347334 ZG |
608 | |
609 | freal-4-real-10 | |
203c7ebf | 610 | Fortran RejectNegative Var(flag_real4_kind,10) |
a7b2e184 | 611 | Interpret any REAL(4) as a REAL(10). |
f4347334 ZG |
612 | |
613 | freal-4-real-16 | |
203c7ebf | 614 | Fortran RejectNegative Var(flag_real4_kind,16) |
a7b2e184 | 615 | Interpret any REAL(4) as a REAL(16). |
f4347334 ZG |
616 | |
617 | freal-8-real-4 | |
203c7ebf | 618 | Fortran RejectNegative Var(flag_real8_kind,4) |
a7b2e184 | 619 | Interpret any REAL(8) as a REAL(4). |
f4347334 ZG |
620 | |
621 | freal-8-real-10 | |
203c7ebf | 622 | Fortran RejectNegative Var(flag_real8_kind,10) |
a7b2e184 | 623 | Interpret any REAL(8) as a REAL(10). |
f4347334 ZG |
624 | |
625 | freal-8-real-16 | |
203c7ebf | 626 | Fortran RejectNegative Var(flag_real8_kind,16) |
a7b2e184 | 627 | Interpret any REAL(8) as a REAL(16). |
f4347334 | 628 | |
597553ab | 629 | frealloc-lhs |
203c7ebf | 630 | Fortran Var(flag_realloc_lhs) Init(-1) |
a7b2e184 | 631 | Reallocate the LHS in assignments. |
597553ab | 632 | |
10612ddf | 633 | frecord-marker=4 |
203c7ebf | 634 | Fortran RejectNegative Var(flag_record_marker,4) |
a7b2e184 | 635 | Use a 4-byte record marker for unformatted files. |
10612ddf BM |
636 | |
637 | frecord-marker=8 | |
203c7ebf | 638 | Fortran RejectNegative Var(flag_record_marker,8) |
a7b2e184 | 639 | Use an 8-byte record marker for unformatted files. |
10612ddf | 640 | |
1e7de83b | 641 | frecursive |
c61819ff | 642 | Fortran Var(flag_recursive) |
a7b2e184 | 643 | Allocate local variables on the stack to allow indirect recursion. |
1e7de83b | 644 | |
6de9cd9a | 645 | frepack-arrays |
c61819ff | 646 | Fortran Var(flag_repack_arrays) |
a7b2e184 | 647 | Copy array sections into a contiguous block on procedure entry. |
6de9cd9a | 648 | |
f4d1d50a | 649 | fcoarray= |
f19626cf | 650 | Fortran RejectNegative Joined Enum(gfc_fcoarray) Var(flag_coarray) Init(GFC_FCOARRAY_NONE) |
a7b2e184 | 651 | -fcoarray=<none|single|lib> Specify which coarray parallelization should be used. |
f19626cf TB |
652 | |
653 | Enum | |
654 | Name(gfc_fcoarray) Type(enum gfc_fcoarray) UnknownError(Unrecognized option: %qs) | |
655 | ||
656 | EnumValue | |
657 | Enum(gfc_fcoarray) String(none) Value(GFC_FCOARRAY_NONE) | |
658 | ||
659 | EnumValue | |
660 | Enum(gfc_fcoarray) String(single) Value(GFC_FCOARRAY_SINGLE) | |
661 | ||
662 | EnumValue | |
663 | Enum(gfc_fcoarray) String(lib) Value(GFC_FCOARRAY_LIB) | |
f4d1d50a | 664 | |
d3d3011f FXC |
665 | fcheck= |
666 | Fortran RejectNegative JoinedOrMissing | |
a7b2e184 | 667 | -fcheck=[...] Specify which runtime checks are to be performed. |
d3d3011f | 668 | |
10612ddf | 669 | fsecond-underscore |
203c7ebf | 670 | Fortran Var(flag_second_underscore) Init(-1) |
a7b2e184 | 671 | Append a second underscore if the name already contains an underscore. |
2d7c7df6 | 672 | |
10612ddf | 673 | fshort-enums |
f0036cca | 674 | Fortran Var(flag_short_enums) |
cab129d1 | 675 | ; Documented in C |
944b8b35 | 676 | |
68d2e027 | 677 | fsign-zero |
c61819ff | 678 | Fortran Var(flag_sign_zero) Init(1) |
a7b2e184 | 679 | Apply negative sign to zero values. |
68d2e027 | 680 | |
10612ddf | 681 | funderscoring |
c61819ff | 682 | Fortran Var(flag_underscoring) Init(1) |
a7b2e184 | 683 | Append underscores to externally visible names. |
6de9cd9a | 684 | |
71a7778c | 685 | fwhole-file |
9fa52231 TB |
686 | Fortran Ignore |
687 | Does nothing. Preserved for backward compatibility. | |
71a7778c | 688 | |
670637ee DF |
689 | fworking-directory |
690 | Fortran | |
691 | ; Documented in C | |
692 | ||
c3280643 DF |
693 | idirafter |
694 | Fortran Joined Separate | |
695 | ; Documented in C | |
696 | ||
670637ee DF |
697 | imultilib |
698 | Fortran Joined Separate | |
699 | ; Documented in C | |
700 | ||
701 | iprefix | |
702 | Fortran Joined Separate | |
703 | ; Documented in C | |
704 | ||
705 | iquote | |
706 | Fortran Joined Separate | |
707 | ; Documented in C | |
708 | ||
709 | isysroot | |
710 | Fortran Joined Separate | |
711 | ; Documented in C | |
712 | ||
713 | isystem | |
714 | Fortran Joined Separate | |
715 | ; Documented in C | |
716 | ||
717 | nostdinc | |
718 | Fortran | |
719 | ; Documented in C | |
720 | ||
721 | o | |
722 | Fortran Joined Separate | |
723 | ; Documented in common.opt | |
724 | ||
86db887a FXC |
725 | static-libgfortran |
726 | Fortran | |
a7b2e184 | 727 | Statically link the GNU Fortran helper library (libgfortran). |
86db887a | 728 | |
6de9cd9a | 729 | std=f2003 |
7f26dfa3 | 730 | Fortran |
a7b2e184 | 731 | Conform to the ISO Fortran 2003 standard. |
6de9cd9a | 732 | |
f489fba1 FXC |
733 | std=f2008 |
734 | Fortran | |
a7b2e184 | 735 | Conform to the ISO Fortran 2008 standard. |
f489fba1 | 736 | |
4650947d | 737 | std=f2008ts |
2e8d9212 | 738 | Fortran |
a7b2e184 | 739 | Conform to the ISO Fortran 2008 standard including TS 29113. |
2e8d9212 | 740 | |
10612ddf BM |
741 | std=f95 |
742 | Fortran | |
a7b2e184 | 743 | Conform to the ISO Fortran 95 standard. |
10612ddf | 744 | |
6de9cd9a | 745 | std=gnu |
7f26dfa3 | 746 | Fortran |
a7b2e184 | 747 | Conform to nothing in particular. |
6de9cd9a | 748 | |
c0309c74 | 749 | std=legacy |
7f26dfa3 | 750 | Fortran |
a7b2e184 | 751 | Accept extensions to support legacy code. |
c0309c74 | 752 | |
670637ee DF |
753 | undef |
754 | Fortran | |
755 | ; Documented in C | |
756 | ||
757 | v | |
758 | Fortran | |
759 | ; Documented in C | |
760 | ||
6de9cd9a | 761 | ; This comment is to ensure we retain the blank line above. |