Debian Codegraph @

gcc/fortran/lang.opt

raw
1 ; Options for the Fortran front end.
2 ; Copyright (C) 2003-2025 Free Software Foundation, Inc.
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
8 ; Software Foundation; either version 3, or (at your option) any later
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
17 ; along with GCC; see the file COPYING3. If not see
18 ; <http://www.gnu.org/licenses/>.
19
20 ; See the GCC internals manual for a description of this file's format.
21
22 ; Please try to keep this file in ASCII collating order.
23
24 Language
25 Fortran
26
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
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
140 I
141 Fortran Joined Separate
142 ; Documented in C
143
144 J
145 Fortran Joined Separate
146 -J<directory> Put MODULE files in 'directory'.
147
148 M
149 Fortran
150 ; Documented in C
151
152 MD
153 Fortran Separate NoDriverArg
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
168 MMD
169 Fortran Separate NoDriverArg
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
184 P
185 Fortran
186 ; Documented in C
187
188 U
189 Fortran Joined Separate
190 ; Documented in C
191
192 Wall
193 Fortran
194 ; Documented in C
195
196 Waliasing
197 Fortran Warning Var(warn_aliasing) LangEnabledBy(Fortran,Wall)
198 Warn about possible aliasing of dummy arguments.
199
200 Walign-commons
201 Fortran Warning Var(warn_align_commons) Init(1)
202 Warn about alignment of COMMON blocks.
203
204 Wampersand
205 Fortran Warning Var(warn_ampersand) LangEnabledBy(Fortran,Wall || Wpedantic)
206 Warn about missing ampersand in continued character constants.
207
208 Warray-temporaries
209 Fortran Warning Var(warn_array_temporaries)
210 Warn about creation of array temporaries.
211
212 Wargument-mismatch
213 Fortran WarnRemoved
214 Does nothing. Preserved for backward compatibility.
215
216 Wc-binding-type
217 Fortran Var(warn_c_binding_type) Warning LangEnabledBy(Fortran,Wall)
218 Warn if the type of a variable might be not interoperable with C.
219
220 Wdate-time
221 Fortran
222 ; Documented in C
223
224 Wcharacter-truncation
225 Fortran Var(warn_character_truncation) Warning LangEnabledBy(Fortran,Wall)
226 Warn about truncated character expressions.
227
228 Wcompare-reals
229 Fortran Warning Var(warn_compare_reals) LangEnabledBy(Fortran,Wextra)
230 Warn about equality comparisons involving REAL or COMPLEX expressions.
231
232 Wconversion
233 Fortran Var(warn_conversion) Warning LangEnabledBy(Fortran,Wall)
234 ; Documented in C
235
236 Wconversion-extra
237 Fortran Var(warn_conversion_extra) Warning
238 Warn about most implicit conversions.
239
240 Wdo-subscript
241 Fortran Var(warn_do_subscript) Warning LangEnabledBy(Fortran,Wextra)
242 Warn about possibly incorrect subscripts in do loops.
243
244 Wexternal-argument-mismatch
245 Fortran Var(warn_external_argument_mismatch) Warning LangEnabledBy(Fortran,Wall || fc-prototypes-external)
246 Warn when arguments of external procedures do not match.
247
248 Wextra
249 Fortran Warning
250 ; Documented in common
251
252 Wfrontend-loop-interchange
253 Fortran Var(flag_warn_frontend_loop_interchange)
254 Warn if loops have been interchanged.
255
256 Wfunction-elimination
257 Fortran Warning Var(warn_function_elimination) LangEnabledBy(Fortran,Wextra)
258 Warn about function call elimination.
259
260 Wimplicit-interface
261 Fortran Warning Var(warn_implicit_interface)
262 Warn about calls with implicit interface.
263
264 Wimplicit-procedure
265 Fortran Warning Var(warn_implicit_procedure)
266 Warn about called procedures not explicitly declared.
267
268 Winteger-division
269 Fortran Warning Var(warn_integer_division) LangEnabledBy(Fortran,Wall)
270 Warn about constant integer divisions with truncated results.
271
272 Wline-truncation
273 Fortran Warning Var(warn_line_truncation) LangEnabledBy(Fortran,Wall) Init(-1)
274 Warn about truncated source lines.
275
276 Wintrinsics-std
277 Fortran Var(warn_intrinsics_std) Warning LangEnabledBy(Fortran,Wall)
278 Warn on intrinsics not part of the selected standard.
279
280 Wmaybe-uninitialized
281 Fortran LangEnabledBy(Fortran,Wall)
282 ; Documented in common.opt
283
284 Wmissing-include-dirs
285 Fortran
286 ; Documented in C/C++
287
288 Wuse-without-only
289 Fortran Var(warn_use_without_only) Warning
290 Warn about USE statements that have no ONLY qualifier.
291
292 Wopenacc-parallelism
293 Fortran
294 ; Documented in C
295
296 Wopenmp
297 Fortran
298 ; Documented in C
299
300 Wopenmp-simd
301 Fortran
302 ; Documented in C
303
304 Woverwrite-recursive
305 Fortran Warning Var(warn_overwrite_recursive) Init(1)
306 Warn that -fno-automatic may break recursion.
307
308 Wpedantic
309 Fortran
310 ; Documented in common.opt
311
312 Wreal-q-constant
313 Fortran Warning Var(warn_real_q_constant) LangEnabledBy(Fortran,Wall)
314 Warn about real-literal-constants with 'q' exponent-letter.
315
316 Wrealloc-lhs
317 Fortran Warning Var(warn_realloc_lhs) LangEnabledBy(Fortran,Wrealloc-lhs-all)
318 Warn when a left-hand-side array variable is reallocated.
319
320 Wrealloc-lhs-all
321 Fortran Warning Var(warn_realloc_lhs_all)
322 Warn when a left-hand-side variable is reallocated.
323
324 Wtarget-lifetime
325 Fortran Warning Var(warn_target_lifetime) LangEnabledBy(Fortran,Wall)
326 Warn if the pointer in a pointer assignment might outlive its target.
327
328 Wreturn-type
329 Fortran Warning LangEnabledBy(Fortran,Wall)
330 ; Documented in C
331
332 Wsurprising
333 Fortran Warning Var(warn_surprising) LangEnabledBy(Fortran,Wall)
334 Warn about \"suspicious\" constructs.
335
336 Wtabs
337 Fortran Warning Var(warn_tabs) LangEnabledBy(Fortran,Wall || Wpedantic)
338 Permit nonconforming uses of the tab character.
339
340 Wundefined-do-loop
341 Fortran Warning Var(warn_undefined_do_loop) LangEnabledBy(Fortran,Wall)
342 Warn about an invalid DO loop.
343
344 Wunderflow
345 Fortran Warning Var(warn_underflow) Init(1)
346 Warn about underflow of numerical constant expressions.
347
348 Wuninitialized
349 Fortran LangEnabledBy(Fortran,Wall)
350 ; Documented in common.opt
351
352 Wintrinsic-shadow
353 Fortran Warning Var(warn_intrinsic_shadow) LangEnabledBy(Fortran,Wall)
354 Warn if a user-procedure has the same name as an intrinsic.
355
356 Wunused
357 LangEnabledBy(Fortran,Wall)
358 ; Documented in common.opt
359
360 Wunused-dummy-argument
361 Fortran Warning Var(warn_unused_dummy_argument) LangEnabledBy(Fortran,Wall)
362 Warn about unused dummy arguments.
363
364 Wzerotrip
365 Fortran Warning Var(warn_zerotrip) LangEnabledBy(Fortran,Wall)
366 Warn about zero-trip DO loops.
367
368 cpp
369 Fortran Negative(nocpp)
370 Enable preprocessing.
371
372 cpp=
373 Fortran Joined Negative(nocpp) Undocumented NoDWARFRecord
374 ; Internal option generated by specs from -cpp.
375
376 nocpp
377 Fortran Negative(cpp)
378 Disable preprocessing.
379
380 d
381 Fortran Joined
382 ; Documented in common.opt
383
384 fallow-argument-mismatch
385 Fortran Var(flag_allow_argument_mismatch) LangEnabledBy(Fortran,std=legacy)
386 Accept argument mismatches in procedure calls.
387
388 faggressive-function-elimination
389 Fortran Var(flag_aggressive_function_elimination)
390 Eliminate multiple function invocations also for impure functions.
391
392 falign-commons
393 Fortran Var(flag_align_commons) Init(1)
394 Enable alignment of COMMON blocks.
395
396 fall-intrinsics
397 Fortran RejectNegative Var(flag_all_intrinsics)
398 All intrinsics procedures are available regardless of selected standard.
399
400 fallow-invalid-boz
401 Fortran RejectNegative Var(flag_allow_invalid_boz)
402 Allow a BOZ literal constant to appear in an invalid context and with X instead of Z.
403
404 fallow-leading-underscore
405 Fortran Undocumented Var(flag_allow_leading_underscore)
406 ; For internal use only: allow the first character of symbol names to be an underscore
407
408 fautomatic
409 Fortran Var(flag_automatic) Init(1)
410 Do not treat local variables and COMMON blocks as if they were named in SAVE statements.
411
412 fbackslash
413 Fortran Var(flag_backslash)
414 Specify that backslash in string introduces an escape character.
415
416 fbacktrace
417 Fortran Var(flag_backtrace) Init(1)
418 Produce a backtrace when a runtime error is encountered.
419
420 fblas-matmul-limit=
421 Fortran RejectNegative Joined UInteger Var(flag_blas_matmul_limit) Init(30)
422 -fblas-matmul-limit=<n> Size of the smallest matrix for which matmul will use BLAS.
423
424 fbuilding-libgfortran
425 Fortran Undocumented Var(flag_building_libgfortran)
426
427 fbuiltin-
428 Fortran Joined
429 ; Documented in C
430
431 fcheck-array-temporaries
432 Fortran
433 Produce a warning at runtime if a array temporary has been created for a procedure argument.
434
435 fconvert=
436 Fortran RejectNegative Joined Enum(gfc_convert) EnumSet Var(flag_convert) Init(GFC_FLAG_CONVERT_NATIVE)
437 -fconvert=<big-endian|little-endian|native|swap|r16_ieee|r16_ibm> The endianness used for unformatted files.
438
439 Enum
440 Name(gfc_convert) Type(enum gfc_convert) UnknownError(Unrecognized option to endianness value: %qs)
441
442 EnumValue
443 Enum(gfc_convert) String(big-endian) Value(GFC_FLAG_CONVERT_BIG) Set(1)
444
445 EnumValue
446 Enum(gfc_convert) String(little-endian) Value(GFC_FLAG_CONVERT_LITTLE) Set(1)
447
448 EnumValue
449 Enum(gfc_convert) String(native) Value(GFC_FLAG_CONVERT_NATIVE) Set(1)
450
451 EnumValue
452 Enum(gfc_convert) String(swap) Value(GFC_FLAG_CONVERT_SWAP) Set(1)
453
454 EnumValue
455 Enum(gfc_convert) String(r16_ieee) Value(GFC_FLAG_CONVERT_R16_IEEE) Set(2)
456
457 EnumValue
458 Enum(gfc_convert) String(r16_ibm) Value(GFC_FLAG_CONVERT_R16_IBM) Set(2)
459
460 fcray-pointer
461 Fortran Var(flag_cray_pointer)
462 Use the Cray Pointer extension.
463
464 fc-prototypes
465 Fortran Var(flag_c_prototypes)
466 Generate C prototypes from BIND(C) declarations.
467
468 fc-prototypes-external
469 Fortran Var(flag_c_prototypes_external)
470 Generate C prototypes from non-BIND(C) external procedure definitions.
471
472 fd-lines-as-code
473 Fortran RejectNegative
474 Ignore 'D' in column one in fixed form.
475
476 fd-lines-as-comments
477 Fortran RejectNegative
478 Treat lines with 'D' in column one as comments.
479
480 fdebug-aux-vars
481 Fortran Var(flag_debug_aux_vars)
482 Issue debug information for compiler-generated auxiliary variables.
483
484 fdec
485 Fortran Var(flag_dec)
486 Enable all DEC language extensions.
487
488 fdec-blank-format-item
489 Fortran Var(flag_dec_blank_format_item)
490 Enable the use of blank format items in format strings.
491
492 fdec-char-conversions
493 Fortran Var(flag_dec_char_conversions)
494 Enable the use of character literals in assignments and data statements
495 for non-character variables.
496
497 fdec-include
498 Fortran Var(flag_dec_include)
499 Enable legacy parsing of INCLUDE as statement.
500
501 fdec-format-defaults
502 Fortran Var(flag_dec_format_defaults)
503 Enable default widths for i, f and g format specifiers.
504
505 fdec-intrinsic-ints
506 Fortran Var(flag_dec_intrinsic_ints)
507 Enable kind-specific variants of integer intrinsic functions.
508
509 fdec-math
510 Fortran Var(flag_dec_math)
511 Enable legacy math intrinsics for compatibility.
512
513 fdec-structure
514 Fortran Var(flag_dec_structure)
515 Enable support for DEC STRUCTURE/RECORD.
516
517 fdec-static
518 Fortran Var(flag_dec_static)
519 Enable DEC-style STATIC and AUTOMATIC attributes.
520
521 fdefault-double-8
522 Fortran Var(flag_default_double)
523 Set the default double precision kind to an 8 byte wide type.
524
525 fdefault-integer-8
526 Fortran Var(flag_default_integer)
527 Set the default integer kind to an 8 byte wide type.
528
529 fdefault-real-8
530 Fortran Var(flag_default_real_8)
531 Set the default real kind to an 8 byte wide type.
532
533 fdefault-real-10
534 Fortran Var(flag_default_real_10)
535 Set the default real kind to an 10 byte wide type.
536
537 fdefault-real-16
538 Fortran Var(flag_default_real_16)
539 Set the default real kind to an 16 byte wide type.
540
541 fdollar-ok
542 Fortran Var(flag_dollar_ok)
543 Allow dollar signs in entity names.
544
545 fdump-core
546 Fortran Ignore
547 Does nothing. Preserved for backward compatibility.
548
549 fdump-fortran-original
550 Fortran Var(flag_dump_fortran_original)
551 Display the code tree after parsing.
552
553 fdump-fortran-optimized
554 Fortran Var(flag_dump_fortran_optimized)
555 Display the code tree after front end optimization.
556
557 fdump-fortran-global
558 Fortran Var(flag_dump_fortran_global)
559 Display the global symbol table after parsing.
560
561 fdump-parse-tree
562 Fortran Alias(fdump-fortran-original)
563 Display the code tree after parsing; deprecated option.
564
565 fexternal-blas
566 Fortran Var(flag_external_blas)
567 Specify that an external BLAS library should be used for matmul calls on large-size arrays.
568
569 ff2c
570 Fortran Var(flag_f2c)
571 Use f2c calling convention.
572
573 ffixed-form
574 Fortran RejectNegative
575 Assume that the source file is fixed form.
576
577 ftest-forall-temp
578 Fortran Var(flag_test_forall_temp) Init(0)
579 Force creation of temporary to test infrequently-executed forall code.
580
581 finteger-4-integer-8
582 Fortran RejectNegative Var(flag_integer4_kind,8)
583 Interpret any INTEGER(4) as an INTEGER(8).
584
585 fintrinsic-modules-path
586 Fortran RejectNegative Separate
587 Specify where to find the compiled intrinsic modules.
588
589 fintrinsic-modules-path=
590 Fortran RejectNegative Joined
591 Specify where to find the compiled intrinsic modules.
592
593 ffixed-line-length-none
594 Fortran RejectNegative Var(flag_fixed_line_length,0)
595 Allow arbitrary character line width in fixed mode.
596
597 ffixed-line-length-
598 Fortran RejectNegative Joined UInteger Var(flag_fixed_line_length) Init(72)
599 -ffixed-line-length-<n> Use n as character line width in fixed mode.
600
601 fpad-source
602 Fortran Var(flag_pad_source) Init(1)
603 Pad shorter fixed form lines to line width with spaces.
604
605 ffpe-trap=
606 Fortran RejectNegative JoinedOrMissing
607 -ffpe-trap=[...] Stop on following floating point exceptions.
608
609 ffpe-summary=
610 Fortran RejectNegative JoinedOrMissing
611 -ffpe-summary=[...] Print summary of floating point exceptions.
612
613 ffree-form
614 Fortran RejectNegative
615 Assume that the source file is free form.
616
617 ffree-line-length-none
618 Fortran RejectNegative Var(flag_free_line_length,0)
619 Allow arbitrary character line width in free mode.
620
621 ffree-line-length-
622 Fortran RejectNegative Joined UInteger Var(flag_free_line_length) Init(132)
623 -ffree-line-length-<n> Use n as character line width in free mode.
624
625 ffrontend-loop-interchange
626 Fortran Var(flag_frontend_loop_interchange) Init(-1)
627 Try to interchange loops if profitable.
628
629 ffrontend-optimize
630 Fortran Var(flag_frontend_optimize) Init(-1)
631 Enable front end optimization.
632
633 fimplicit-none
634 Fortran Var(flag_implicit_none)
635 Specify that no implicit typing is allowed, unless overridden by explicit IMPLICIT statements.
636
637 finit-character=
638 Fortran RejectNegative Joined UInteger
639 -finit-character=<n> Initialize local character variables to ASCII value n.
640
641 finit-derived
642 Fortran Var(flag_init_derived)
643 Initialize components of derived type variables according to other init flags.
644
645 finit-integer=
646 Fortran RejectNegative Joined
647 -finit-integer=<n> Initialize local integer variables to n.
648
649 finit-local-zero
650 Fortran
651 Initialize local variables to zero (from g77).
652
653 finit-logical=
654 Fortran RejectNegative Joined
655 -finit-logical=<true|false> Initialize local logical variables.
656
657 finit-real=
658 Fortran RejectNegative ToLower Joined Enum(gfc_init_local_real) Var(flag_init_real) Init(GFC_INIT_REAL_OFF)
659 -finit-real=<zero|snan|nan|inf|-inf> Initialize local real variables.
660
661 Enum
662 Name(gfc_init_local_real) Type(enum gfc_init_local_real) UnknownError(Unrecognized option to floating-point init value: %qs)
663
664 EnumValue
665 Enum(gfc_init_local_real) String(zero) Value(GFC_INIT_REAL_ZERO)
666
667 EnumValue
668 Enum(gfc_init_local_real) String(snan) Value(GFC_INIT_REAL_SNAN)
669
670 EnumValue
671 Enum(gfc_init_local_real) String(nan) Value(GFC_INIT_REAL_NAN)
672
673 EnumValue
674 Enum(gfc_init_local_real) String(inf) Value(GFC_INIT_REAL_INF)
675
676 EnumValue
677 Enum(gfc_init_local_real) String(-inf) Value(GFC_INIT_REAL_NEG_INF)
678
679 finline-arg-packing
680 Fortran Var(flag_inline_arg_packing) Init(-1)
681 -finline-arg-packing Perform argument packing inline.
682
683 finline-intrinsics
684 Fortran RejectNegative Enum(gfc_inlineable_intrinsics) Var(flag_inline_intrinsics, GFC_FLAG_INLINE_INTRINSIC_ALL) Undocumented
685
686 fno-inline-intrinsics
687 Fortran RejectNegative Enum(gfc_inlineable_intrinsics) Var(flag_inline_intrinsics, GFC_FLAG_INLINE_INTRINSIC_NONE) Undocumented
688
689 finline-intrinsics=
690 Fortran Joined Var(flag_inline_intrinsics) Enum(gfc_inlineable_intrinsics) Init(GFC_FLAG_INLINE_INTRINSIC_ALL_UNSET) EnumSet
691 Enable generation of inline code instead of calls to functions from the library to implement intrinsics.
692
693 Enum
694 Name(gfc_inlineable_intrinsics) Type(int) UnknownError(%qs is not an inline-controlable intrinsic)
695
696 ; This is not part of any set
697 ; EnumValue
698 ; Enum(gfc_inlineable_intrinsics) String(none) Value(GFC_FLAG_INLINE_INTRINSIC_NONE)
699
700 EnumValue
701 Enum(gfc_inlineable_intrinsics) String(maxloc) Value(GFC_FLAG_INLINE_INTRINSIC_MAXLOC) Set(1)
702
703 EnumValue
704 Enum(gfc_inlineable_intrinsics) String(minloc) Value(GFC_FLAG_INLINE_INTRINSIC_MINLOC) Set(2)
705
706 ; This is not part of any set
707 ; EnumValue
708 ; Enum(gfc_inlineable_intrinsics) String(all) Value(GFC_FLAG_INLINE_INTRINSIC_ALL)
709
710 finline-matmul-limit=
711 Fortran RejectNegative Joined UInteger Var(flag_inline_matmul_limit) Init(-1)
712 -finline-matmul-limit=<n> Specify the size of the largest matrix for which matmul will be inlined.
713
714 fmax-array-constructor=
715 Fortran RejectNegative Joined UInteger Var(flag_max_array_constructor) Init(65535)
716 -fmax-array-constructor=<n> Maximum number of objects in an array constructor.
717
718 fmax-identifier-length=
719 Fortran RejectNegative Joined UInteger
720 -fmax-identifier-length=<n> Maximum identifier length.
721
722 fmax-subrecord-length=
723 Fortran RejectNegative Joined UInteger Var(flag_max_subrecord_length)
724 -fmax-subrecord-length=<n> Maximum length for subrecords.
725
726 fmax-stack-var-size=
727 Fortran RejectNegative Joined UInteger Var(flag_max_stack_var_size) Init(-2)
728 -fmax-stack-var-size=<n> Size in bytes of the largest array that will be put on the stack.
729
730 fstack-arrays
731 Fortran Var(flag_stack_arrays) Init(-1)
732 Put all local arrays on stack.
733
734 fmodule-private
735 Fortran Var(flag_module_private)
736 Set default accessibility of module entities to PRIVATE.
737
738 fopenacc
739 Fortran LTO
740 ; Documented in C
741
742 fopenacc-dim=
743 Fortran LTO Joined Var(flag_openacc_dims)
744 ; Documented in C
745
746 fopenmp
747 Fortran LTO
748 ; Documented in C
749
750 fopenmp-simd
751 Fortran
752 ; Documented in C
753
754 fopenmp-allocators
755 Fortran Var(flag_openmp_allocators)
756 Handle OpenMP allocators for allocatables and pointers.
757
758 fpack-derived
759 Fortran Var(flag_pack_derived)
760 Try to lay out derived types as compactly as possible.
761
762 fpreprocessed
763 Fortran
764 ; Documented in C
765
766 fprotect-parens
767 Fortran Var(flag_protect_parens) Init(-1)
768 Protect parentheses in expressions.
769
770 fpre-include=
771 Fortran RejectNegative Joined Var(flag_pre_include) Undocumented
772 Path to header file that should be pre-included before each compilation unit.
773
774 frange-check
775 Fortran Var(flag_range_check) Init(1)
776 Enable range checking during compilation.
777
778 freal-4-real-8
779 Fortran RejectNegative Var(flag_real4_kind,8)
780 Interpret any REAL(4) as a REAL(8).
781
782 freal-4-real-10
783 Fortran RejectNegative Var(flag_real4_kind,10)
784 Interpret any REAL(4) as a REAL(10).
785
786 freal-4-real-16
787 Fortran RejectNegative Var(flag_real4_kind,16)
788 Interpret any REAL(4) as a REAL(16).
789
790 freal-8-real-4
791 Fortran RejectNegative Var(flag_real8_kind,4)
792 Interpret any REAL(8) as a REAL(4).
793
794 freal-8-real-10
795 Fortran RejectNegative Var(flag_real8_kind,10)
796 Interpret any REAL(8) as a REAL(10).
797
798 freal-8-real-16
799 Fortran RejectNegative Var(flag_real8_kind,16)
800 Interpret any REAL(8) as a REAL(16).
801
802 frealloc-lhs
803 Fortran Var(flag_realloc_lhs) Init(-1)
804 Reallocate the LHS in assignments.
805
806 frecord-marker=4
807 Fortran RejectNegative Var(flag_record_marker,4)
808 Use a 4-byte record marker for unformatted files.
809
810 frecord-marker=8
811 Fortran RejectNegative Var(flag_record_marker,8)
812 Use an 8-byte record marker for unformatted files.
813
814 frecursive
815 Fortran Var(flag_recursive)
816 Allocate local variables on the stack to allow indirect recursion.
817
818 frepack-arrays
819 Fortran Var(flag_repack_arrays)
820 Copy array sections into a contiguous block on procedure entry.
821
822 funsigned
823 Fortran Var(flag_unsigned)
824 Experimental unsigned numbers.
825
826 fcoarray=
827 Fortran RejectNegative Joined Enum(gfc_fcoarray) Var(flag_coarray) Init(GFC_FCOARRAY_NONE)
828 -fcoarray=<none|single|lib> Specify which coarray parallelization should be used.
829
830 Enum
831 Name(gfc_fcoarray) Type(enum gfc_fcoarray) UnknownError(Unrecognized option: %qs)
832
833 EnumValue
834 Enum(gfc_fcoarray) String(none) Value(GFC_FCOARRAY_NONE)
835
836 EnumValue
837 Enum(gfc_fcoarray) String(single) Value(GFC_FCOARRAY_SINGLE)
838
839 EnumValue
840 Enum(gfc_fcoarray) String(lib) Value(GFC_FCOARRAY_LIB)
841
842 fcheck=
843 Fortran RejectNegative JoinedOrMissing
844 -fcheck=[...] Specify which runtime checks are to be performed.
845
846 fsecond-underscore
847 Fortran Var(flag_second_underscore) Init(-1)
848 Append a second underscore if the name already contains an underscore.
849
850 fshort-enums
851 Fortran Var(flag_short_enums)
852 ; Documented in C
853
854 fsign-zero
855 Fortran Var(flag_sign_zero) Init(1)
856 Apply negative sign to zero values.
857
858 ftail-call-workaround
859 Fortran Alias(ftail-call-workaround=,1,0)
860
861 ftail-call-workaround=
862 Fortran RejectNegative Joined UInteger IntegerRange(0, 2) Var(flag_tail_call_workaround) Init(1)
863 Disallow tail call optimization when a calling routine may have omitted character lengths.
864
865 funderscoring
866 Fortran Var(flag_underscoring) Init(1)
867 Append underscores to externally visible names.
868
869 fwhole-file
870 Fortran Ignore
871 Does nothing. Preserved for backward compatibility.
872
873 fworking-directory
874 Fortran
875 ; Documented in C
876
877 idirafter
878 Fortran Joined Separate
879 ; Documented in C
880
881 imultilib
882 Fortran Joined Separate
883 ; Documented in C
884
885 iprefix
886 Fortran Joined Separate
887 ; Documented in C
888
889 iquote
890 Fortran Joined Separate
891 ; Documented in C
892
893 isysroot
894 Fortran Joined Separate
895 ; Documented in C
896
897 isystem
898 Fortran Joined Separate
899 ; Documented in C
900
901 nostdinc
902 Fortran
903 ; Documented in C
904
905 o
906 Fortran Joined Separate
907 ; Documented in common.opt
908
909 static-libgfortran
910 Driver
911 Statically link the GNU Fortran helper library (libgfortran).
912
913 static-libquadmath
914 Driver
915 Statically link the GCC Quad-Precision Math Library (libquadmath).
916
917 std=f2003
918 Fortran
919 Conform to the ISO Fortran 2003 standard.
920
921 std=f2008
922 Fortran
923 Conform to the ISO Fortran 2008 standard.
924
925 std=f2008ts
926 Fortran
927 Conform to the ISO Fortran 2008 standard including TS 29113.
928
929 std=f2018
930 Fortran
931 Conform to the ISO Fortran 2018 standard.
932
933 std=f2023
934 Fortran
935 Conform to the ISO Fortran 2023 standard.
936
937 std=f202y
938 Fortran
939 Enable experimental Fortran 202y features.
940
941 std=f95
942 Fortran
943 Conform to the ISO Fortran 95 standard.
944
945 std=gnu
946 Fortran
947 Conform to nothing in particular.
948
949 std=legacy
950 Fortran
951 Accept extensions to support legacy code.
952
953 undef
954 Fortran
955 ; Documented in C
956
957 v
958 Fortran
959 ; Documented in C
960
961 ; This comment is to ensure we retain the blank line above.