]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/fortran/lang.opt
re PR fortran/54465 (Implement -Wextra for Fortran)
[thirdparty/gcc.git] / gcc / fortran / lang.opt
1 ; Options for the Fortran 95 front end.
2 ; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 ; Free Software Foundation, Inc.
4 ;
5 ; This file is part of GCC.
6 ;
7 ; GCC is free software; you can redistribute it and/or modify it under
8 ; the terms of the GNU General Public License as published by the Free
9 ; Software Foundation; either version 3, or (at your option) any later
10 ; version.
11 ;
12 ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 ; WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 ; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 ; for more details.
16 ;
17 ; You should have received a copy of the GNU General Public License
18 ; along with GCC; see the file COPYING3. If not see
19 ; <http://www.gnu.org/licenses/>.
20
21 ; See the GCC internals manual for a description of this file's format.
22
23 ; Please try to keep this file in ASCII collating order.
24
25 Language
26 Fortran
27
28 -all-warnings
29 Fortran Alias(Wall)
30
31 -assert
32 Fortran Separate Alias(A)
33
34 -assert=
35 Fortran Joined Alias(A)
36
37 -comments
38 Fortran Alias(C)
39
40 -comments-in-macros
41 Fortran Alias(CC)
42
43 -define-macro
44 Fortran Separate Alias(D)
45
46 -define-macro=
47 Fortran Joined Alias(D)
48
49 -dependencies
50 Fortran Alias(M)
51
52 -dump
53 Fortran Separate Alias(d)
54
55 -dump=
56 Fortran Joined Alias(d)
57
58 -include-barrier
59 Fortran Alias(I, -)
60
61 -include-directory
62 Fortran Separate Alias(I)
63
64 -include-directory=
65 Fortran Joined Alias(I)
66
67 -include-directory-after
68 Fortran Separate Alias(idirafter)
69
70 -include-directory-after=
71 Fortran Joined Alias(idirafter)
72
73 -include-prefix
74 Fortran Separate Alias(iprefix)
75
76 -include-prefix=
77 Fortran JoinedOrMissing Alias(iprefix)
78
79 -no-line-commands
80 Fortran Alias(P)
81
82 -no-standard-includes
83 Fortran Alias(nostdinc)
84
85 -output
86 Fortran Separate Alias(o)
87
88 -output=
89 Fortran Joined Alias(o)
90
91 -preprocess
92 Fortran Undocumented Alias(E)
93
94 -print-missing-file-dependencies
95 Fortran Alias(MG)
96
97 -trace-includes
98 Fortran Alias(H)
99
100 -undefine-macro
101 Fortran Separate Alias(U)
102
103 -undefine-macro=
104 Fortran Joined Alias(U)
105
106 -user-dependencies
107 Fortran Alias(MM)
108
109 -verbose
110 Fortran Alias(v)
111
112 -write-dependencies
113 Fortran NoDriverArg Separate Alias(MD)
114
115 -write-user-dependencies
116 Fortran NoDriverArg Separate Alias(MMD)
117
118 A
119 Fortran Joined Separate
120 ; Documented in C
121
122 C
123 Fortran
124 ; Documented in C
125
126 CC
127 Fortran
128 ; Documented in C
129
130 D
131 Fortran Joined Separate
132 ; Documented in C
133
134 E
135 Fortran Undocumented
136
137 H
138 Fortran
139 ; Documented in C
140
141 I
142 Fortran Joined Separate
143 ; Documented in C
144
145 J
146 Fortran Joined Separate
147 -J<directory> Put MODULE files in 'directory'
148
149 M
150 Fortran
151 ; Documented in C
152
153 MD
154 Fortran Separate NoDriverArg
155 ; Documented in C
156
157 MF
158 Fortran Joined Separate
159 ; Documented in C
160
161 MG
162 Fortran
163 ; Documented in C
164
165 MM
166 Fortran
167 ; Documented in C
168
169 MMD
170 Fortran Separate NoDriverArg
171 ; Documented in C
172
173 MP
174 Fortran
175 ; Documented in C
176
177 MT
178 Fortran Joined Separate
179 ; Documented in C
180
181 MQ
182 Fortran Joined Separate
183 ; Documented in C
184
185 P
186 Fortran
187 ; Documented in C
188
189 U
190 Fortran Joined Separate
191 ; Documented in C
192
193 Wall
194 Fortran
195 ; Documented in C
196
197 Waliasing
198 Fortran Warning
199 Warn about possible aliasing of dummy arguments
200
201 Walign-commons
202 Fortran Warning
203 Warn about alignment of COMMON blocks
204
205 Wampersand
206 Fortran Warning
207 Warn about missing ampersand in continued character constants
208
209 Warray-temporaries
210 Fortran Warning
211 Warn about creation of array temporaries
212
213 Wc-binding-type
214 Fortran Warning
215 Warn if the type of a variable might be not interoperable with C
216
217 Wcharacter-truncation
218 Fortran Warning
219 Warn about truncated character expressions
220
221 Wcompare-reals
222 Fortran Warning
223 Warn about equality comparisons involving REAL or COMPLEX expressions
224
225 Wconversion
226 Fortran Warning
227 ; Documented in C
228
229 Wconversion-extra
230 Fortran Warning
231 Warn about most implicit conversions
232
233 Wextra
234 Fortran Warning
235 Print extra (possibly unwanted) warnings
236
237 Wfunction-elimination
238 Fortran Warning
239 Warn about function call elimination
240
241 Wimplicit-interface
242 Fortran Warning
243 Warn about calls with implicit interface
244
245 Wimplicit-procedure
246 Fortran Warning
247 Warn about called procedures not explicitly declared
248
249 Wline-truncation
250 Fortran Warning
251 Warn about truncated source lines
252
253 Wintrinsics-std
254 Fortran Warning
255 Warn on intrinsics not part of the selected standard
256
257 Wreal-q-constant
258 Fortran Warning
259 Warn about real-literal-constants with 'q' exponent-letter
260
261 Wrealloc-lhs
262 Fortran Warning
263 Warn when a left-hand-side array variable is reallocated
264
265 Wrealloc-lhs-all
266 Fortran Warning
267 Warn when a left-hand-side variable is reallocated
268
269 Wtarget-lifetime
270 Fortran Warning
271 Warn if the pointer in a pointer assignment might outlive its target
272
273 Wreturn-type
274 Fortran Warning
275 ; Documented in C
276
277 Wsurprising
278 Fortran Warning
279 Warn about \"suspicious\" constructs
280
281 Wtabs
282 Fortran Warning
283 Permit nonconforming uses of the tab character
284
285 Wunderflow
286 Fortran Warning
287 Warn about underflow of numerical constant expressions
288
289 Wintrinsic-shadow
290 Fortran Warning
291 Warn if a user-procedure has the same name as an intrinsic
292
293 Wunused-dummy-argument
294 Fortran Warning
295 Warn about unused dummy arguments.
296
297 cpp
298 Fortran Negative(nocpp)
299 Enable preprocessing
300
301 cpp=
302 Fortran Joined Negative(nocpp) Undocumented NoDWARFRecord
303 ; Internal option generated by specs from -cpp.
304
305 nocpp
306 Fortran Negative(cpp)
307 Disable preprocessing
308
309 d
310 Fortran Joined
311 ; Documented in common.opt
312
313 faggressive-function-elimination
314 Fortran
315 Eliminate multiple function invokations also for impure functions
316
317 falign-commons
318 Fortran
319 Enable alignment of COMMON blocks
320
321 fall-intrinsics
322 Fortran RejectNegative
323 All intrinsics procedures are available regardless of selected standard
324
325 fallow-leading-underscore
326 Fortran Undocumented
327 ; For internal use only: allow the first character of symbol names to be an underscore
328
329 fautomatic
330 Fortran
331 Do not treat local variables and COMMON blocks as if they were named in SAVE statements
332
333 fbackslash
334 Fortran
335 Specify that backslash in string introduces an escape character
336
337 fbacktrace
338 Fortran
339 Produce a backtrace when a runtime error is encountered
340
341 fblas-matmul-limit=
342 Fortran RejectNegative Joined UInteger
343 -fblas-matmul-limit=<n> Size of the smallest matrix for which matmul will use BLAS
344
345 fcheck-array-temporaries
346 Fortran
347 Produce a warning at runtime if a array temporary has been created for a procedure argument
348
349 fconvert=big-endian
350 Fortran RejectNegative
351 Use big-endian format for unformatted files
352
353 fconvert=little-endian
354 Fortran RejectNegative
355 Use little-endian format for unformatted files
356
357 fconvert=native
358 Fortran RejectNegative
359 Use native format for unformatted files
360
361 fconvert=swap
362 Fortran RejectNegative
363 Swap endianness for unformatted files
364
365 fcray-pointer
366 Fortran
367 Use the Cray Pointer extension
368
369 fd-lines-as-code
370 Fortran RejectNegative
371 Ignore 'D' in column one in fixed form
372
373 fd-lines-as-comments
374 Fortran RejectNegative
375 Treat lines with 'D' in column one as comments
376
377 fdefault-double-8
378 Fortran
379 Set the default double precision kind to an 8 byte wide type
380
381 fdefault-integer-8
382 Fortran
383 Set the default integer kind to an 8 byte wide type
384
385 fdefault-real-8
386 Fortran
387 Set the default real kind to an 8 byte wide type
388
389 fdollar-ok
390 Fortran
391 Allow dollar signs in entity names
392
393 fdump-core
394 Fortran Ignore
395 Does nothing. Preserved for backward compatibility.
396
397 fdump-fortran-original
398 Fortran
399 Display the code tree after parsing
400
401 fdump-fortran-optimized
402 Fortran
403 Display the code tree after front end optimization
404
405 fdump-parse-tree
406 Fortran
407 Display the code tree after parsing; deprecated option
408
409 fexternal-blas
410 Fortran
411 Specify that an external BLAS library should be used for matmul calls on large-size arrays
412
413 ff2c
414 Fortran
415 Use f2c calling convention
416
417 ffixed-form
418 Fortran RejectNegative
419 Assume that the source file is fixed form
420
421 finteger-4-integer-8
422 Fortran RejectNegative
423 Interpret any INTEGER(4) as an INTEGER(8)
424
425 fintrinsic-modules-path
426 Fortran RejectNegative Joined Separate
427 Specify where to find the compiled intrinsic modules
428
429 ffixed-line-length-none
430 Fortran RejectNegative
431 Allow arbitrary character line width in fixed mode
432
433 ffixed-line-length-
434 Fortran RejectNegative Joined UInteger
435 -ffixed-line-length-<n> Use n as character line width in fixed mode
436
437 ffpe-trap=
438 Fortran RejectNegative JoinedOrMissing
439 -ffpe-trap=[...] Stop on following floating point exceptions
440
441 ffree-form
442 Fortran RejectNegative
443 Assume that the source file is free form
444
445 ffree-line-length-none
446 Fortran RejectNegative
447 Allow arbitrary character line width in free mode
448
449 ffree-line-length-
450 Fortran RejectNegative Joined UInteger
451 -ffree-line-length-<n> Use n as character line width in free mode
452
453 ffrontend-optimize
454 Fortran
455 Enable front end optimization
456
457 fimplicit-none
458 Fortran
459 Specify that no implicit typing is allowed, unless overridden by explicit IMPLICIT statements
460
461 finit-character=
462 Fortran RejectNegative Joined UInteger
463 -finit-character=<n> Initialize local character variables to ASCII value n
464
465 finit-integer=
466 Fortran RejectNegative Joined
467 -finit-integer=<n> Initialize local integer variables to n
468
469 finit-local-zero
470 Fortran
471 Initialize local variables to zero (from g77)
472
473 finit-logical=
474 Fortran RejectNegative Joined
475 -finit-logical=<true|false> Initialize local logical variables
476
477 finit-real=
478 Fortran RejectNegative Joined
479 -finit-real=<zero|nan|inf|-inf> Initialize local real variables
480
481 fmax-array-constructor=
482 Fortran RejectNegative Joined UInteger
483 -fmax-array-constructor=<n> Maximum number of objects in an array constructor
484
485 fmax-identifier-length=
486 Fortran RejectNegative Joined UInteger
487 -fmax-identifier-length=<n> Maximum identifier length
488
489 fmax-subrecord-length=
490 Fortran RejectNegative Joined UInteger
491 -fmax-subrecord-length=<n> Maximum length for subrecords
492
493 fmax-stack-var-size=
494 Fortran RejectNegative Joined UInteger
495 -fmax-stack-var-size=<n> Size in bytes of the largest array that will be put on the stack
496
497 fstack-arrays
498 Fortran
499 Put all local arrays on stack.
500
501 fmodule-private
502 Fortran
503 Set default accessibility of module entities to PRIVATE.
504
505 fopenmp
506 Fortran
507 ; Documented in C
508
509 fpack-derived
510 Fortran
511 Try to lay out derived types as compactly as possible
512
513 fpreprocessed
514 Fortran
515 ; Documented in C
516
517 fprotect-parens
518 Fortran
519 Protect parentheses in expressions
520
521 frange-check
522 Fortran
523 Enable range checking during compilation
524
525 freal-4-real-8
526 Fortran RejectNegative
527 Interpret any REAL(4) as a REAL(8)
528
529 freal-4-real-10
530 Fortran RejectNegative
531 Interpret any REAL(4) as a REAL(10)
532
533 freal-4-real-16
534 Fortran RejectNegative
535 Interpret any REAL(4) as a REAL(16)
536
537 freal-8-real-4
538 Fortran RejectNegative
539 Interpret any REAL(8) as a REAL(4)
540
541 freal-8-real-10
542 Fortran RejectNegative
543 Interpret any REAL(8) as a REAL(10)
544
545 freal-8-real-16
546 Fortran RejectNegative
547 Interpret any REAL(8) as a REAL(16)
548
549 frealloc-lhs
550 Fortran
551 Reallocate the LHS in assignments
552
553 frecord-marker=4
554 Fortran RejectNegative
555 Use a 4-byte record marker for unformatted files
556
557 frecord-marker=8
558 Fortran RejectNegative
559 Use an 8-byte record marker for unformatted files
560
561 frecursive
562 Fortran
563 Allocate local variables on the stack to allow indirect recursion
564
565 frepack-arrays
566 Fortran
567 Copy array sections into a contiguous block on procedure entry
568
569 fcoarray=
570 Fortran RejectNegative JoinedOrMissing
571 -fcoarray=[...] Specify which coarray parallelization should be used
572
573 fcheck=
574 Fortran RejectNegative JoinedOrMissing
575 -fcheck=[...] Specify which runtime checks are to be performed
576
577 fsecond-underscore
578 Fortran
579 Append a second underscore if the name already contains an underscore
580
581 fshort-enums
582 Fortran Var(flag_short_enums)
583 ; Documented in C
584
585 fsign-zero
586 Fortran
587 Apply negative sign to zero values
588
589 funderscoring
590 Fortran
591 Append underscores to externally visible names
592
593 fwhole-file
594 Fortran
595 Compile all program units at once and check all interfaces
596
597 fworking-directory
598 Fortran
599 ; Documented in C
600
601 idirafter
602 Fortran Joined Separate
603 ; Documented in C
604
605 imultilib
606 Fortran Joined Separate
607 ; Documented in C
608
609 iprefix
610 Fortran Joined Separate
611 ; Documented in C
612
613 iquote
614 Fortran Joined Separate
615 ; Documented in C
616
617 isysroot
618 Fortran Joined Separate
619 ; Documented in C
620
621 isystem
622 Fortran Joined Separate
623 ; Documented in C
624
625 nostdinc
626 Fortran
627 ; Documented in C
628
629 o
630 Fortran Joined Separate
631 ; Documented in common.opt
632
633 static-libgfortran
634 Fortran
635 Statically link the GNU Fortran helper library (libgfortran)
636
637 std=f2003
638 Fortran
639 Conform to the ISO Fortran 2003 standard
640
641 std=f2008
642 Fortran
643 Conform to the ISO Fortran 2008 standard
644
645 std=f2008ts
646 Fortran
647 Conform to the ISO Fortran 2008 standard including TS 29113
648
649 std=f95
650 Fortran
651 Conform to the ISO Fortran 95 standard
652
653 std=gnu
654 Fortran
655 Conform to nothing in particular
656
657 std=legacy
658 Fortran
659 Accept extensions to support legacy code
660
661 undef
662 Fortran
663 ; Documented in C
664
665 v
666 Fortran
667 ; Documented in C
668
669 ; This comment is to ensure we retain the blank line above.