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