]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/fortran/lang.opt
opt-functions.awk (lang_enabled_by): Support || for enabled-by.
[thirdparty/gcc.git] / gcc / fortran / lang.opt
1 ; Options for the Fortran 95 front end.
2 ; Copyright (C) 2003-2014 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
198 Warn about possible aliasing of dummy arguments
199
200 Walign-commons
201 Fortran Warning
202 Warn about alignment of COMMON blocks
203
204 Wampersand
205 Fortran Warning
206 Warn about missing ampersand in continued character constants
207
208 Warray-temporaries
209 Fortran Warning
210 Warn about creation of array temporaries
211
212 Wc-binding-type
213 Fortran Var(warn_c_binding_type) Warning LangEnabledBy(Fortran,Wall)
214 Warn if the type of a variable might be not interoperable with C
215
216 Wdate-time
217 Fortran
218 ; Documented in C
219
220 Wcharacter-truncation
221 Fortran Var(warn_character_truncation) Warning LangEnabledBy(Fortran,Wall)
222 Warn about truncated character expressions
223
224 Wcompare-reals
225 Fortran Warning
226 Warn about equality comparisons involving REAL or COMPLEX expressions
227
228 Wconversion
229 Fortran Var(warn_conversion) Warning LangEnabledBy(Fortran,Wall)
230 ; Documented in C
231
232 Wconversion-extra
233 Fortran Var(warn_conversion_extra) Warning
234 Warn about most implicit conversions
235
236 Wextra
237 Fortran Warning
238 Print extra (possibly unwanted) warnings
239
240 Wfunction-elimination
241 Fortran Warning
242 Warn about function call elimination
243
244 Wimplicit-interface
245 Fortran Warning
246 Warn about calls with implicit interface
247
248 Wimplicit-procedure
249 Fortran Warning
250 Warn about called procedures not explicitly declared
251
252 Wline-truncation
253 Fortran Warning
254 Warn about truncated source lines
255
256 Wintrinsics-std
257 Fortran Var(warn_intrinsics_std) Warning LangEnabledBy(Fortran,Wall)
258 Warn on intrinsics not part of the selected standard
259
260 Wmissing-include-dirs
261 Fortran
262 ; Documented in C/C++
263
264 Wuse-without-only
265 Fortran Var(warn_use_without_only) Warning
266 Warn about USE statements that have no ONLY qualifier
267
268 Wopenmp-simd
269 Fortran
270 ; Documented in C
271
272 Wpedantic
273 Fortran
274 ; Documented in common.opt
275
276 Wreal-q-constant
277 Fortran Warning
278 Warn about real-literal-constants with 'q' exponent-letter
279
280 Wrealloc-lhs
281 Fortran Warning
282 Warn when a left-hand-side array variable is reallocated
283
284 Wrealloc-lhs-all
285 Fortran Warning
286 Warn when a left-hand-side variable is reallocated
287
288 Wtarget-lifetime
289 Fortran Warning
290 Warn if the pointer in a pointer assignment might outlive its target
291
292 Wreturn-type
293 Fortran Warning
294 ; Documented in C
295
296 Wsurprising
297 Fortran Warning
298 Warn about \"suspicious\" constructs
299
300 Wtabs
301 Fortran Warning Var(warn_tabs) LangEnabledBy(Fortran,Wall || Wpedantic)
302 Permit nonconforming uses of the tab character
303
304 Wunderflow
305 Fortran Warning
306 Warn about underflow of numerical constant expressions
307
308 Wintrinsic-shadow
309 Fortran Warning
310 Warn if a user-procedure has the same name as an intrinsic
311
312 Wunused-dummy-argument
313 Fortran Warning
314 Warn about unused dummy arguments.
315
316 Wzerotrip
317 Fortran Warning
318 Warn about zero-trip DO loops
319
320 cpp
321 Fortran Negative(nocpp)
322 Enable preprocessing
323
324 cpp=
325 Fortran Joined Negative(nocpp) Undocumented NoDWARFRecord
326 ; Internal option generated by specs from -cpp.
327
328 nocpp
329 Fortran Negative(cpp)
330 Disable preprocessing
331
332 d
333 Fortran Joined
334 ; Documented in common.opt
335
336 faggressive-function-elimination
337 Fortran
338 Eliminate multiple function invokations also for impure functions
339
340 falign-commons
341 Fortran
342 Enable alignment of COMMON blocks
343
344 fall-intrinsics
345 Fortran RejectNegative
346 All intrinsics procedures are available regardless of selected standard
347
348 fallow-leading-underscore
349 Fortran Undocumented
350 ; For internal use only: allow the first character of symbol names to be an underscore
351
352 fautomatic
353 Fortran
354 Do not treat local variables and COMMON blocks as if they were named in SAVE statements
355
356 fbackslash
357 Fortran
358 Specify that backslash in string introduces an escape character
359
360 fbacktrace
361 Fortran
362 Produce a backtrace when a runtime error is encountered
363
364 fblas-matmul-limit=
365 Fortran RejectNegative Joined UInteger
366 -fblas-matmul-limit=<n> Size of the smallest matrix for which matmul will use BLAS
367
368 fcheck-array-temporaries
369 Fortran
370 Produce a warning at runtime if a array temporary has been created for a procedure argument
371
372 fconvert=big-endian
373 Fortran RejectNegative
374 Use big-endian format for unformatted files
375
376 fconvert=little-endian
377 Fortran RejectNegative
378 Use little-endian format for unformatted files
379
380 fconvert=native
381 Fortran RejectNegative
382 Use native format for unformatted files
383
384 fconvert=swap
385 Fortran RejectNegative
386 Swap endianness for unformatted files
387
388 fcray-pointer
389 Fortran
390 Use the Cray Pointer extension
391
392 fd-lines-as-code
393 Fortran RejectNegative
394 Ignore 'D' in column one in fixed form
395
396 fd-lines-as-comments
397 Fortran RejectNegative
398 Treat lines with 'D' in column one as comments
399
400 fdefault-double-8
401 Fortran
402 Set the default double precision kind to an 8 byte wide type
403
404 fdefault-integer-8
405 Fortran
406 Set the default integer kind to an 8 byte wide type
407
408 fdefault-real-8
409 Fortran
410 Set the default real kind to an 8 byte wide type
411
412 fdollar-ok
413 Fortran
414 Allow dollar signs in entity names
415
416 fdump-core
417 Fortran Ignore
418 Does nothing. Preserved for backward compatibility.
419
420 fdump-fortran-original
421 Fortran
422 Display the code tree after parsing
423
424 fdump-fortran-optimized
425 Fortran
426 Display the code tree after front end optimization
427
428 fdump-parse-tree
429 Fortran
430 Display the code tree after parsing; deprecated option
431
432 fexternal-blas
433 Fortran
434 Specify that an external BLAS library should be used for matmul calls on large-size arrays
435
436 ff2c
437 Fortran
438 Use f2c calling convention
439
440 ffixed-form
441 Fortran RejectNegative
442 Assume that the source file is fixed form
443
444 finteger-4-integer-8
445 Fortran RejectNegative
446 Interpret any INTEGER(4) as an INTEGER(8)
447
448 fintrinsic-modules-path
449 Fortran RejectNegative Separate
450 Specify where to find the compiled intrinsic modules
451
452 fintrinsic-modules-path=
453 Fortran RejectNegative Joined
454 Specify where to find the compiled intrinsic modules
455
456 ffixed-line-length-none
457 Fortran RejectNegative
458 Allow arbitrary character line width in fixed mode
459
460 ffixed-line-length-
461 Fortran RejectNegative Joined UInteger
462 -ffixed-line-length-<n> Use n as character line width in fixed mode
463
464 ffpe-trap=
465 Fortran RejectNegative JoinedOrMissing
466 -ffpe-trap=[...] Stop on following floating point exceptions
467
468 ffpe-summary=
469 Fortran RejectNegative JoinedOrMissing
470 -ffpe-summary=[...] Print summary of floating point exceptions
471
472 ffree-form
473 Fortran RejectNegative
474 Assume that the source file is free form
475
476 ffree-line-length-none
477 Fortran RejectNegative
478 Allow arbitrary character line width in free mode
479
480 ffree-line-length-
481 Fortran RejectNegative Joined UInteger
482 -ffree-line-length-<n> Use n as character line width in free mode
483
484 ffrontend-optimize
485 Fortran
486 Enable front end optimization
487
488 fimplicit-none
489 Fortran
490 Specify that no implicit typing is allowed, unless overridden by explicit IMPLICIT statements
491
492 finit-character=
493 Fortran RejectNegative Joined UInteger
494 -finit-character=<n> Initialize local character variables to ASCII value n
495
496 finit-integer=
497 Fortran RejectNegative Joined
498 -finit-integer=<n> Initialize local integer variables to n
499
500 finit-local-zero
501 Fortran
502 Initialize local variables to zero (from g77)
503
504 finit-logical=
505 Fortran RejectNegative Joined
506 -finit-logical=<true|false> Initialize local logical variables
507
508 finit-real=
509 Fortran RejectNegative Joined
510 -finit-real=<zero|nan|inf|-inf> Initialize local real variables
511
512 fmax-array-constructor=
513 Fortran RejectNegative Joined UInteger
514 -fmax-array-constructor=<n> Maximum number of objects in an array constructor
515
516 fmax-identifier-length=
517 Fortran RejectNegative Joined UInteger
518 -fmax-identifier-length=<n> Maximum identifier length
519
520 fmax-subrecord-length=
521 Fortran RejectNegative Joined UInteger
522 -fmax-subrecord-length=<n> Maximum length for subrecords
523
524 fmax-stack-var-size=
525 Fortran RejectNegative Joined UInteger
526 -fmax-stack-var-size=<n> Size in bytes of the largest array that will be put on the stack
527
528 fstack-arrays
529 Fortran
530 Put all local arrays on stack.
531
532 fmodule-private
533 Fortran
534 Set default accessibility of module entities to PRIVATE.
535
536 fopenmp
537 Fortran
538 ; Documented in C
539
540 fopenmp-simd
541 Fortran
542 ; Documented in C
543
544 fpack-derived
545 Fortran
546 Try to lay out derived types as compactly as possible
547
548 fpreprocessed
549 Fortran
550 ; Documented in C
551
552 fprotect-parens
553 Fortran
554 Protect parentheses in expressions
555
556 frange-check
557 Fortran
558 Enable range checking during compilation
559
560 freal-4-real-8
561 Fortran RejectNegative
562 Interpret any REAL(4) as a REAL(8)
563
564 freal-4-real-10
565 Fortran RejectNegative
566 Interpret any REAL(4) as a REAL(10)
567
568 freal-4-real-16
569 Fortran RejectNegative
570 Interpret any REAL(4) as a REAL(16)
571
572 freal-8-real-4
573 Fortran RejectNegative
574 Interpret any REAL(8) as a REAL(4)
575
576 freal-8-real-10
577 Fortran RejectNegative
578 Interpret any REAL(8) as a REAL(10)
579
580 freal-8-real-16
581 Fortran RejectNegative
582 Interpret any REAL(8) as a REAL(16)
583
584 frealloc-lhs
585 Fortran
586 Reallocate the LHS in assignments
587
588 frecord-marker=4
589 Fortran RejectNegative
590 Use a 4-byte record marker for unformatted files
591
592 frecord-marker=8
593 Fortran RejectNegative
594 Use an 8-byte record marker for unformatted files
595
596 frecursive
597 Fortran
598 Allocate local variables on the stack to allow indirect recursion
599
600 frepack-arrays
601 Fortran
602 Copy array sections into a contiguous block on procedure entry
603
604 fcoarray=
605 Fortran RejectNegative JoinedOrMissing
606 -fcoarray=[...] Specify which coarray parallelization should be used
607
608 fcheck=
609 Fortran RejectNegative JoinedOrMissing
610 -fcheck=[...] Specify which runtime checks are to be performed
611
612 fsecond-underscore
613 Fortran
614 Append a second underscore if the name already contains an underscore
615
616 fshort-enums
617 Fortran Var(flag_short_enums)
618 ; Documented in C
619
620 fsign-zero
621 Fortran
622 Apply negative sign to zero values
623
624 funderscoring
625 Fortran
626 Append underscores to externally visible names
627
628 fwhole-file
629 Fortran Ignore
630 Does nothing. Preserved for backward compatibility.
631
632 fworking-directory
633 Fortran
634 ; Documented in C
635
636 idirafter
637 Fortran Joined Separate
638 ; Documented in C
639
640 imultilib
641 Fortran Joined Separate
642 ; Documented in C
643
644 iprefix
645 Fortran Joined Separate
646 ; Documented in C
647
648 iquote
649 Fortran Joined Separate
650 ; Documented in C
651
652 isysroot
653 Fortran Joined Separate
654 ; Documented in C
655
656 isystem
657 Fortran Joined Separate
658 ; Documented in C
659
660 nostdinc
661 Fortran
662 ; Documented in C
663
664 o
665 Fortran Joined Separate
666 ; Documented in common.opt
667
668 static-libgfortran
669 Fortran
670 Statically link the GNU Fortran helper library (libgfortran)
671
672 std=f2003
673 Fortran
674 Conform to the ISO Fortran 2003 standard
675
676 std=f2008
677 Fortran
678 Conform to the ISO Fortran 2008 standard
679
680 std=f2008ts
681 Fortran
682 Conform to the ISO Fortran 2008 standard including TS 29113
683
684 std=f95
685 Fortran
686 Conform to the ISO Fortran 95 standard
687
688 std=gnu
689 Fortran
690 Conform to nothing in particular
691
692 std=legacy
693 Fortran
694 Accept extensions to support legacy code
695
696 undef
697 Fortran
698 ; Documented in C
699
700 v
701 Fortran
702 ; Documented in C
703
704 ; This comment is to ensure we retain the blank line above.