pr 33870
[official-gcc.git] / gcc / fortran / lang.opt
blob55e8b51602898dd3f8fb6b92d3d962d38c250feb
1 ; Options for the Fortran 95 front end.
2 ; Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
4 ; This file is part of GCC.
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/>.
20 ; See the GCC internals manual for a description of this file's format.
22 ; Please try to keep this file in ASCII collating order.
24 Language
25 Fortran
28 Fortran Joined
29 -I<directory>   Add a directory for INCLUDE and MODULE searching
32 Fortran Joined
33 -J<directory>   Put MODULE files in 'directory'
35 Wall
36 Fortran
37 ; Documented in C
39 Waliasing
40 Fortran Warning
41 Warn about possible aliasing of dummy arguments
43 Wampersand
44 Fortran Warning
45 Warn about missing ampersand in continued character constants
47 Wcharacter-truncation
48 Fortran Warning
49 Warn about truncated character expressions
51 Wconversion
52 Fortran Warning
53 Warn about implicit conversion
55 Wimplicit-interface
56 Fortran Warning
57 Warn about calls with implicit interface
59 Wline-truncation
60 Fortran Warning
61 Warn about truncated source lines
63 Wnonstd-intrinsics
64 Fortran Warning
65 Warn about usage of non-standard intrinsics
67 Wsurprising
68 Fortran Warning
69 Warn about \"suspicious\" constructs
71 Wtabs
72 Fortran Warning
73 Permit nonconforming uses of the tab character
75 Wunderflow
76 Fortran Warning
77 Warn about underflow of numerical constant expressions
79 fall-intrinsics
80 Fortran RejectNegative
81 All intrinsics procedures are available regardless of selected standard
83 fallow-leading-underscore
84 Fortran Undocumented
85 ; For internal use only: allow the first character of symbol names to be an underscore
87 fautomatic
88 Fortran
89 Do not treat local variables and COMMON blocks as if they were named in SAVE statements
91 fbackslash
92 Fortran
93 Specify that backslash in string introduces an escape character
95 fbacktrace
96 Fortran
97 Produce a backtrace when a runtime error is encountered
99 fblas-matmul-limit=
100 Fortran RejectNegative Joined UInteger
101 -fblas-matmul-limit=<n>        Size of the smallest matrix for which matmul will use BLAS
103 fconvert=big-endian
104 Fortran RejectNegative
105 Use big-endian format for unformatted files
107 fconvert=little-endian
108 Fortran RejectNegative
109 Use little-endian format for unformatted files
111 fconvert=native
112 Fortran RejectNegative
113 Use native format for unformatted files
115 fconvert=swap
116 Fortran RejectNegative
117 Swap endianness for unformatted files
119 fcray-pointer
120 Fortran
121 Use the Cray Pointer extension
123 fd-lines-as-code
124 Fortran RejectNegative
125 Ignore 'D' in column one in fixed form
127 fd-lines-as-comments
128 Fortran RejectNegative
129 Treat lines with 'D' in column one as comments
131 fdefault-double-8
132 Fortran
133 Set the default double precision kind to an 8 byte wide type
135 fdefault-integer-8
136 Fortran
137 Set the default integer kind to an 8 byte wide type
139 fdefault-real-8
140 Fortran
141 Set the default real kind to an 8 byte wide type
143 fdollar-ok
144 Fortran
145 Allow dollar signs in entity names
147 fdump-core
148 Fortran
149 Dump a core file when a runtime error occurs
151 fdump-parse-tree
152 Fortran
153 Display the code tree after parsing
155 fexternal-blas
156 Fortran
157 Specify that an external BLAS library should be used for matmul calls on large-size arrays
159 ff2c
160 Fortran
161 Use f2c calling convention
163 ffixed-form
164 Fortran RejectNegative
165 Assume that the source file is fixed form
167 fintrinsic-modules-path
168 Fortran RejectNegative Joined Separate
169 Specify where to find the compiled intrinsic modules
171 ffixed-line-length-none
172 Fortran RejectNegative
173 Allow arbitrary character line width in fixed mode
175 ffixed-line-length-
176 Fortran RejectNegative Joined UInteger
177 -ffixed-line-length-<n>         Use n as character line width in fixed mode
179 ffpe-trap=
180 Fortran RejectNegative JoinedOrMissing
181 -ffpe-trap=[..] Stop on following floating point exceptions
183 ffree-form
184 Fortran RejectNegative
185 Assume that the source file is free form
187 ffree-line-length-none
188 Fortran RejectNegative
189 Allow arbitrary character line width in free mode
191 ffree-line-length-
192 Fortran RejectNegative Joined UInteger
193 -ffree-line-length-<n>          Use n as character line width in free mode
195 fimplicit-none
196 Fortran
197 Specify that no implicit typing is allowed, unless overridden by explicit IMPLICIT statements
199 finit-character=
200 Fortran RejectNegative Joined UInteger
201 -finit-character=<n> Initialize local character variables to ASCII value n
203 finit-integer=
204 Fortran RejectNegative Joined
205 -finit-integer=<n> Initialize local integer variables to n
207 finit-local-zero
208 Fortran
209 Initialize local variables to zero (from g77)
211 finit-logical=
212 Fortran RejectNegative Joined
213 -finit-logical=<true|false> Initialize local logical variables
215 finit-real=
216 Fortran RejectNegative Joined
217 -finit-real=<zero|nan|inf|-inf> Initialize local real variables
219 fmax-errors=
220 Fortran RejectNegative Joined UInteger
221 -fmax-errors=<n>        Maximum number of errors to report
223 fmax-identifier-length=
224 Fortran RejectNegative Joined UInteger
225 -fmax-identifier-length=<n>     Maximum identifier length
227 fmax-subrecord-length=
228 Fortran RejectNegative Joined UInteger
229 -fmax-subrecord-length=<n>      Maximum length for subrecords
231 fmax-stack-var-size=
232 Fortran RejectNegative Joined UInteger
233 -fmax-stack-var-size=<n>        Size in bytes of the largest array that will be put on the stack
235 fmodule-private
236 Fortran
237 Set default accessibility of module entities to PRIVATE.
239 fopenmp
240 Fortran
241 Enable OpenMP (also sets frecursive)
243 fpack-derived
244 Fortran
245 Try to lay out derived types as compactly as possible
247 fpreprocessed
248 Fortran
249 Treat the input file as preprocessed
251 frange-check
252 Fortran
253 Enable range checking during compilation
255 frecord-marker=4
256 Fortran RejectNegative
257 Use a 4-byte record marker for unformatted files
259 frecord-marker=8
260 Fortran RejectNegative
261 Use an 8-byte record marker for unformatted files
263 frecursive
264 Fortran
265 Allocate local variables on the stack to allow indirect recursion
267 frepack-arrays
268 Fortran
269 Copy array sections into a contiguous block on procedure entry
271 fsecond-underscore
272 Fortran
273 Append a second underscore if the name already contains an underscore
275 fshort-enums
276 Fortran
277 Use the narrowest integer type possible for enumeration types
279 fsign-zero
280 Fortran
281 Apply negative sign to zero values
283 funderscoring
284 Fortran
285 Append underscores to externally visible names
287 static-libgfortran
288 Fortran
289 Statically link the GNU Fortran helper library (libgfortran)
291 std=f2003
292 Fortran
293 Conform to the ISO Fortran 2003 standard
295 std=f95
296 Fortran
297 Conform to the ISO Fortran 95 standard
299 std=gnu
300 Fortran
301 Conform to nothing in particular
303 std=legacy
304 Fortran
305 Accept extensions to support legacy code
307 ; This comment is to ensure we retain the blank line above.