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