]> gcc.gnu.org Git - gcc.git/blame - gcc/fortran/lang.opt
ifcvt: Handle multiple rewired regs and refactor noce_convert_multiple_sets
[gcc.git] / gcc / fortran / lang.opt
CommitLineData
8179b067 1; Options for the Fortran front end.
a945c346 2; Copyright (C) 2003-2024 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 212Wargument-mismatch
e0b9e5f9
TK
213Fortran WarnRemoved
214Does nothing. Preserved for backward compatibility.
3df19fa0 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
15e23330
TK
240Wdo-subscript
241Fortran Var(warn_do_subscript) Warning LangEnabledBy(Fortran,Wextra)
04620f22 242Warn about possibly incorrect subscripts in do loops.
15e23330 243
72ac1c07
TK
244Wextra
245Fortran Warning
73e42eef 246; Documented in common
72ac1c07 247
d88412fc
TK
248Wfrontend-loop-interchange
249Fortran Var(flag_warn_frontend_loop_interchange)
250Warn if loops have been interchanged.
251
51a30b32 252Wfunction-elimination
6457b1f0 253Fortran Warning Var(warn_function_elimination) LangEnabledBy(Fortran,Wextra)
a7b2e184 254Warn about function call elimination.
51a30b32 255
6de9cd9a 256Wimplicit-interface
73e42eef 257Fortran Warning Var(warn_implicit_interface)
a7b2e184 258Warn about calls with implicit interface.
6de9cd9a 259
ca071303 260Wimplicit-procedure
73e42eef 261Fortran Warning Var(warn_implicit_procedure)
a7b2e184 262Warn about called procedures not explicitly declared.
ca071303 263
c219aeb7
TK
264Winteger-division
265Fortran Warning Var(warn_integer_division) LangEnabledBy(Fortran,Wall)
a7b2e184 266Warn about constant integer divisions with truncated results.
c219aeb7 267
6de9cd9a 268Wline-truncation
aecfd035 269Fortran Warning Var(warn_line_truncation) LangEnabledBy(Fortran,Wall) Init(-1)
a7b2e184 270Warn about truncated source lines.
6de9cd9a 271
c3005b0f 272Wintrinsics-std
4daa149b 273Fortran Var(warn_intrinsics_std) Warning LangEnabledBy(Fortran,Wall)
a7b2e184 274Warn on intrinsics not part of the selected standard.
b7892582 275
73e42eef
TB
276Wmaybe-uninitialized
277Fortran LangEnabledBy(Fortran,Wall)
278; Documented in common.opt
279
7c02f68b
MLI
280Wmissing-include-dirs
281Fortran
282; Documented in C/C++
283
7e114fad 284Wuse-without-only
3aa34c1d 285Fortran Var(warn_use_without_only) Warning
a7b2e184 286Warn about USE statements that have no ONLY qualifier.
7e114fad 287
22cff118
TS
288Wopenacc-parallelism
289Fortran
290; Documented in C
291
449b6b81
TB
292Wopenmp
293Fortran
294; Documented in C
295
8b5e1202
SO
296Wopenmp-simd
297Fortran
298; Documented in C
299
91c4891a
ME
300Woverwrite-recursive
301Fortran Warning Var(warn_overwrite_recursive) Init(1)
302Warn that -fno-automatic may break recursion.
303
16db2a6a
TB
304Wpedantic
305Fortran
306; Documented in common.opt
307
5a17346a 308Wreal-q-constant
73e42eef 309Fortran Warning Var(warn_real_q_constant) LangEnabledBy(Fortran,Wall)
a7b2e184 310Warn about real-literal-constants with 'q' exponent-letter.
5a17346a 311
f1fb11f1 312Wrealloc-lhs
73e42eef 313Fortran Warning Var(warn_realloc_lhs) LangEnabledBy(Fortran,Wrealloc-lhs-all)
a7b2e184 314Warn when a left-hand-side array variable is reallocated.
f1fb11f1
TB
315
316Wrealloc-lhs-all
73e42eef 317Fortran Warning Var(warn_realloc_lhs_all)
a7b2e184 318Warn when a left-hand-side variable is reallocated.
f1fb11f1 319
f657024b 320Wtarget-lifetime
73e42eef 321Fortran Warning Var(warn_target_lifetime) LangEnabledBy(Fortran,Wall)
a7b2e184 322Warn if the pointer in a pointer assignment might outlive its target.
f657024b 323
766d0c8c 324Wreturn-type
73e42eef 325Fortran Warning LangEnabledBy(Fortran,Wall)
766d0c8c
DF
326; Documented in C
327
6de9cd9a 328Wsurprising
73e42eef 329Fortran Warning Var(warn_surprising) LangEnabledBy(Fortran,Wall)
a7b2e184 330Warn about \"suspicious\" constructs.
6de9cd9a 331
840bd9f7 332Wtabs
27e51192 333Fortran Warning Var(warn_tabs) LangEnabledBy(Fortran,Wall || Wpedantic)
a7b2e184 334Permit nonconforming uses of the tab character.
840bd9f7 335
1c122092
ML
336Wundefined-do-loop
337Fortran Warning Var(warn_undefined_do_loop) LangEnabledBy(Fortran,Wall)
338Warn about an invalid DO loop.
339
2d8b59df 340Wunderflow
73e42eef 341Fortran Warning Var(warn_underflow) Init(1)
a7b2e184 342Warn about underflow of numerical constant expressions.
2d8b59df 343
73e42eef
TB
344Wuninitialized
345Fortran LangEnabledBy(Fortran,Wall)
346; Documented in common.opt
347
c3005b0f 348Wintrinsic-shadow
73e42eef 349Fortran Warning Var(warn_intrinsic_shadow) LangEnabledBy(Fortran,Wall)
a7b2e184 350Warn if a user-procedure has the same name as an intrinsic.
c3005b0f 351
73e42eef
TB
352Wunused
353LangEnabledBy(Fortran,Wall)
354; Documented in common.opt
355
4ed44ccc 356Wunused-dummy-argument
73e42eef 357Fortran Warning Var(warn_unused_dummy_argument) LangEnabledBy(Fortran,Wall)
4ed44ccc
DF
358Warn about unused dummy arguments.
359
0e533e50 360Wzerotrip
73e42eef 361Fortran Warning Var(warn_zerotrip) LangEnabledBy(Fortran,Wall)
a7b2e184 362Warn about zero-trip DO loops.
0e533e50 363
670637ee 364cpp
6cfcf3ed 365Fortran Negative(nocpp)
a7b2e184 366Enable preprocessing.
670637ee 367
6cfcf3ed 368cpp=
77ee7190 369Fortran Joined Negative(nocpp) Undocumented NoDWARFRecord
6cfcf3ed
JM
370; Internal option generated by specs from -cpp.
371
670637ee
DF
372nocpp
373Fortran Negative(cpp)
a7b2e184 374Disable preprocessing.
670637ee
DF
375
376d
377Fortran Joined
9a0f3e86 378; Documented in common.opt
670637ee 379
7a56096c
TK
380fallow-argument-mismatch
381Fortran Var(flag_allow_argument_mismatch) LangEnabledBy(Fortran,std=legacy)
382Accept argument mismatches in procedure calls.
383
2757d5ec 384faggressive-function-elimination
c61819ff 385Fortran Var(flag_aggressive_function_elimination)
bd2c6270 386Eliminate multiple function invocations also for impure functions.
2757d5ec 387
f613cea7 388falign-commons
c61819ff 389Fortran Var(flag_align_commons) Init(1)
a7b2e184 390Enable alignment of COMMON blocks.
f613cea7 391
a23eec13 392fall-intrinsics
c61819ff 393Fortran RejectNegative Var(flag_all_intrinsics)
a7b2e184 394All intrinsics procedures are available regardless of selected standard.
a23eec13 395
8dc63166
SK
396fallow-invalid-boz
397Fortran RejectNegative Var(flag_allow_invalid_boz)
c35a3046 398Allow a BOZ literal constant to appear in an invalid context and with X instead of Z.
8dc63166 399
e6472bce 400fallow-leading-underscore
c61819ff 401Fortran Undocumented Var(flag_allow_leading_underscore)
e6472bce
FXC
402; For internal use only: allow the first character of symbol names to be an underscore
403
ee5426a4 404fautomatic
c61819ff 405Fortran Var(flag_automatic) Init(1)
a7b2e184 406Do not treat local variables and COMMON blocks as if they were named in SAVE statements.
ee5426a4 407
e0bcf78c 408fbackslash
c61819ff 409Fortran Var(flag_backslash)
a7b2e184 410Specify that backslash in string introduces an escape character.
e0bcf78c 411
868d75db 412fbacktrace
c61819ff 413Fortran Var(flag_backtrace) Init(1)
a7b2e184 414Produce a backtrace when a runtime error is encountered.
868d75db 415
5a0aad31 416fblas-matmul-limit=
c61819ff 417Fortran RejectNegative Joined UInteger Var(flag_blas_matmul_limit) Init(30)
a7b2e184 418-fblas-matmul-limit=<n> Size of the smallest matrix for which matmul will use BLAS.
5a0aad31 419
e79f6e61
JJ
420fbuilding-libgfortran
421Fortran Undocumented Var(flag_building_libgfortran)
422
f1bfba3a
TB
423fbuiltin-
424Fortran Joined
425; Documented in C
426
0d52899f
TB
427fcheck-array-temporaries
428Fortran
a7b2e184 429Produce a warning at runtime if a array temporary has been created for a procedure argument.
0d52899f 430
f19626cf 431fconvert=
9acd5a01
JJ
432Fortran RejectNegative Joined Enum(gfc_convert) EnumSet Var(flag_convert) Init(GFC_FLAG_CONVERT_NATIVE)
433-fconvert=<big-endian|little-endian|native|swap|r16_ieee|r16_ibm> The endianness used for unformatted files.
3ae9eb27 434
f19626cf 435Enum
bd2c6270 436Name(gfc_convert) Type(enum gfc_convert) UnknownError(Unrecognized option to endianness value: %qs)
3ae9eb27 437
f19626cf 438EnumValue
9acd5a01 439Enum(gfc_convert) String(big-endian) Value(GFC_FLAG_CONVERT_BIG) Set(1)
10612ddf 440
f19626cf 441EnumValue
9acd5a01 442Enum(gfc_convert) String(little-endian) Value(GFC_FLAG_CONVERT_LITTLE) Set(1)
f19626cf
TB
443
444EnumValue
9acd5a01 445Enum(gfc_convert) String(native) Value(GFC_FLAG_CONVERT_NATIVE) Set(1)
f19626cf
TB
446
447EnumValue
9acd5a01
JJ
448Enum(gfc_convert) String(swap) Value(GFC_FLAG_CONVERT_SWAP) Set(1)
449
450EnumValue
451Enum(gfc_convert) String(r16_ieee) Value(GFC_FLAG_CONVERT_R16_IEEE) Set(2)
452
453EnumValue
454Enum(gfc_convert) String(r16_ibm) Value(GFC_FLAG_CONVERT_R16_IBM) Set(2)
10612ddf
BM
455
456fcray-pointer
c61819ff 457Fortran Var(flag_cray_pointer)
a7b2e184 458Use the Cray Pointer extension.
6de9cd9a 459
e655a6cc
TK
460fc-prototypes
461Fortran Var(flag_c_prototypes)
462Generate C prototypes from BIND(C) declarations.
463
6328ce1f
TK
464fc-prototypes-external
465Fortran Var(flag_c_prototypes_external)
466Generate C prototypes from non-BIND(C) external procedure definitions.
467
e0bcf78c 468fd-lines-as-code
7f26dfa3 469Fortran RejectNegative
a7b2e184 470Ignore 'D' in column one in fixed form.
e0bcf78c
TS
471
472fd-lines-as-comments
7f26dfa3 473Fortran RejectNegative
a7b2e184 474Treat lines with 'D' in column one as comments.
e0bcf78c 475
662de36b
TK
476fdebug-aux-vars
477Fortran Var(flag_debug_aux_vars)
478Issue debug information for compiler-generated auxiliary variables.
479
f6288c24 480fdec
f6d17ecd 481Fortran Var(flag_dec)
f6288c24
FR
482Enable all DEC language extensions.
483
17f62b7e
JM
484fdec-blank-format-item
485Fortran Var(flag_dec_blank_format_item)
486Enable the use of blank format items in format strings.
487
2afeb1ca
ME
488fdec-char-conversions
489Fortran Var(flag_dec_char_conversions)
490Enable the use of character literals in assignments and data statements
491for non-character variables.
492
7c74e813
JJ
493fdec-include
494Fortran Var(flag_dec_include)
495Enable legacy parsing of INCLUDE as statement.
496
88a8126a
JB
497fdec-format-defaults
498Fortran Var(flag_dec_format_defaults)
499Enable default widths for i, f and g format specifiers.
500
c98583e9
FR
501fdec-intrinsic-ints
502Fortran Var(flag_dec_intrinsic_ints)
503Enable kind-specific variants of integer intrinsic functions.
504
8e8c2744
FR
505fdec-math
506Fortran Var(flag_dec_math)
507Enable legacy math intrinsics for compatibility.
508
f6288c24 509fdec-structure
f6d17ecd 510Fortran Var(flag_dec_structure)
f6288c24
FR
511Enable support for DEC STRUCTURE/RECORD.
512
34d567d1
FR
513fdec-static
514Fortran Var(flag_dec_static)
515Enable DEC-style STATIC and AUTOMATIC attributes.
516
10612ddf 517fdefault-double-8
203c7ebf 518Fortran Var(flag_default_double)
a7b2e184 519Set the default double precision kind to an 8 byte wide type.
10612ddf
BM
520
521fdefault-integer-8
203c7ebf 522Fortran Var(flag_default_integer)
a7b2e184 523Set the default integer kind to an 8 byte wide type.
10612ddf
BM
524
525fdefault-real-8
d16d81b5 526Fortran Var(flag_default_real_8)
a7b2e184 527Set the default real kind to an 8 byte wide type.
10612ddf 528
d16d81b5
JW
529fdefault-real-10
530Fortran Var(flag_default_real_10)
531Set the default real kind to an 10 byte wide type.
532
533fdefault-real-16
534Fortran Var(flag_default_real_16)
535Set the default real kind to an 16 byte wide type.
536
6de9cd9a 537fdollar-ok
c61819ff 538Fortran Var(flag_dollar_ok)
a7b2e184 539Allow dollar signs in entity names.
6de9cd9a 540
ade2e403
TB
541fdump-core
542Fortran Ignore
543Does nothing. Preserved for backward compatibility.
544
1607a827 545fdump-fortran-original
c61819ff 546Fortran Var(flag_dump_fortran_original)
a7b2e184 547Display the code tree after parsing.
6de9cd9a 548
1607a827 549fdump-fortran-optimized
c61819ff 550Fortran Var(flag_dump_fortran_optimized)
a7b2e184 551Display the code tree after front end optimization.
1607a827 552
5c6aa9a8
TK
553fdump-fortran-global
554Fortran Var(flag_dump_fortran_global)
555Display the global symbol table after parsing.
556
1607a827 557fdump-parse-tree
c61819ff 558Fortran Alias(fdump-fortran-original)
a7b2e184 559Display the code tree after parsing; deprecated option.
1607a827 560
10612ddf 561fexternal-blas
c61819ff 562Fortran Var(flag_external_blas)
a7b2e184 563Specify that an external BLAS library should be used for matmul calls on large-size arrays.
10612ddf 564
973ff4c0 565ff2c
c61819ff 566Fortran Var(flag_f2c)
a7b2e184 567Use f2c calling convention.
973ff4c0 568
6de9cd9a 569ffixed-form
1005cc9c 570Fortran RejectNegative
a7b2e184 571Assume that the source file is fixed form.
6de9cd9a 572
7bd5dad2
LK
573ftest-forall-temp
574Fortran Var(flag_test_forall_temp) Init(0)
02a7f8dc 575Force creation of temporary to test infrequently-executed forall code.
7bd5dad2 576
f4347334 577finteger-4-integer-8
203c7ebf 578Fortran RejectNegative Var(flag_integer4_kind,8)
a7b2e184 579Interpret any INTEGER(4) as an INTEGER(8).
f4347334 580
31198773 581fintrinsic-modules-path
f34dea03 582Fortran RejectNegative Separate
a7b2e184 583Specify where to find the compiled intrinsic modules.
f34dea03
JJ
584
585fintrinsic-modules-path=
586Fortran RejectNegative Joined
a7b2e184 587Specify where to find the compiled intrinsic modules.
31198773 588
f56c5d5d 589ffixed-line-length-none
203c7ebf 590Fortran RejectNegative Var(flag_fixed_line_length,0)
a7b2e184 591Allow arbitrary character line width in fixed mode.
6de9cd9a 592
f56c5d5d 593ffixed-line-length-
203c7ebf 594Fortran RejectNegative Joined UInteger Var(flag_fixed_line_length) Init(72)
a7b2e184 595-ffixed-line-length-<n> Use n as character line width in fixed mode.
6de9cd9a 596
f03d260a
JJ
597fpad-source
598Fortran Var(flag_pad_source) Init(1)
599Pad shorter fixed form lines to line width with spaces.
600
10612ddf
BM
601ffpe-trap=
602Fortran RejectNegative JoinedOrMissing
a7b2e184 603-ffpe-trap=[...] Stop on following floating point exceptions.
10612ddf 604
fa86f4f9
TB
605ffpe-summary=
606Fortran RejectNegative JoinedOrMissing
a7b2e184 607-ffpe-summary=[...] Print summary of floating point exceptions.
fa86f4f9 608
10612ddf
BM
609ffree-form
610Fortran RejectNegative
a7b2e184 611Assume that the source file is free form.
10612ddf 612
16ab8e74 613ffree-line-length-none
203c7ebf 614Fortran RejectNegative Var(flag_free_line_length,0)
a7b2e184 615Allow arbitrary character line width in free mode.
16ab8e74
BF
616
617ffree-line-length-
203c7ebf 618Fortran RejectNegative Joined UInteger Var(flag_free_line_length) Init(132)
a7b2e184 619-ffree-line-length-<n> Use n as character line width in free mode.
16ab8e74 620
d88412fc
TK
621ffrontend-loop-interchange
622Fortran Var(flag_frontend_loop_interchange) Init(-1)
623Try to interchange loops if profitable.
624
51a30b32 625ffrontend-optimize
203c7ebf 626Fortran Var(flag_frontend_optimize) Init(-1)
a7b2e184 627Enable front end optimization.
51a30b32 628
10612ddf 629fimplicit-none
c61819ff 630Fortran Var(flag_implicit_none)
a7b2e184 631Specify that no implicit typing is allowed, unless overridden by explicit IMPLICIT statements.
10612ddf 632
51b09ce3
AL
633finit-character=
634Fortran RejectNegative Joined UInteger
a7b2e184 635-finit-character=<n> Initialize local character variables to ASCII value n.
51b09ce3 636
7fc61626
FR
637finit-derived
638Fortran Var(flag_init_derived)
639Initialize components of derived type variables according to other init flags.
640
51b09ce3
AL
641finit-integer=
642Fortran RejectNegative Joined
a7b2e184 643-finit-integer=<n> Initialize local integer variables to n.
51b09ce3
AL
644
645finit-local-zero
646Fortran
a7b2e184 647Initialize local variables to zero (from g77).
51b09ce3
AL
648
649finit-logical=
650Fortran RejectNegative Joined
a7b2e184 651-finit-logical=<true|false> Initialize local logical variables.
51b09ce3
AL
652
653finit-real=
f19626cf 654Fortran RejectNegative ToLower Joined Enum(gfc_init_local_real) Var(flag_init_real) Init(GFC_INIT_REAL_OFF)
a7b2e184 655-finit-real=<zero|snan|nan|inf|-inf> Initialize local real variables.
f19626cf
TB
656
657Enum
658Name(gfc_init_local_real) Type(enum gfc_init_local_real) UnknownError(Unrecognized option to floating-point init value: %qs)
659
660EnumValue
661Enum(gfc_init_local_real) String(zero) Value(GFC_INIT_REAL_ZERO)
662
663EnumValue
664Enum(gfc_init_local_real) String(snan) Value(GFC_INIT_REAL_SNAN)
665
666EnumValue
667Enum(gfc_init_local_real) String(nan) Value(GFC_INIT_REAL_NAN)
668
669EnumValue
670Enum(gfc_init_local_real) String(inf) Value(GFC_INIT_REAL_INF)
671
672EnumValue
673Enum(gfc_init_local_real) String(-inf) Value(GFC_INIT_REAL_NEG_INF)
51b09ce3 674
95d27703
TK
675finline-arg-packing
676Fortran Var(flag_inline_arg_packing) Init(-1)
907343e8 677-finline-arg-packing Perform argument packing inline.
95d27703 678
f1abbf69
TK
679finline-matmul-limit=
680Fortran RejectNegative Joined UInteger Var(flag_inline_matmul_limit) Init(-1)
a7b2e184 681-finline-matmul-limit=<n> Specify the size of the largest matrix for which matmul will be inlined.
f1abbf69 682
63346ddb 683fmax-array-constructor=
c61819ff 684Fortran RejectNegative Joined UInteger Var(flag_max_array_constructor) Init(65535)
a7b2e184 685-fmax-array-constructor=<n> Maximum number of objects in an array constructor.
63346ddb 686
6de9cd9a 687fmax-identifier-length=
7f26dfa3 688Fortran RejectNegative Joined UInteger
a7b2e184 689-fmax-identifier-length=<n> Maximum identifier length.
6de9cd9a 690
07b3bbf2 691fmax-subrecord-length=
203c7ebf 692Fortran RejectNegative Joined UInteger Var(flag_max_subrecord_length)
a7b2e184 693-fmax-subrecord-length=<n> Maximum length for subrecords.
07b3bbf2 694
6de9cd9a 695fmax-stack-var-size=
203c7ebf 696Fortran RejectNegative Joined UInteger Var(flag_max_stack_var_size) Init(-2)
a7b2e184 697-fmax-stack-var-size=<n> Size in bytes of the largest array that will be put on the stack.
6de9cd9a 698
c76f8d52 699fstack-arrays
203c7ebf 700Fortran Var(flag_stack_arrays) Init(-1)
c76f8d52
MM
701Put all local arrays on stack.
702
654b6073 703fmodule-private
c61819ff 704Fortran Var(flag_module_private)
654b6073
FXC
705Set default accessibility of module entities to PRIVATE.
706
41dbbb37 707fopenacc
a0c88d06 708Fortran LTO
41dbbb37
TS
709; Documented in C
710
b6adbb9f
NS
711fopenacc-dim=
712Fortran LTO Joined Var(flag_openacc_dims)
713; Documented in C
714
10612ddf 715fopenmp
1506ae0e 716Fortran LTO
9a0f3e86 717; Documented in C
54554825 718
6d7f7e0a
TB
719fopenmp-simd
720Fortran
721; Documented in C
722
d4b6d147
TB
723fopenmp-allocators
724Fortran Var(flag_openmp_allocators)
725Handle OpenMP allocators for allocatables and pointers.
726
6de9cd9a 727fpack-derived
c61819ff 728Fortran Var(flag_pack_derived)
a7b2e184 729Try to lay out derived types as compactly as possible.
6de9cd9a 730
10612ddf
BM
731fpreprocessed
732Fortran
9a0f3e86 733; Documented in C
10612ddf 734
72bd130e 735fprotect-parens
203c7ebf 736Fortran Var(flag_protect_parens) Init(-1)
a7b2e184 737Protect parentheses in expressions.
72bd130e 738
facf0354
ML
739fpre-include=
740Fortran RejectNegative Joined Var(flag_pre_include) Undocumented
741Path to header file that should be pre-included before each compilation unit.
742
10612ddf 743frange-check
c61819ff 744Fortran Var(flag_range_check) Init(1)
a7b2e184 745Enable range checking during compilation.
10612ddf 746
f4347334 747freal-4-real-8
203c7ebf 748Fortran RejectNegative Var(flag_real4_kind,8)
a7b2e184 749Interpret any REAL(4) as a REAL(8).
f4347334
ZG
750
751freal-4-real-10
203c7ebf 752Fortran RejectNegative Var(flag_real4_kind,10)
a7b2e184 753Interpret any REAL(4) as a REAL(10).
f4347334
ZG
754
755freal-4-real-16
203c7ebf 756Fortran RejectNegative Var(flag_real4_kind,16)
a7b2e184 757Interpret any REAL(4) as a REAL(16).
f4347334
ZG
758
759freal-8-real-4
203c7ebf 760Fortran RejectNegative Var(flag_real8_kind,4)
a7b2e184 761Interpret any REAL(8) as a REAL(4).
f4347334
ZG
762
763freal-8-real-10
203c7ebf 764Fortran RejectNegative Var(flag_real8_kind,10)
a7b2e184 765Interpret any REAL(8) as a REAL(10).
f4347334
ZG
766
767freal-8-real-16
203c7ebf 768Fortran RejectNegative Var(flag_real8_kind,16)
a7b2e184 769Interpret any REAL(8) as a REAL(16).
f4347334 770
597553ab 771frealloc-lhs
203c7ebf 772Fortran Var(flag_realloc_lhs) Init(-1)
a7b2e184 773Reallocate the LHS in assignments.
597553ab 774
10612ddf 775frecord-marker=4
203c7ebf 776Fortran RejectNegative Var(flag_record_marker,4)
a7b2e184 777Use a 4-byte record marker for unformatted files.
10612ddf
BM
778
779frecord-marker=8
203c7ebf 780Fortran RejectNegative Var(flag_record_marker,8)
a7b2e184 781Use an 8-byte record marker for unformatted files.
10612ddf 782
1e7de83b 783frecursive
c61819ff 784Fortran Var(flag_recursive)
a7b2e184 785Allocate local variables on the stack to allow indirect recursion.
1e7de83b 786
6de9cd9a 787frepack-arrays
c61819ff 788Fortran Var(flag_repack_arrays)
a7b2e184 789Copy array sections into a contiguous block on procedure entry.
6de9cd9a 790
f4d1d50a 791fcoarray=
f19626cf 792Fortran RejectNegative Joined Enum(gfc_fcoarray) Var(flag_coarray) Init(GFC_FCOARRAY_NONE)
a7b2e184 793-fcoarray=<none|single|lib> Specify which coarray parallelization should be used.
f19626cf
TB
794
795Enum
796Name(gfc_fcoarray) Type(enum gfc_fcoarray) UnknownError(Unrecognized option: %qs)
797
798EnumValue
799Enum(gfc_fcoarray) String(none) Value(GFC_FCOARRAY_NONE)
800
801EnumValue
802Enum(gfc_fcoarray) String(single) Value(GFC_FCOARRAY_SINGLE)
803
804EnumValue
805Enum(gfc_fcoarray) String(lib) Value(GFC_FCOARRAY_LIB)
f4d1d50a 806
d3d3011f
FXC
807fcheck=
808Fortran RejectNegative JoinedOrMissing
a7b2e184 809-fcheck=[...] Specify which runtime checks are to be performed.
d3d3011f 810
10612ddf 811fsecond-underscore
203c7ebf 812Fortran Var(flag_second_underscore) Init(-1)
a7b2e184 813Append a second underscore if the name already contains an underscore.
2d7c7df6 814
10612ddf 815fshort-enums
f0036cca 816Fortran Var(flag_short_enums)
cab129d1 817; Documented in C
944b8b35 818
68d2e027 819fsign-zero
c61819ff 820Fortran Var(flag_sign_zero) Init(1)
a7b2e184 821Apply negative sign to zero values.
68d2e027 822
ffeebc4f 823ftail-call-workaround
d4ecfa56 824Fortran Alias(ftail-call-workaround=,1,0)
ffeebc4f
JJ
825
826ftail-call-workaround=
827Fortran RejectNegative Joined UInteger IntegerRange(0, 2) Var(flag_tail_call_workaround) Init(1)
02fac244 828Disallow tail call optimization when a calling routine may have omitted character lengths.
ffeebc4f 829
10612ddf 830funderscoring
c61819ff 831Fortran Var(flag_underscoring) Init(1)
a7b2e184 832Append underscores to externally visible names.
6de9cd9a 833
71a7778c 834fwhole-file
9fa52231
TB
835Fortran Ignore
836Does nothing. Preserved for backward compatibility.
71a7778c 837
670637ee
DF
838fworking-directory
839Fortran
840; Documented in C
841
c3280643
DF
842idirafter
843Fortran Joined Separate
844; Documented in C
845
670637ee
DF
846imultilib
847Fortran Joined Separate
848; Documented in C
849
850iprefix
851Fortran Joined Separate
852; Documented in C
853
854iquote
855Fortran Joined Separate
856; Documented in C
857
858isysroot
859Fortran Joined Separate
860; Documented in C
861
862isystem
863Fortran Joined Separate
864; Documented in C
865
866nostdinc
867Fortran
868; Documented in C
869
870o
871Fortran Joined Separate
872; Documented in common.opt
873
86db887a 874static-libgfortran
dd899c7d 875Driver
a7b2e184 876Statically link the GNU Fortran helper library (libgfortran).
86db887a 877
745be54b 878static-libquadmath
dd899c7d 879Driver
745be54b
JJ
880Statically link the GCC Quad-Precision Math Library (libquadmath).
881
6de9cd9a 882std=f2003
7f26dfa3 883Fortran
a7b2e184 884Conform to the ISO Fortran 2003 standard.
6de9cd9a 885
f489fba1
FXC
886std=f2008
887Fortran
a7b2e184 888Conform to the ISO Fortran 2008 standard.
f489fba1 889
4650947d 890std=f2008ts
2e8d9212 891Fortran
a7b2e184 892Conform to the ISO Fortran 2008 standard including TS 29113.
2e8d9212 893
8179b067
JB
894std=f2018
895Fortran
896Conform to the ISO Fortran 2018 standard.
897
b9eba3ba
TB
898std=f2023
899Fortran
900Conform to the ISO Fortran 2023 standard.
901
10612ddf
BM
902std=f95
903Fortran
a7b2e184 904Conform to the ISO Fortran 95 standard.
10612ddf 905
6de9cd9a 906std=gnu
7f26dfa3 907Fortran
a7b2e184 908Conform to nothing in particular.
6de9cd9a 909
c0309c74 910std=legacy
7f26dfa3 911Fortran
a7b2e184 912Accept extensions to support legacy code.
c0309c74 913
670637ee
DF
914undef
915Fortran
916; Documented in C
917
918v
919Fortran
920; Documented in C
921
6de9cd9a 922; This comment is to ensure we retain the blank line above.
This page took 7.367234 seconds and 6 git commands to generate.