2010-11-28 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / fortran / lang.opt
blob69b3144d65662392d2970a7182260e9f82c85bac
1 ; Options for the Fortran 95 front end.
2 ; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
3 ; Free Software Foundation, Inc.
5 ; This file is part of GCC.
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/>.
21 ; See the GCC internals manual for a description of this file's format.
23 ; Please try to keep this file in ASCII collating order.
25 Language
26 Fortran
28 -all-warnings
29 Fortran Alias(Wall)
31 -assert
32 Fortran Separate Alias(A)
34 -assert=
35 Fortran Joined Alias(A)
37 -comments
38 Fortran Alias(C)
40 -comments-in-macros
41 Fortran Alias(CC)
43 -define-macro
44 Fortran Separate Alias(D)
46 -define-macro=
47 Fortran Joined Alias(D)
49 -dependencies
50 Fortran Alias(M)
52 -dump
53 Fortran Separate Alias(d)
55 -dump=
56 Fortran Joined Alias(d)
58 -include-barrier
59 Fortran Alias(I, -)
61 -include-directory
62 Fortran Separate Alias(I)
64 -include-directory=
65 Fortran Joined Alias(I)
67 -include-directory-after
68 Fortran Separate Alias(idirafter)
70 -include-directory-after=
71 Fortran Joined Alias(idirafter)
73 -include-prefix
74 Fortran Separate Alias(iprefix)
76 -include-prefix=
77 Fortran JoinedOrMissing Alias(iprefix)
79 -no-line-commands
80 Fortran Alias(P)
82 -no-standard-includes
83 Fortran Alias(nostdinc)
85 -output
86 Fortran Separate Alias(o)
88 -output=
89 Fortran Joined Alias(o)
91 -preprocess
92 Fortran Undocumented Alias(E)
94 -print-missing-file-dependencies
95 Fortran Alias(MG)
97 -trace-includes
98 Fortran Alias(H)
100 -undefine-macro
101 Fortran Separate Alias(U)
103 -undefine-macro=
104 Fortran Joined Alias(U)
106 -user-dependencies
107 Fortran Alias(MM)
109 -verbose
110 Fortran Alias(v)
112 -write-dependencies
113 Fortran NoDriverArg Separate Alias(MD)
115 -write-user-dependencies
116 Fortran NoDriverArg Separate Alias(MMD)
119 Fortran Joined Separate
120 ; Documented in C
123 Fortran
124 ; Documented in C
127 Fortran
128 ; Documented in C
131 Fortran Joined Separate
132 ; Documented in C
135 Fortran Undocumented
138 Fortran
139 ; Documented in C
142 Fortran Joined Separate
143 ; Documented in C
146 Fortran Joined Separate
147 -J<directory>   Put MODULE files in 'directory'
150 Fortran
151 ; Documented in C
154 Fortran Separate NoDriverArg
155 ; Documented in C
158 Fortran Joined Separate
159 ; Documented in C
162 Fortran
163 ; Documented in C
166 Fortran
167 ; Documented in C
170 Fortran Separate NoDriverArg
171 ; Documented in C
174 Fortran
175 ; Documented in C
178 Fortran Joined Separate
179 ; Documented in C
182 Fortran Joined Separate
183 ; Documented in C
186 Fortran
187 ; Documented in C
190 Fortran Joined Separate
191 ; Documented in C
193 Wall
194 Fortran
195 ; Documented in C
197 Waliasing
198 Fortran Warning
199 Warn about possible aliasing of dummy arguments
201 Walign-commons
202 Fortran Warning
203 Warn about alignment of COMMON blocks
205 Wampersand
206 Fortran Warning
207 Warn about missing ampersand in continued character constants
209 Warray-temporaries
210 Fortran Warning
211 Warn about creation of array temporaries
213 Wcharacter-truncation
214 Fortran Warning
215 Warn about truncated character expressions
217 Wconversion
218 Fortran Warning
219 ; Documented in C
221 Wconversion-extra
222 Fortran Warning
223 Warn about most implicit conversions
225 Wimplicit-interface
226 Fortran Warning
227 Warn about calls with implicit interface
229 Wimplicit-procedure
230 Fortran Warning
231 Warn about called procedures not explicitly declared
233 Wline-truncation
234 Fortran Warning
235 Warn about truncated source lines
237 Wintrinsics-std
238 Fortran Warning
239 Warn on intrinsics not part of the selected standard
241 Wreturn-type
242 Fortran Warning
243 ; Documented in C
245 Wsurprising
246 Fortran Warning
247 Warn about \"suspicious\" constructs
249 Wtabs
250 Fortran Warning
251 Permit nonconforming uses of the tab character
253 Wunderflow
254 Fortran Warning
255 Warn about underflow of numerical constant expressions
257 Wintrinsic-shadow
258 Fortran Warning
259 Warn if a user-procedure has the same name as an intrinsic
261 Wunused-dummy-argument
262 Fortran Warning
263 Warn about unused dummy arguments.
266 Fortran Negative(nocpp)
267 Enable preprocessing
269 cpp=
270 Fortran Joined Negative(nocpp) Undocumented
271 ; Internal option generated by specs from -cpp.
273 nocpp
274 Fortran Negative(cpp)
275 Disable preprocessing
278 Fortran Joined
279 ; Documented in common.opt
281 falign-commons
282 Fortran
283 Enable alignment of COMMON blocks
285 fall-intrinsics
286 Fortran RejectNegative
287 All intrinsics procedures are available regardless of selected standard
289 fallow-leading-underscore
290 Fortran Undocumented
291 ; For internal use only: allow the first character of symbol names to be an underscore
293 fautomatic
294 Fortran
295 Do not treat local variables and COMMON blocks as if they were named in SAVE statements
297 fbackslash
298 Fortran
299 Specify that backslash in string introduces an escape character
301 fbacktrace
302 Fortran
303 Produce a backtrace when a runtime error is encountered
305 fblas-matmul-limit=
306 Fortran RejectNegative Joined UInteger
307 -fblas-matmul-limit=<n> Size of the smallest matrix for which matmul will use BLAS
309 fcheck-array-temporaries
310 Fortran
311 Produce a warning at runtime if a array temporary has been created for a procedure argument
313 fconvert=big-endian
314 Fortran RejectNegative
315 Use big-endian format for unformatted files
317 fconvert=little-endian
318 Fortran RejectNegative
319 Use little-endian format for unformatted files
321 fconvert=native
322 Fortran RejectNegative
323 Use native format for unformatted files
325 fconvert=swap
326 Fortran RejectNegative
327 Swap endianness for unformatted files
329 fcray-pointer
330 Fortran
331 Use the Cray Pointer extension
333 fd-lines-as-code
334 Fortran RejectNegative
335 Ignore 'D' in column one in fixed form
337 fd-lines-as-comments
338 Fortran RejectNegative
339 Treat lines with 'D' in column one as comments
341 fdefault-double-8
342 Fortran
343 Set the default double precision kind to an 8 byte wide type
345 fdefault-integer-8
346 Fortran
347 Set the default integer kind to an 8 byte wide type
349 fdefault-real-8
350 Fortran
351 Set the default real kind to an 8 byte wide type
353 fdollar-ok
354 Fortran
355 Allow dollar signs in entity names
357 fdump-core
358 Fortran
359 Dump a core file when a runtime error occurs
361 fdump-fortran-original
362 Fortran
363 Display the code tree after parsing
365 fdump-fortran-optimized
366 Fortran
367 Display the code tree after front end optimization
369 fdump-parse-tree
370 Fortran
371 Display the code tree after parsing; deprecated option
373 fexternal-blas
374 Fortran
375 Specify that an external BLAS library should be used for matmul calls on large-size arrays
377 ff2c
378 Fortran
379 Use f2c calling convention
381 ffixed-form
382 Fortran RejectNegative
383 Assume that the source file is fixed form
385 fintrinsic-modules-path
386 Fortran RejectNegative Joined Separate
387 Specify where to find the compiled intrinsic modules
389 ffixed-line-length-none
390 Fortran RejectNegative
391 Allow arbitrary character line width in fixed mode
393 ffixed-line-length-
394 Fortran RejectNegative Joined UInteger
395 -ffixed-line-length-<n> Use n as character line width in fixed mode
397 ffpe-trap=
398 Fortran RejectNegative JoinedOrMissing
399 -ffpe-trap=[...]        Stop on following floating point exceptions
401 ffree-form
402 Fortran RejectNegative
403 Assume that the source file is free form
405 ffree-line-length-none
406 Fortran RejectNegative
407 Allow arbitrary character line width in free mode
409 ffree-line-length-
410 Fortran RejectNegative Joined UInteger
411 -ffree-line-length-<n>  Use n as character line width in free mode
413 fimplicit-none
414 Fortran
415 Specify that no implicit typing is allowed, unless overridden by explicit IMPLICIT statements
417 finit-character=
418 Fortran RejectNegative Joined UInteger
419 -finit-character=<n>    Initialize local character variables to ASCII value n
421 finit-integer=
422 Fortran RejectNegative Joined
423 -finit-integer=<n>      Initialize local integer variables to n
425 finit-local-zero
426 Fortran
427 Initialize local variables to zero (from g77)
429 finit-logical=
430 Fortran RejectNegative Joined
431 -finit-logical=<true|false>     Initialize local logical variables
433 finit-real=
434 Fortran RejectNegative Joined
435 -finit-real=<zero|nan|inf|-inf> Initialize local real variables
437 fmax-array-constructor=
438 Fortran RejectNegative Joined UInteger
439 -fmax-array-constructor=<n>     Maximum number of objects in an array constructor
441 fmax-identifier-length=
442 Fortran RejectNegative Joined UInteger
443 -fmax-identifier-length=<n>     Maximum identifier length
445 fmax-subrecord-length=
446 Fortran RejectNegative Joined UInteger
447 -fmax-subrecord-length=<n>      Maximum length for subrecords
449 fmax-stack-var-size=
450 Fortran RejectNegative Joined UInteger
451 -fmax-stack-var-size=<n>        Size in bytes of the largest array that will be put on the stack
453 fmodule-private
454 Fortran
455 Set default accessibility of module entities to PRIVATE.
457 fopenmp
458 Fortran
459 ; Documented in C
461 fpack-derived
462 Fortran
463 Try to lay out derived types as compactly as possible
465 fpreprocessed
466 Fortran
467 ; Documented in C
469 fprotect-parens
470 Fortran
471 Protect parentheses in expressions
473 frange-check
474 Fortran
475 Enable range checking during compilation
477 frealloc-lhs
478 Fortran
479 Reallocate the LHS in assignments
481 frecord-marker=4
482 Fortran RejectNegative
483 Use a 4-byte record marker for unformatted files
485 frecord-marker=8
486 Fortran RejectNegative
487 Use an 8-byte record marker for unformatted files
489 frecursive
490 Fortran
491 Allocate local variables on the stack to allow indirect recursion
493 frepack-arrays
494 Fortran
495 Copy array sections into a contiguous block on procedure entry
497 fcoarray=
498 Fortran RejectNegative JoinedOrMissing
499 -fcoarray=[...] Specify which coarray parallelization should be used
501 fcheck=
502 Fortran RejectNegative JoinedOrMissing
503 -fcheck=[...]   Specify which runtime checks are to be performed
505 fsecond-underscore
506 Fortran
507 Append a second underscore if the name already contains an underscore
509 fshort-enums
510 Fortran Var(flag_short_enums)
511 ; Documented in C
513 fsign-zero
514 Fortran
515 Apply negative sign to zero values
517 funderscoring
518 Fortran
519 Append underscores to externally visible names
521 fwhole-file
522 Fortran
523 Compile all program units at once and check all interfaces
525 fworking-directory
526 Fortran
527 ; Documented in C
529 idirafter
530 Fortran Joined Separate
531 ; Documented in C
533 imultilib
534 Fortran Joined Separate
535 ; Documented in C
537 iprefix
538 Fortran Joined Separate
539 ; Documented in C
541 iquote
542 Fortran Joined Separate
543 ; Documented in C
545 isysroot
546 Fortran Joined Separate
547 ; Documented in C
549 isystem
550 Fortran Joined Separate
551 ; Documented in C
553 nostdinc
554 Fortran
555 ; Documented in C
558 Fortran Joined Separate
559 ; Documented in common.opt
561 static-libgfortran
562 Fortran
563 Statically link the GNU Fortran helper library (libgfortran)
565 std=f2003
566 Fortran
567 Conform to the ISO Fortran 2003 standard
569 std=f2008
570 Fortran
571 Conform to the ISO Fortran 2008 standard
573 std=f95
574 Fortran
575 Conform to the ISO Fortran 95 standard
577 std=gnu
578 Fortran
579 Conform to nothing in particular
581 std=legacy
582 Fortran
583 Accept extensions to support legacy code
585 undef
586 Fortran
587 ; Documented in C
590 Fortran
591 ; Documented in C
593 ; This comment is to ensure we retain the blank line above.