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