Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / fortran / lang.opt
blob1f3ef9d0574614da2c4683a6ae76e66a6ae1ad2c
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
29 Fortran Joined Separate
30 ; Documented in C
33 Fortran
34 ; Documented in C
37 Fortran
38 ; Documented in C
41 Fortran Joined Separate
42 ; Documented in C
45 Fortran Undocumented
48 Fortran
49 ; Documented in C
52 Fortran Joined Separate
53 ; Documented in C
56 Fortran Joined Separate
57 -J<directory>   Put MODULE files in 'directory'
60 Fortran
61 ; Documented in C
64 Fortran Separate
65 ; Documented in C
68 Fortran Joined Separate
69 ; Documented in C
72 Fortran
73 ; Documented in C
76 Fortran
77 ; Documented in C
79 MMD
80 Fortran Separate
81 ; Documented in C
84 Fortran
85 ; Documented in C
88 Fortran Joined Separate
89 ; Documented in C
92 Fortran Joined Separate
93 ; Documented in C
96 Fortran
97 ; Documented in C
100 Fortran Joined Separate
101 ; Documented in C
103 Wall
104 Fortran
105 ; Documented in C
107 Waliasing
108 Fortran Warning
109 Warn about possible aliasing of dummy arguments
111 Walign-commons
112 Fortran Warning
113 Warn about alignment of COMMON blocks
115 Wampersand
116 Fortran Warning
117 Warn about missing ampersand in continued character constants
119 Warray-temporaries
120 Fortran Warning
121 Warn about creation of array temporaries
123 Wcharacter-truncation
124 Fortran Warning
125 Warn about truncated character expressions
127 Wconversion
128 Fortran Warning
129 ; Documented in C
131 Wconversion-extra
132 Fortran Warning
133 Warn about most implicit conversions
135 Wimplicit-interface
136 Fortran Warning
137 Warn about calls with implicit interface
139 Wimplicit-procedure
140 Fortran Warning
141 Warn about called procedures not explicitly declared
143 Wline-truncation
144 Fortran Warning
145 Warn about truncated source lines
147 Wintrinsics-std
148 Fortran Warning
149 Warn on intrinsics not part of the selected standard
151 Wreturn-type
152 Fortran Warning
153 ; Documented in C
155 Wsurprising
156 Fortran Warning
157 Warn about \"suspicious\" constructs
159 Wtabs
160 Fortran Warning
161 Permit nonconforming uses of the tab character
163 Wunderflow
164 Fortran Warning
165 Warn about underflow of numerical constant expressions
167 Wintrinsic-shadow
168 Fortran Warning
169 Warn if a user-procedure has the same name as an intrinsic
171 Wunused-dummy-argument
172 Fortran Warning
173 Warn about unused dummy arguments.
176 Fortran Joined Separate Negative(nocpp)
177 Enable preprocessing
179 nocpp
180 Fortran Negative(cpp)
181 Disable preprocessing
184 Fortran Joined
185 ; Documented in common.opt
187 falign-commons
188 Fortran
189 Enable alignment of COMMON blocks
191 fall-intrinsics
192 Fortran RejectNegative
193 All intrinsics procedures are available regardless of selected standard
195 fallow-leading-underscore
196 Fortran Undocumented
197 ; For internal use only: allow the first character of symbol names to be an underscore
199 fautomatic
200 Fortran
201 Do not treat local variables and COMMON blocks as if they were named in SAVE statements
203 fbackslash
204 Fortran
205 Specify that backslash in string introduces an escape character
207 fbacktrace
208 Fortran
209 Produce a backtrace when a runtime error is encountered
211 fblas-matmul-limit=
212 Fortran RejectNegative Joined UInteger
213 -fblas-matmul-limit=<n> Size of the smallest matrix for which matmul will use BLAS
215 fcheck-array-temporaries
216 Fortran
217 Produce a warning at runtime if a array temporary has been created for a procedure argument
219 fconvert=big-endian
220 Fortran RejectNegative
221 Use big-endian format for unformatted files
223 fconvert=little-endian
224 Fortran RejectNegative
225 Use little-endian format for unformatted files
227 fconvert=native
228 Fortran RejectNegative
229 Use native format for unformatted files
231 fconvert=swap
232 Fortran RejectNegative
233 Swap endianness for unformatted files
235 fcray-pointer
236 Fortran
237 Use the Cray Pointer extension
239 fd-lines-as-code
240 Fortran RejectNegative
241 Ignore 'D' in column one in fixed form
243 fd-lines-as-comments
244 Fortran RejectNegative
245 Treat lines with 'D' in column one as comments
247 fdefault-double-8
248 Fortran
249 Set the default double precision kind to an 8 byte wide type
251 fdefault-integer-8
252 Fortran
253 Set the default integer kind to an 8 byte wide type
255 fdefault-real-8
256 Fortran
257 Set the default real kind to an 8 byte wide type
259 fdollar-ok
260 Fortran
261 Allow dollar signs in entity names
263 fdump-core
264 Fortran
265 Dump a core file when a runtime error occurs
267 fdump-parse-tree
268 Fortran
269 Display the code tree after parsing
271 fexternal-blas
272 Fortran
273 Specify that an external BLAS library should be used for matmul calls on large-size arrays
275 ff2c
276 Fortran
277 Use f2c calling convention
279 ffixed-form
280 Fortran RejectNegative
281 Assume that the source file is fixed form
283 fintrinsic-modules-path
284 Fortran RejectNegative Joined Separate
285 Specify where to find the compiled intrinsic modules
287 ffixed-line-length-none
288 Fortran RejectNegative
289 Allow arbitrary character line width in fixed mode
291 ffixed-line-length-
292 Fortran RejectNegative Joined UInteger
293 -ffixed-line-length-<n> Use n as character line width in fixed mode
295 ffpe-trap=
296 Fortran RejectNegative JoinedOrMissing
297 -ffpe-trap=[...]        Stop on following floating point exceptions
299 ffree-form
300 Fortran RejectNegative
301 Assume that the source file is free form
303 ffree-line-length-none
304 Fortran RejectNegative
305 Allow arbitrary character line width in free mode
307 ffree-line-length-
308 Fortran RejectNegative Joined UInteger
309 -ffree-line-length-<n>  Use n as character line width in free mode
311 fimplicit-none
312 Fortran
313 Specify that no implicit typing is allowed, unless overridden by explicit IMPLICIT statements
315 finit-character=
316 Fortran RejectNegative Joined UInteger
317 -finit-character=<n>    Initialize local character variables to ASCII value n
319 finit-integer=
320 Fortran RejectNegative Joined
321 -finit-integer=<n>      Initialize local integer variables to n
323 finit-local-zero
324 Fortran
325 Initialize local variables to zero (from g77)
327 finit-logical=
328 Fortran RejectNegative Joined
329 -finit-logical=<true|false>     Initialize local logical variables
331 finit-real=
332 Fortran RejectNegative Joined
333 -finit-real=<zero|nan|inf|-inf> Initialize local real variables
335 fmax-array-constructor=
336 Fortran RejectNegative Joined UInteger
337 -fmax-array-constructor=<n>     Maximum number of objects in an array constructor
339 fmax-errors=
340 Fortran RejectNegative Joined UInteger
341 -fmax-errors=<n>        Maximum number of errors to report
343 fmax-identifier-length=
344 Fortran RejectNegative Joined UInteger
345 -fmax-identifier-length=<n>     Maximum identifier length
347 fmax-subrecord-length=
348 Fortran RejectNegative Joined UInteger
349 -fmax-subrecord-length=<n>      Maximum length for subrecords
351 fmax-stack-var-size=
352 Fortran RejectNegative Joined UInteger
353 -fmax-stack-var-size=<n>        Size in bytes of the largest array that will be put on the stack
355 fmodule-private
356 Fortran
357 Set default accessibility of module entities to PRIVATE.
359 fopenmp
360 Fortran
361 ; Documented in C
363 fpack-derived
364 Fortran
365 Try to lay out derived types as compactly as possible
367 fpreprocessed
368 Fortran
369 ; Documented in C
371 fprotect-parens
372 Fortran
373 Protect parentheses in expressions
375 frange-check
376 Fortran
377 Enable range checking during compilation
379 frecord-marker=4
380 Fortran RejectNegative
381 Use a 4-byte record marker for unformatted files
383 frecord-marker=8
384 Fortran RejectNegative
385 Use an 8-byte record marker for unformatted files
387 frecursive
388 Fortran
389 Allocate local variables on the stack to allow indirect recursion
391 frepack-arrays
392 Fortran
393 Copy array sections into a contiguous block on procedure entry
395 fcoarray=
396 Fortran RejectNegative JoinedOrMissing
397 -fcoarray=[...] Specify which coarray parallelization should be used
399 fcheck=
400 Fortran RejectNegative JoinedOrMissing
401 -fcheck=[...]   Specify which runtime checks are to be performed
403 fsecond-underscore
404 Fortran
405 Append a second underscore if the name already contains an underscore
407 fshort-enums
408 Fortran Var(flag_short_enums) VarExists
409 ; Documented in C
411 fsign-zero
412 Fortran
413 Apply negative sign to zero values
415 funderscoring
416 Fortran
417 Append underscores to externally visible names
419 fwhole-file
420 Fortran
421 Compile all program units at once and check all interfaces
423 fworking-directory
424 Fortran
425 ; Documented in C
427 idirafter
428 Fortran Joined Separate
429 ; Documented in C
431 imultilib
432 Fortran Joined Separate
433 ; Documented in C
435 iprefix
436 Fortran Joined Separate
437 ; Documented in C
439 iquote
440 Fortran Joined Separate
441 ; Documented in C
443 isysroot
444 Fortran Joined Separate
445 ; Documented in C
447 isystem
448 Fortran Joined Separate
449 ; Documented in C
451 nostdinc
452 Fortran
453 ; Documented in C
456 Fortran Joined Separate
457 ; Documented in common.opt
459 static-libgfortran
460 Fortran
461 Statically link the GNU Fortran helper library (libgfortran)
463 std=f2003
464 Fortran
465 Conform to the ISO Fortran 2003 standard
467 std=f2008
468 Fortran
469 Conform to the ISO Fortran 2008 standard
471 std=f95
472 Fortran
473 Conform to the ISO Fortran 95 standard
475 std=gnu
476 Fortran
477 Conform to nothing in particular
479 std=legacy
480 Fortran
481 Accept extensions to support legacy code
483 undef
484 Fortran
485 ; Documented in C
488 Fortran
489 ; Documented in C
491 ; This comment is to ensure we retain the blank line above.