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