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