common.opt (-assemble, [...]): New.
[official-gcc.git] / gcc / fortran / lang.opt
blobd523bdfe66c0fa84eead158dea75e40111f2cacc
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-parse-tree
362 Fortran
363 Display the code tree after parsing
365 fexternal-blas
366 Fortran
367 Specify that an external BLAS library should be used for matmul calls on large-size arrays
369 ff2c
370 Fortran
371 Use f2c calling convention
373 ffixed-form
374 Fortran RejectNegative
375 Assume that the source file is fixed form
377 fintrinsic-modules-path
378 Fortran RejectNegative Joined Separate
379 Specify where to find the compiled intrinsic modules
381 ffixed-line-length-none
382 Fortran RejectNegative
383 Allow arbitrary character line width in fixed mode
385 ffixed-line-length-
386 Fortran RejectNegative Joined UInteger
387 -ffixed-line-length-<n> Use n as character line width in fixed mode
389 ffpe-trap=
390 Fortran RejectNegative JoinedOrMissing
391 -ffpe-trap=[...]        Stop on following floating point exceptions
393 ffree-form
394 Fortran RejectNegative
395 Assume that the source file is free form
397 ffree-line-length-none
398 Fortran RejectNegative
399 Allow arbitrary character line width in free mode
401 ffree-line-length-
402 Fortran RejectNegative Joined UInteger
403 -ffree-line-length-<n>  Use n as character line width in free mode
405 fimplicit-none
406 Fortran
407 Specify that no implicit typing is allowed, unless overridden by explicit IMPLICIT statements
409 finit-character=
410 Fortran RejectNegative Joined UInteger
411 -finit-character=<n>    Initialize local character variables to ASCII value n
413 finit-integer=
414 Fortran RejectNegative Joined
415 -finit-integer=<n>      Initialize local integer variables to n
417 finit-local-zero
418 Fortran
419 Initialize local variables to zero (from g77)
421 finit-logical=
422 Fortran RejectNegative Joined
423 -finit-logical=<true|false>     Initialize local logical variables
425 finit-real=
426 Fortran RejectNegative Joined
427 -finit-real=<zero|nan|inf|-inf> Initialize local real variables
429 fmax-array-constructor=
430 Fortran RejectNegative Joined UInteger
431 -fmax-array-constructor=<n>     Maximum number of objects in an array constructor
433 fmax-errors=
434 Fortran RejectNegative Joined UInteger
435 -fmax-errors=<n>        Maximum number of errors to report
437 fmax-identifier-length=
438 Fortran RejectNegative Joined UInteger
439 -fmax-identifier-length=<n>     Maximum identifier length
441 fmax-subrecord-length=
442 Fortran RejectNegative Joined UInteger
443 -fmax-subrecord-length=<n>      Maximum length for subrecords
445 fmax-stack-var-size=
446 Fortran RejectNegative Joined UInteger
447 -fmax-stack-var-size=<n>        Size in bytes of the largest array that will be put on the stack
449 fmodule-private
450 Fortran
451 Set default accessibility of module entities to PRIVATE.
453 fopenmp
454 Fortran
455 ; Documented in C
457 fpack-derived
458 Fortran
459 Try to lay out derived types as compactly as possible
461 fpreprocessed
462 Fortran
463 ; Documented in C
465 fprotect-parens
466 Fortran
467 Protect parentheses in expressions
469 frange-check
470 Fortran
471 Enable range checking during compilation
473 frecord-marker=4
474 Fortran RejectNegative
475 Use a 4-byte record marker for unformatted files
477 frecord-marker=8
478 Fortran RejectNegative
479 Use an 8-byte record marker for unformatted files
481 frecursive
482 Fortran
483 Allocate local variables on the stack to allow indirect recursion
485 frepack-arrays
486 Fortran
487 Copy array sections into a contiguous block on procedure entry
489 fcoarray=
490 Fortran RejectNegative JoinedOrMissing
491 -fcoarray=[...] Specify which coarray parallelization should be used
493 fcheck=
494 Fortran RejectNegative JoinedOrMissing
495 -fcheck=[...]   Specify which runtime checks are to be performed
497 fsecond-underscore
498 Fortran
499 Append a second underscore if the name already contains an underscore
501 fshort-enums
502 Fortran Var(flag_short_enums) VarExists
503 ; Documented in C
505 fsign-zero
506 Fortran
507 Apply negative sign to zero values
509 funderscoring
510 Fortran
511 Append underscores to externally visible names
513 fwhole-file
514 Fortran
515 Compile all program units at once and check all interfaces
517 fworking-directory
518 Fortran
519 ; Documented in C
521 idirafter
522 Fortran Joined Separate
523 ; Documented in C
525 imultilib
526 Fortran Joined Separate
527 ; Documented in C
529 iprefix
530 Fortran Joined Separate
531 ; Documented in C
533 iquote
534 Fortran Joined Separate
535 ; Documented in C
537 isysroot
538 Fortran Joined Separate
539 ; Documented in C
541 isystem
542 Fortran Joined Separate
543 ; Documented in C
545 nostdinc
546 Fortran
547 ; Documented in C
550 Fortran Joined Separate
551 ; Documented in common.opt
553 static-libgfortran
554 Fortran
555 Statically link the GNU Fortran helper library (libgfortran)
557 std=f2003
558 Fortran
559 Conform to the ISO Fortran 2003 standard
561 std=f2008
562 Fortran
563 Conform to the ISO Fortran 2008 standard
565 std=f95
566 Fortran
567 Conform to the ISO Fortran 95 standard
569 std=gnu
570 Fortran
571 Conform to nothing in particular
573 std=legacy
574 Fortran
575 Accept extensions to support legacy code
577 undef
578 Fortran
579 ; Documented in C
582 Fortran
583 ; Documented in C
585 ; This comment is to ensure we retain the blank line above.