arm-linux-gnueabihf-gfortran.1 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552
  1. .\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is turned on, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .nr rF 0
  58. .if \n(.g .if rF .nr rF 1
  59. .if (\n(rF:(\n(.g==0)) \{
  60. . if \nF \{
  61. . de IX
  62. . tm Index:\\$1\t\\n%\t"\\$2"
  63. ..
  64. . if !\nF==2 \{
  65. . nr % 0
  66. . nr F 2
  67. . \}
  68. . \}
  69. .\}
  70. .rr rF
  71. .\"
  72. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  73. .\" Fear. Run. Save yourself. No user-serviceable parts.
  74. . \" fudge factors for nroff and troff
  75. .if n \{\
  76. . ds #H 0
  77. . ds #V .8m
  78. . ds #F .3m
  79. . ds #[ \f1
  80. . ds #] \fP
  81. .\}
  82. .if t \{\
  83. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  84. . ds #V .6m
  85. . ds #F 0
  86. . ds #[ \&
  87. . ds #] \&
  88. .\}
  89. . \" simple accents for nroff and troff
  90. .if n \{\
  91. . ds ' \&
  92. . ds ` \&
  93. . ds ^ \&
  94. . ds , \&
  95. . ds ~ ~
  96. . ds /
  97. .\}
  98. .if t \{\
  99. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  100. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  101. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  102. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  103. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  104. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  105. .\}
  106. . \" troff and (daisy-wheel) nroff accents
  107. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  108. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  109. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  110. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  111. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  112. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  113. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  114. .ds ae a\h'-(\w'a'u*4/10)'e
  115. .ds Ae A\h'-(\w'A'u*4/10)'E
  116. . \" corrections for vroff
  117. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  118. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  119. . \" for low resolution devices (crt and lpr)
  120. .if \n(.H>23 .if \n(.V>19 \
  121. \{\
  122. . ds : e
  123. . ds 8 ss
  124. . ds o a
  125. . ds d- d\h'-1'\(ga
  126. . ds D- D\h'-1'\(hy
  127. . ds th \o'bp'
  128. . ds Th \o'LP'
  129. . ds ae ae
  130. . ds Ae AE
  131. .\}
  132. .rm #[ #] #H #V #F C
  133. .\" ========================================================================
  134. .\"
  135. .IX Title "GFORTRAN 1"
  136. .TH GFORTRAN 1 "2019-11-14" "gcc-7.5.0" "GNU"
  137. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  138. .\" way too many mistakes in technical documents.
  139. .if n .ad l
  140. .nh
  141. .SH "NAME"
  142. gfortran \- GNU Fortran compiler
  143. .SH "SYNOPSIS"
  144. .IX Header "SYNOPSIS"
  145. gfortran [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR]
  146. [\fB\-g\fR] [\fB\-pg\fR] [\fB\-O\fR\fIlevel\fR]
  147. [\fB\-W\fR\fIwarn\fR...] [\fB\-pedantic\fR]
  148. [\fB\-I\fR\fIdir\fR...] [\fB\-L\fR\fIdir\fR...]
  149. [\fB\-D\fR\fImacro\fR[=\fIdefn\fR]...] [\fB\-U\fR\fImacro\fR]
  150. [\fB\-f\fR\fIoption\fR...]
  151. [\fB\-m\fR\fImachine-option\fR...]
  152. [\fB\-o\fR \fIoutfile\fR] \fIinfile\fR...
  153. .PP
  154. Only the most useful options are listed here; see below for the
  155. remainder.
  156. .SH "DESCRIPTION"
  157. .IX Header "DESCRIPTION"
  158. The \fBgfortran\fR command supports all the options supported by the
  159. \&\fBgcc\fR command. Only options specific to \s-1GNU\s0 Fortran are documented
  160. here.
  161. .PP
  162. All \s-1GCC\s0 and \s-1GNU\s0 Fortran options
  163. are accepted both by \fBgfortran\fR and by \fBgcc\fR
  164. (as well as any other drivers built at the same time,
  165. such as \fBg++\fR),
  166. since adding \s-1GNU\s0 Fortran to the \s-1GCC\s0 distribution
  167. enables acceptance of \s-1GNU\s0 Fortran options
  168. by all of the relevant drivers.
  169. .PP
  170. In some cases, options have positive and negative forms;
  171. the negative form of \fB\-ffoo\fR would be \fB\-fno\-foo\fR.
  172. This manual documents only one of these two forms, whichever
  173. one is not the default.
  174. .SH "OPTIONS"
  175. .IX Header "OPTIONS"
  176. Here is a summary of all the options specific to \s-1GNU\s0 Fortran, grouped
  177. by type. Explanations are in the following sections.
  178. .IP "\fIFortran Language Options\fR" 4
  179. .IX Item "Fortran Language Options"
  180. \&\fB\-fall\-intrinsics \-fbackslash \-fcray\-pointer \-fd\-lines\-as\-code
  181. \&\-fd\-lines\-as\-comments
  182. \&\-fdec \-fdec\-structure \-fdec\-intrinsic\-ints \-fdec\-static \-fdec\-math
  183. \&\-fdefault\-double\-8 \-fdefault\-integer\-8
  184. \&\-fdefault\-real\-8 \-fdollar\-ok \-ffixed\-line\-length\-\fR\fIn\fR
  185. \&\fB\-ffixed\-line\-length\-none \-ffree\-form \-ffree\-line\-length\-\fR\fIn\fR
  186. \&\fB\-ffree\-line\-length\-none \-fimplicit\-none \-finteger\-4\-integer\-8
  187. \&\-fmax\-identifier\-length \-fmodule\-private \-ffixed\-form \-fno\-range\-check
  188. \&\-fopenacc \-fopenmp \-freal\-4\-real\-10 \-freal\-4\-real\-16 \-freal\-4\-real\-8
  189. \&\-freal\-8\-real\-10 \-freal\-8\-real\-16 \-freal\-8\-real\-4 \-std=\fR\fIstd\fR
  190. \&\fB\-ftest\-forall\-temp\fR
  191. .IP "\fIPreprocessing Options\fR" 4
  192. .IX Item "Preprocessing Options"
  193. \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR]
  194. \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR \fB\-C \-CC \-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]
  195. \&\fB\-H \-P
  196. \&\-U\fR\fImacro\fR \fB\-cpp \-dD \-dI \-dM \-dN \-dU \-fworking\-directory
  197. \&\-imultilib\fR \fIdir\fR
  198. \&\fB\-iprefix\fR \fIfile\fR \fB\-iquote \-isysroot\fR \fIdir\fR \fB\-isystem\fR \fIdir\fR \fB\-nocpp
  199. \&\-nostdinc
  200. \&\-undef\fR
  201. .IP "\fIError and Warning Options\fR" 4
  202. .IX Item "Error and Warning Options"
  203. \&\fB\-Waliasing \-Wall \-Wampersand \-Wargument\-mismatch \-Warray\-bounds
  204. \&\-Wc\-binding\-type \-Wcharacter\-truncation
  205. \&\-Wconversion \-Wfunction\-elimination \-Wimplicit\-interface
  206. \&\-Wimplicit\-procedure \-Wintrinsic\-shadow \-Wuse\-without\-only \-Wintrinsics\-std
  207. \&\-Wline\-truncation \-Wno\-align\-commons \-Wno\-tabs \-Wreal\-q\-constant
  208. \&\-Wsurprising \-Wunderflow \-Wunused\-parameter \-Wrealloc\-lhs \-Wrealloc\-lhs\-all
  209. \&\-Wtarget\-lifetime \-fmax\-errors=\fR\fIn\fR \fB\-fsyntax\-only \-pedantic \-pedantic\-errors\fR
  210. .IP "\fIDebugging Options\fR" 4
  211. .IX Item "Debugging Options"
  212. \&\fB\-fbacktrace \-fdump\-fortran\-optimized \-fdump\-fortran\-original
  213. \&\-fdump\-parse\-tree \-ffpe\-trap=\fR\fIlist\fR \fB\-ffpe\-summary=\fR\fIlist\fR\fB \fR
  214. .IP "\fIDirectory Options\fR" 4
  215. .IX Item "Directory Options"
  216. \&\fB\-I\fR\fIdir\fR \fB\-J\fR\fIdir\fR \fB\-fintrinsic\-modules\-path\fR \fIdir\fR
  217. .IP "\fILink Options\fR" 4
  218. .IX Item "Link Options"
  219. \&\fB\-static\-libgfortran\fR
  220. .IP "\fIRuntime Options\fR" 4
  221. .IX Item "Runtime Options"
  222. \&\fB\-fconvert=\fR\fIconversion\fR \fB\-fmax\-subrecord\-length=\fR\fIlength\fR
  223. \&\fB\-frecord\-marker=\fR\fIlength\fR \fB\-fsign\-zero\fR
  224. .IP "\fICode Generation Options\fR" 4
  225. .IX Item "Code Generation Options"
  226. \&\fB\-faggressive\-function\-elimination \-fblas\-matmul\-limit=\fR\fIn\fR
  227. \&\fB\-fbounds\-check \-ftail\-call\-workaround \-ftail\-call\-workaround=\fR\fIn\fR
  228. \&\fB\-fcheck\-array\-temporaries
  229. \&\-fcheck=\fR\fI<all|array\-temps|bounds|do|mem|pointer|recursion>\fR
  230. \&\fB\-fcoarray=\fR\fI<none|single|lib>\fR \fB\-fexternal\-blas \-ff2c
  231. \&\-ffrontend\-optimize
  232. \&\-finit\-character=\fR\fIn\fR \fB\-finit\-integer=\fR\fIn\fR \fB\-finit\-local\-zero
  233. \&\-finit\-derived
  234. \&\-finit\-logical=\fR\fI<true|false>\fR
  235. \&\fB\-finit\-real=\fR\fI<zero|inf|\-inf|nan|snan>\fR
  236. \&\fB\-finline\-matmul\-limit=\fR\fIn\fR
  237. \&\fB\-fmax\-array\-constructor=\fR\fIn\fR \fB\-fmax\-stack\-var\-size=\fR\fIn\fR
  238. \&\fB\-fno\-align\-commons
  239. \&\-fno\-automatic \-fno\-protect\-parens \-fno\-underscoring
  240. \&\-fsecond\-underscore \-fpack\-derived \-frealloc\-lhs \-frecursive
  241. \&\-frepack\-arrays \-fshort\-enums \-fstack\-arrays\fR
  242. .SS "Options controlling Fortran dialect"
  243. .IX Subsection "Options controlling Fortran dialect"
  244. The following options control the details of the Fortran dialect
  245. accepted by the compiler:
  246. .IP "\fB\-ffree\-form\fR" 4
  247. .IX Item "-ffree-form"
  248. .PD 0
  249. .IP "\fB\-ffixed\-form\fR" 4
  250. .IX Item "-ffixed-form"
  251. .PD
  252. Specify the layout used by the source file. The free form layout
  253. was introduced in Fortran 90. Fixed form was traditionally used in
  254. older Fortran programs. When neither option is specified, the source
  255. form is determined by the file extension.
  256. .IP "\fB\-fall\-intrinsics\fR" 4
  257. .IX Item "-fall-intrinsics"
  258. This option causes all intrinsic procedures (including the GNU-specific
  259. extensions) to be accepted. This can be useful with \fB\-std=f95\fR to
  260. force standard-compliance but get access to the full range of intrinsics
  261. available with \fBgfortran\fR. As a consequence, \fB\-Wintrinsics\-std\fR
  262. will be ignored and no user-defined procedure with the same name as any
  263. intrinsic will be called except when it is explicitly declared \f(CW\*(C`EXTERNAL\*(C'\fR.
  264. .IP "\fB\-fd\-lines\-as\-code\fR" 4
  265. .IX Item "-fd-lines-as-code"
  266. .PD 0
  267. .IP "\fB\-fd\-lines\-as\-comments\fR" 4
  268. .IX Item "-fd-lines-as-comments"
  269. .PD
  270. Enable special treatment for lines beginning with \f(CW\*(C`d\*(C'\fR or \f(CW\*(C`D\*(C'\fR
  271. in fixed form sources. If the \fB\-fd\-lines\-as\-code\fR option is
  272. given they are treated as if the first column contained a blank. If the
  273. \&\fB\-fd\-lines\-as\-comments\fR option is given, they are treated as
  274. comment lines.
  275. .IP "\fB\-fdec\fR" 4
  276. .IX Item "-fdec"
  277. \&\s-1DEC\s0 compatibility mode. Enables extensions and other features that mimic
  278. the default behavior of older compilers (such as \s-1DEC\s0).
  279. These features are non-standard and should be avoided at all costs.
  280. For details on \s-1GNU\s0 Fortran's implementation of these extensions see the
  281. full documentation.
  282. .Sp
  283. Other flags enabled by this switch are:
  284. \&\fB\-fdollar\-ok\fR \fB\-fcray\-pointer\fR \fB\-fdec\-structure\fR
  285. \&\fB\-fdec\-intrinsic\-ints\fR \fB\-fdec\-static\fR \fB\-fdec\-math\fR
  286. .Sp
  287. If \fB\-fd\-lines\-as\-code\fR/\fB\-fd\-lines\-as\-comments\fR are unset, then
  288. \&\fB\-fdec\fR also sets \fB\-fd\-lines\-as\-comments\fR.
  289. .IP "\fB\-fdec\-structure\fR" 4
  290. .IX Item "-fdec-structure"
  291. Enable \s-1DEC \s0\f(CW\*(C`STRUCTURE\*(C'\fR and \f(CW\*(C`RECORD\*(C'\fR as well as \f(CW\*(C`UNION\*(C'\fR,
  292. \&\f(CW\*(C`MAP\*(C'\fR, and dot ('.') as a member separator (in addition to '%'). This is
  293. provided for compatibility only; Fortran 90 derived types should be used
  294. instead where possible.
  295. .IP "\fB\-fdec\-intrinsic\-ints\fR" 4
  296. .IX Item "-fdec-intrinsic-ints"
  297. Enable B/I/J/K kind variants of existing integer functions (e.g. \s-1BIAND, IIAND,
  298. JIAND,\s0 etc...). For a complete list of intrinsics see the full documentation.
  299. .IP "\fB\-fdec\-math\fR" 4
  300. .IX Item "-fdec-math"
  301. Enable legacy math intrinsics such as \s-1COTAN\s0 and degree-valued trigonometric
  302. functions (e.g. \s-1TAND, ATAND,\s0 etc...) for compatability with older code.
  303. .IP "\fB\-fdec\-static\fR" 4
  304. .IX Item "-fdec-static"
  305. Enable DEC-style \s-1STATIC\s0 and \s-1AUTOMATIC\s0 attributes to explicitly specify
  306. the storage of variables and other objects.
  307. .IP "\fB\-fdollar\-ok\fR" 4
  308. .IX Item "-fdollar-ok"
  309. Allow \fB$\fR as a valid non-first character in a symbol name. Symbols
  310. that start with \fB$\fR are rejected since it is unclear which rules to
  311. apply to implicit typing as different vendors implement different rules.
  312. Using \fB$\fR in \f(CW\*(C`IMPLICIT\*(C'\fR statements is also rejected.
  313. .IP "\fB\-fbackslash\fR" 4
  314. .IX Item "-fbackslash"
  315. Change the interpretation of backslashes in string literals from a single
  316. backslash character to \*(L"C\-style\*(R" escape characters. The following
  317. combinations are expanded \f(CW\*(C`\ea\*(C'\fR, \f(CW\*(C`\eb\*(C'\fR, \f(CW\*(C`\ef\*(C'\fR, \f(CW\*(C`\en\*(C'\fR,
  318. \&\f(CW\*(C`\er\*(C'\fR, \f(CW\*(C`\et\*(C'\fR, \f(CW\*(C`\ev\*(C'\fR, \f(CW\*(C`\e\e\*(C'\fR, and \f(CW\*(C`\e0\*(C'\fR to the \s-1ASCII\s0
  319. characters alert, backspace, form feed, newline, carriage return,
  320. horizontal tab, vertical tab, backslash, and \s-1NUL,\s0 respectively.
  321. Additionally, \f(CW\*(C`\ex\*(C'\fR\fInn\fR, \f(CW\*(C`\eu\*(C'\fR\fInnnn\fR and
  322. \&\f(CW\*(C`\eU\*(C'\fR\fInnnnnnnn\fR (where each \fIn\fR is a hexadecimal digit) are
  323. translated into the Unicode characters corresponding to the specified code
  324. points. All other combinations of a character preceded by \e are
  325. unexpanded.
  326. .IP "\fB\-fmodule\-private\fR" 4
  327. .IX Item "-fmodule-private"
  328. Set the default accessibility of module entities to \f(CW\*(C`PRIVATE\*(C'\fR.
  329. Use-associated entities will not be accessible unless they are explicitly
  330. declared as \f(CW\*(C`PUBLIC\*(C'\fR.
  331. .IP "\fB\-ffixed\-line\-length\-\fR\fIn\fR" 4
  332. .IX Item "-ffixed-line-length-n"
  333. Set column after which characters are ignored in typical fixed-form
  334. lines in the source file, and through which spaces are assumed (as
  335. if padded to that length) after the ends of short fixed-form lines.
  336. .Sp
  337. Popular values for \fIn\fR include 72 (the
  338. standard and the default), 80 (card image), and 132 (corresponding
  339. to \*(L"extended-source\*(R" options in some popular compilers).
  340. \&\fIn\fR may also be \fBnone\fR, meaning that the entire line is meaningful
  341. and that continued character constants never have implicit spaces appended
  342. to them to fill out the line.
  343. \&\fB\-ffixed\-line\-length\-0\fR means the same thing as
  344. \&\fB\-ffixed\-line\-length\-none\fR.
  345. .IP "\fB\-ffree\-line\-length\-\fR\fIn\fR" 4
  346. .IX Item "-ffree-line-length-n"
  347. Set column after which characters are ignored in typical free-form
  348. lines in the source file. The default value is 132.
  349. \&\fIn\fR may be \fBnone\fR, meaning that the entire line is meaningful.
  350. \&\fB\-ffree\-line\-length\-0\fR means the same thing as
  351. \&\fB\-ffree\-line\-length\-none\fR.
  352. .IP "\fB\-fmax\-identifier\-length=\fR\fIn\fR" 4
  353. .IX Item "-fmax-identifier-length=n"
  354. Specify the maximum allowed identifier length. Typical values are
  355. 31 (Fortran 95) and 63 (Fortran 2003 and Fortran 2008).
  356. .IP "\fB\-fimplicit\-none\fR" 4
  357. .IX Item "-fimplicit-none"
  358. Specify that no implicit typing is allowed, unless overridden by explicit
  359. \&\f(CW\*(C`IMPLICIT\*(C'\fR statements. This is the equivalent of adding
  360. \&\f(CW\*(C`implicit none\*(C'\fR to the start of every procedure.
  361. .IP "\fB\-fcray\-pointer\fR" 4
  362. .IX Item "-fcray-pointer"
  363. Enable the Cray pointer extension, which provides C\-like pointer
  364. functionality.
  365. .IP "\fB\-fopenacc\fR" 4
  366. .IX Item "-fopenacc"
  367. Enable the OpenACC extensions. This includes OpenACC \f(CW\*(C`!$acc\*(C'\fR
  368. directives in free form and \f(CW\*(C`c$acc\*(C'\fR, \f(CW*$acc\fR and
  369. \&\f(CW\*(C`!$acc\*(C'\fR directives in fixed form, \f(CW\*(C`!$\*(C'\fR conditional
  370. compilation sentinels in free form and \f(CW\*(C`c$\*(C'\fR, \f(CW\*(C`*$\*(C'\fR and
  371. \&\f(CW\*(C`!$\*(C'\fR sentinels in fixed form, and when linking arranges for the
  372. OpenACC runtime library to be linked in.
  373. .Sp
  374. Note that this is an experimental feature, incomplete, and subject to
  375. change in future versions of \s-1GCC. \s0 See
  376. <\fBhttps://gcc.gnu.org/wiki/OpenACC\fR> for more information.
  377. .IP "\fB\-fopenmp\fR" 4
  378. .IX Item "-fopenmp"
  379. Enable the OpenMP extensions. This includes OpenMP \f(CW\*(C`!$omp\*(C'\fR directives
  380. in free form
  381. and \f(CW\*(C`c$omp\*(C'\fR, \f(CW*$omp\fR and \f(CW\*(C`!$omp\*(C'\fR directives in fixed form,
  382. \&\f(CW\*(C`!$\*(C'\fR conditional compilation sentinels in free form
  383. and \f(CW\*(C`c$\*(C'\fR, \f(CW\*(C`*$\*(C'\fR and \f(CW\*(C`!$\*(C'\fR sentinels in fixed form,
  384. and when linking arranges for the OpenMP runtime library to be linked
  385. in. The option \fB\-fopenmp\fR implies \fB\-frecursive\fR.
  386. .IP "\fB\-fno\-range\-check\fR" 4
  387. .IX Item "-fno-range-check"
  388. Disable range checking on results of simplification of constant
  389. expressions during compilation. For example, \s-1GNU\s0 Fortran will give
  390. an error at compile time when simplifying \f(CW\*(C`a = 1. / 0\*(C'\fR.
  391. With this option, no error will be given and \f(CW\*(C`a\*(C'\fR will be assigned
  392. the value \f(CW\*(C`+Infinity\*(C'\fR. If an expression evaluates to a value
  393. outside of the relevant range of [\f(CW\*(C`\-HUGE()\*(C'\fR:\f(CW\*(C`HUGE()\*(C'\fR],
  394. then the expression will be replaced by \f(CW\*(C`\-Inf\*(C'\fR or \f(CW\*(C`+Inf\*(C'\fR
  395. as appropriate.
  396. Similarly, \f(CW\*(C`DATA i/Z\*(AqFFFFFFFF\*(Aq/\*(C'\fR will result in an integer overflow
  397. on most systems, but with \fB\-fno\-range\-check\fR the value will
  398. \&\*(L"wrap around\*(R" and \f(CW\*(C`i\*(C'\fR will be initialized to \-1 instead.
  399. .IP "\fB\-fdefault\-integer\-8\fR" 4
  400. .IX Item "-fdefault-integer-8"
  401. Set the default integer and logical types to an 8 byte wide type. This option
  402. also affects the kind of integer constants like \f(CW42\fR. Unlike
  403. \&\fB\-finteger\-4\-integer\-8\fR, it does not promote variables with explicit
  404. kind declaration.
  405. .IP "\fB\-fdefault\-real\-8\fR" 4
  406. .IX Item "-fdefault-real-8"
  407. Set the default real type to an 8 byte wide type. This option also affects
  408. the kind of non-double real constants like \f(CW1.0\fR, and does promote
  409. the default width of \f(CW\*(C`DOUBLE PRECISION\*(C'\fR to 16 bytes if possible, unless
  410. \&\f(CW\*(C`\-fdefault\-double\-8\*(C'\fR is given, too. Unlike \fB\-freal\-4\-real\-8\fR,
  411. it does not promote variables with explicit kind declaration.
  412. .IP "\fB\-fdefault\-double\-8\fR" 4
  413. .IX Item "-fdefault-double-8"
  414. Set the \f(CW\*(C`DOUBLE PRECISION\*(C'\fR type to an 8 byte wide type. Do nothing if this
  415. is already the default. If \fB\-fdefault\-real\-8\fR is given,
  416. \&\f(CW\*(C`DOUBLE PRECISION\*(C'\fR would instead be promoted to 16 bytes if possible, and
  417. \&\fB\-fdefault\-double\-8\fR can be used to prevent this. The kind of real
  418. constants like \f(CW\*(C`1.d0\*(C'\fR will not be changed by \fB\-fdefault\-real\-8\fR
  419. though, so also \fB\-fdefault\-double\-8\fR does not affect it.
  420. .IP "\fB\-finteger\-4\-integer\-8\fR" 4
  421. .IX Item "-finteger-4-integer-8"
  422. Promote all \f(CW\*(C`INTEGER(KIND=4)\*(C'\fR entities to an \f(CW\*(C`INTEGER(KIND=8)\*(C'\fR
  423. entities. If \f(CW\*(C`KIND=8\*(C'\fR is unavailable, then an error will be issued.
  424. This option should be used with care and may not be suitable for your codes.
  425. Areas of possible concern include calls to external procedures,
  426. alignment in \f(CW\*(C`EQUIVALENCE\*(C'\fR and/or \f(CW\*(C`COMMON\*(C'\fR, generic interfaces,
  427. \&\s-1BOZ\s0 literal constant conversion, and I/O. Inspection of the intermediate
  428. representation of the translated Fortran code, produced by
  429. \&\fB\-fdump\-tree\-original\fR, is suggested.
  430. .IP "\fB\-freal\-4\-real\-8\fR" 4
  431. .IX Item "-freal-4-real-8"
  432. .PD 0
  433. .IP "\fB\-freal\-4\-real\-10\fR" 4
  434. .IX Item "-freal-4-real-10"
  435. .IP "\fB\-freal\-4\-real\-16\fR" 4
  436. .IX Item "-freal-4-real-16"
  437. .IP "\fB\-freal\-8\-real\-4\fR" 4
  438. .IX Item "-freal-8-real-4"
  439. .IP "\fB\-freal\-8\-real\-10\fR" 4
  440. .IX Item "-freal-8-real-10"
  441. .IP "\fB\-freal\-8\-real\-16\fR" 4
  442. .IX Item "-freal-8-real-16"
  443. .PD
  444. Promote all \f(CW\*(C`REAL(KIND=M)\*(C'\fR entities to \f(CW\*(C`REAL(KIND=N)\*(C'\fR entities.
  445. If \f(CW\*(C`REAL(KIND=N)\*(C'\fR is unavailable, then an error will be issued.
  446. All other real kind types are unaffected by this option.
  447. These options should be used with care and may not be suitable for your
  448. codes. Areas of possible concern include calls to external procedures,
  449. alignment in \f(CW\*(C`EQUIVALENCE\*(C'\fR and/or \f(CW\*(C`COMMON\*(C'\fR, generic interfaces,
  450. \&\s-1BOZ\s0 literal constant conversion, and I/O. Inspection of the intermediate
  451. representation of the translated Fortran code, produced by
  452. \&\fB\-fdump\-tree\-original\fR, is suggested.
  453. .IP "\fB\-std=\fR\fIstd\fR" 4
  454. .IX Item "-std=std"
  455. Specify the standard to which the program is expected to conform, which
  456. may be one of \fBf95\fR, \fBf2003\fR, \fBf2008\fR, \fBgnu\fR, or
  457. \&\fBlegacy\fR. The default value for \fIstd\fR is \fBgnu\fR, which
  458. specifies a superset of the Fortran 95 standard that includes all of the
  459. extensions supported by \s-1GNU\s0 Fortran, although warnings will be given for
  460. obsolete extensions not recommended for use in new code. The
  461. \&\fBlegacy\fR value is equivalent but without the warnings for obsolete
  462. extensions, and may be useful for old non-standard programs. The
  463. \&\fBf95\fR, \fBf2003\fR and \fBf2008\fR values specify strict
  464. conformance to the Fortran 95, Fortran 2003 and Fortran 2008 standards,
  465. respectively; errors are given for all extensions beyond the relevant
  466. language standard, and warnings are given for the Fortran 77 features
  467. that are permitted but obsolescent in later standards. \fB\-std=f2008ts\fR
  468. allows the Fortran 2008 standard including the additions of the
  469. Technical Specification (\s-1TS\s0) 29113 on Further Interoperability of Fortran
  470. with C and \s-1TS 18508\s0 on Additional Parallel Features in Fortran.
  471. .IP "\fB\-ftest\-forall\-temp\fR" 4
  472. .IX Item "-ftest-forall-temp"
  473. Enhance test coverage by forcing most forall assignments to use temporary.
  474. .SS "Enable and customize preprocessing"
  475. .IX Subsection "Enable and customize preprocessing"
  476. Preprocessor related options. See section
  477. \&\fBPreprocessing and conditional compilation\fR for more detailed
  478. information on preprocessing in \fBgfortran\fR.
  479. .IP "\fB\-cpp\fR" 4
  480. .IX Item "-cpp"
  481. .PD 0
  482. .IP "\fB\-nocpp\fR" 4
  483. .IX Item "-nocpp"
  484. .PD
  485. Enable preprocessing. The preprocessor is automatically invoked if
  486. the file extension is \fI.fpp\fR, \fI.FPP\fR, \fI.F\fR, \fI.FOR\fR,
  487. \&\fI.FTN\fR, \fI.F90\fR, \fI.F95\fR, \fI.F03\fR or \fI.F08\fR. Use
  488. this option to manually enable preprocessing of any kind of Fortran file.
  489. .Sp
  490. To disable preprocessing of files with any of the above listed extensions,
  491. use the negative form: \fB\-nocpp\fR.
  492. .Sp
  493. The preprocessor is run in traditional mode. Any restrictions of the
  494. file-format, especially the limits on line length, apply for
  495. preprocessed output as well, so it might be advisable to use the
  496. \&\fB\-ffree\-line\-length\-none\fR or \fB\-ffixed\-line\-length\-none\fR
  497. options.
  498. .IP "\fB\-dM\fR" 4
  499. .IX Item "-dM"
  500. Instead of the normal output, generate a list of \f(CW\*(Aq#define\*(Aq\fR
  501. directives for all the macros defined during the execution of the
  502. preprocessor, including predefined macros. This gives you a way
  503. of finding out what is predefined in your version of the preprocessor.
  504. Assuming you have no file \fIfoo.f90\fR, the command
  505. .Sp
  506. .Vb 1
  507. \& touch foo.f90; gfortran \-cpp \-E \-dM foo.f90
  508. .Ve
  509. .Sp
  510. will show all the predefined macros.
  511. .IP "\fB\-dD\fR" 4
  512. .IX Item "-dD"
  513. Like \fB\-dM\fR except in two respects: it does not include the
  514. predefined macros, and it outputs both the \f(CW\*(C`#define\*(C'\fR directives
  515. and the result of preprocessing. Both kinds of output go to the
  516. standard output file.
  517. .IP "\fB\-dN\fR" 4
  518. .IX Item "-dN"
  519. Like \fB\-dD\fR, but emit only the macro names, not their expansions.
  520. .IP "\fB\-dU\fR" 4
  521. .IX Item "-dU"
  522. Like \fBdD\fR except that only macros that are expanded, or whose
  523. definedness is tested in preprocessor directives, are output; the
  524. output is delayed until the use or test of the macro; and \f(CW\*(Aq#undef\*(Aq\fR
  525. directives are also output for macros tested but undefined at the time.
  526. .IP "\fB\-dI\fR" 4
  527. .IX Item "-dI"
  528. Output \f(CW\*(Aq#include\*(Aq\fR directives in addition to the result
  529. of preprocessing.
  530. .IP "\fB\-fworking\-directory\fR" 4
  531. .IX Item "-fworking-directory"
  532. Enable generation of linemarkers in the preprocessor output that will
  533. let the compiler know the current working directory at the time of
  534. preprocessing. When this option is enabled, the preprocessor will emit,
  535. after the initial linemarker, a second linemarker with the current
  536. working directory followed by two slashes. \s-1GCC\s0 will use this directory,
  537. when it is present in the preprocessed input, as the directory emitted
  538. as the current working directory in some debugging information formats.
  539. This option is implicitly enabled if debugging information is enabled,
  540. but this can be inhibited with the negated form
  541. \&\fB\-fno\-working\-directory\fR. If the \fB\-P\fR flag is present
  542. in the command line, this option has no effect, since no \f(CW\*(C`#line\*(C'\fR
  543. directives are emitted whatsoever.
  544. .IP "\fB\-idirafter\fR \fIdir\fR" 4
  545. .IX Item "-idirafter dir"
  546. Search \fIdir\fR for include files, but do it after all directories
  547. specified with \fB\-I\fR and the standard system directories have
  548. been exhausted. \fIdir\fR is treated as a system include directory.
  549. If dir begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced by
  550. the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
  551. .IP "\fB\-imultilib\fR \fIdir\fR" 4
  552. .IX Item "-imultilib dir"
  553. Use \fIdir\fR as a subdirectory of the directory containing target-specific
  554. \&\*(C+ headers.
  555. .IP "\fB\-iprefix\fR \fIprefix\fR" 4
  556. .IX Item "-iprefix prefix"
  557. Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
  558. options. If the \fIprefix\fR represents a directory, you should include
  559. the final \f(CW\*(Aq/\*(Aq\fR.
  560. .IP "\fB\-isysroot\fR \fIdir\fR" 4
  561. .IX Item "-isysroot dir"
  562. This option is like the \fB\-\-sysroot\fR option, but applies only to
  563. header files. See the \fB\-\-sysroot\fR option for more information.
  564. .IP "\fB\-iquote\fR \fIdir\fR" 4
  565. .IX Item "-iquote dir"
  566. Search \fIdir\fR only for header files requested with \f(CW\*(C`#include "file"\*(C'\fR;
  567. they are not searched for \f(CW\*(C`#include <file>\*(C'\fR, before all directories
  568. specified by \fB\-I\fR and before the standard system directories. If
  569. \&\fIdir\fR begins with \f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced by the
  570. sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
  571. .IP "\fB\-isystem\fR \fIdir\fR" 4
  572. .IX Item "-isystem dir"
  573. Search \fIdir\fR for header files, after all directories specified by
  574. \&\fB\-I\fR but before the standard system directories. Mark it as a
  575. system directory, so that it gets the same special treatment as is
  576. applied to the standard system directories. If \fIdir\fR begins with
  577. \&\f(CW\*(C`=\*(C'\fR, then the \f(CW\*(C`=\*(C'\fR will be replaced by the sysroot prefix;
  578. see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
  579. .IP "\fB\-nostdinc\fR" 4
  580. .IX Item "-nostdinc"
  581. Do not search the standard system directories for header files. Only
  582. the directories you have specified with \fB\-I\fR options (and the
  583. directory of the current file, if appropriate) are searched.
  584. .IP "\fB\-undef\fR" 4
  585. .IX Item "-undef"
  586. Do not predefine any system-specific or GCC-specific macros.
  587. The standard predefined macros remain defined.
  588. .IP "\fB\-A\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
  589. .IX Item "-Apredicate=answer"
  590. Make an assertion with the predicate \fIpredicate\fR and answer \fIanswer\fR.
  591. This form is preferred to the older form \-A predicate(answer), which is still
  592. supported, because it does not use shell special characters.
  593. .IP "\fB\-A\-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
  594. .IX Item "-A-predicate=answer"
  595. Cancel an assertion with the predicate \fIpredicate\fR and answer \fIanswer\fR.
  596. .IP "\fB\-C\fR" 4
  597. .IX Item "-C"
  598. Do not discard comments. All comments are passed through to the output
  599. file, except for comments in processed directives, which are deleted
  600. along with the directive.
  601. .Sp
  602. You should be prepared for side effects when using \fB\-C\fR; it causes
  603. the preprocessor to treat comments as tokens in their own right. For example,
  604. comments appearing at the start of what would be a directive line have the
  605. effect of turning that line into an ordinary source line, since the first
  606. token on the line is no longer a \f(CW\*(Aq#\*(Aq\fR.
  607. .Sp
  608. Warning: this currently handles C\-Style comments only. The preprocessor
  609. does not yet recognize Fortran-style comments.
  610. .IP "\fB\-CC\fR" 4
  611. .IX Item "-CC"
  612. Do not discard comments, including during macro expansion. This is like
  613. \&\fB\-C\fR, except that comments contained within macros are also passed
  614. through to the output file where the macro is expanded.
  615. .Sp
  616. In addition to the side-effects of the \fB\-C\fR option, the \fB\-CC\fR
  617. option causes all \*(C+\-style comments inside a macro to be converted to C\-style
  618. comments. This is to prevent later use of that macro from inadvertently
  619. commenting out the remainder of the source line. The \fB\-CC\fR option
  620. is generally used to support lint comments.
  621. .Sp
  622. Warning: this currently handles C\- and \*(C+\-Style comments only. The
  623. preprocessor does not yet recognize Fortran-style comments.
  624. .IP "\fB\-D\fR\fIname\fR" 4
  625. .IX Item "-Dname"
  626. Predefine name as a macro, with definition \f(CW1\fR.
  627. .IP "\fB\-D\fR\fIname\fR\fB=\fR\fIdefinition\fR" 4
  628. .IX Item "-Dname=definition"
  629. The contents of \fIdefinition\fR are tokenized and processed as if they
  630. appeared during translation phase three in a \f(CW\*(Aq#define\*(Aq\fR directive.
  631. In particular, the definition will be truncated by embedded newline
  632. characters.
  633. .Sp
  634. If you are invoking the preprocessor from a shell or shell-like program
  635. you may need to use the shell's quoting syntax to protect characters such
  636. as spaces that have a meaning in the shell syntax.
  637. .Sp
  638. If you wish to define a function-like macro on the command line, write
  639. its argument list with surrounding parentheses before the equals sign
  640. (if any). Parentheses are meaningful to most shells, so you will need
  641. to quote the option. With sh and csh, \f(CW\*(C`\-D\*(Aqname(args...)=definition\*(Aq\*(C'\fR
  642. works.
  643. .Sp
  644. \&\fB\-D\fR and \fB\-U\fR options are processed in the order they are
  645. given on the command line. All \-imacros file and \-include file options
  646. are processed after all \-D and \-U options.
  647. .IP "\fB\-H\fR" 4
  648. .IX Item "-H"
  649. Print the name of each header file used, in addition to other normal
  650. activities. Each name is indented to show how deep in the \f(CW\*(Aq#include\*(Aq\fR
  651. stack it is.
  652. .IP "\fB\-P\fR" 4
  653. .IX Item "-P"
  654. Inhibit generation of linemarkers in the output from the preprocessor.
  655. This might be useful when running the preprocessor on something that
  656. is not C code, and will be sent to a program which might be confused
  657. by the linemarkers.
  658. .IP "\fB\-U\fR\fIname\fR" 4
  659. .IX Item "-Uname"
  660. Cancel any previous definition of \fIname\fR, either built in or provided
  661. with a \fB\-D\fR option.
  662. .SS "Options to request or suppress errors and warnings"
  663. .IX Subsection "Options to request or suppress errors and warnings"
  664. Errors are diagnostic messages that report that the \s-1GNU\s0 Fortran compiler
  665. cannot compile the relevant piece of source code. The compiler will
  666. continue to process the program in an attempt to report further errors
  667. to aid in debugging, but will not produce any compiled output.
  668. .PP
  669. Warnings are diagnostic messages that report constructions which
  670. are not inherently erroneous but which are risky or suggest there is
  671. likely to be a bug in the program. Unless \fB\-Werror\fR is specified,
  672. they do not prevent compilation of the program.
  673. .PP
  674. You can request many specific warnings with options beginning \fB\-W\fR,
  675. for example \fB\-Wimplicit\fR to request warnings on implicit
  676. declarations. Each of these specific warning options also has a
  677. negative form beginning \fB\-Wno\-\fR to turn off warnings;
  678. for example, \fB\-Wno\-implicit\fR. This manual lists only one of the
  679. two forms, whichever is not the default.
  680. .PP
  681. These options control the amount and kinds of errors and warnings produced
  682. by \s-1GNU\s0 Fortran:
  683. .IP "\fB\-fmax\-errors=\fR\fIn\fR" 4
  684. .IX Item "-fmax-errors=n"
  685. Limits the maximum number of error messages to \fIn\fR, at which point
  686. \&\s-1GNU\s0 Fortran bails out rather than attempting to continue processing the
  687. source code. If \fIn\fR is 0, there is no limit on the number of error
  688. messages produced.
  689. .IP "\fB\-fsyntax\-only\fR" 4
  690. .IX Item "-fsyntax-only"
  691. Check the code for syntax errors, but do not actually compile it. This
  692. will generate module files for each module present in the code, but no
  693. other output file.
  694. .IP "\fB\-Wpedantic\fR" 4
  695. .IX Item "-Wpedantic"
  696. .PD 0
  697. .IP "\fB\-pedantic\fR" 4
  698. .IX Item "-pedantic"
  699. .PD
  700. Issue warnings for uses of extensions to Fortran 95.
  701. \&\fB\-pedantic\fR also applies to C\-language constructs where they
  702. occur in \s-1GNU\s0 Fortran source files, such as use of \fB\ee\fR in a
  703. character constant within a directive like \f(CW\*(C`#include\*(C'\fR.
  704. .Sp
  705. Valid Fortran 95 programs should compile properly with or without
  706. this option.
  707. However, without this option, certain \s-1GNU\s0 extensions and traditional
  708. Fortran features are supported as well.
  709. With this option, many of them are rejected.
  710. .Sp
  711. Some users try to use \fB\-pedantic\fR to check programs for conformance.
  712. They soon find that it does not do quite what they want\-\-\-it finds some
  713. nonstandard practices, but not all.
  714. However, improvements to \s-1GNU\s0 Fortran in this area are welcome.
  715. .Sp
  716. This should be used in conjunction with \fB\-std=f95\fR,
  717. \&\fB\-std=f2003\fR or \fB\-std=f2008\fR.
  718. .IP "\fB\-pedantic\-errors\fR" 4
  719. .IX Item "-pedantic-errors"
  720. Like \fB\-pedantic\fR, except that errors are produced rather than
  721. warnings.
  722. .IP "\fB\-Wall\fR" 4
  723. .IX Item "-Wall"
  724. Enables commonly used warning options pertaining to usage that
  725. we recommend avoiding and that we believe are easy to avoid.
  726. This currently includes \fB\-Waliasing\fR, \fB\-Wampersand\fR,
  727. \&\fB\-Wconversion\fR, \fB\-Wsurprising\fR, \fB\-Wc\-binding\-type\fR,
  728. \&\fB\-Wintrinsics\-std\fR, \fB\-Wtabs\fR, \fB\-Wintrinsic\-shadow\fR,
  729. \&\fB\-Wline\-truncation\fR, \fB\-Wtarget\-lifetime\fR,
  730. \&\fB\-Winteger\-division\fR, \fB\-Wreal\-q\-constant\fR, \fB\-Wunused\fR
  731. and \fB\-Wundefined\-do\-loop\fR.
  732. .IP "\fB\-Waliasing\fR" 4
  733. .IX Item "-Waliasing"
  734. Warn about possible aliasing of dummy arguments. Specifically, it warns
  735. if the same actual argument is associated with a dummy argument with
  736. \&\f(CW\*(C`INTENT(IN)\*(C'\fR and a dummy argument with \f(CW\*(C`INTENT(OUT)\*(C'\fR in a call
  737. with an explicit interface.
  738. .Sp
  739. The following example will trigger the warning.
  740. .Sp
  741. .Vb 7
  742. \& interface
  743. \& subroutine bar(a,b)
  744. \& integer, intent(in) :: a
  745. \& integer, intent(out) :: b
  746. \& end subroutine
  747. \& end interface
  748. \& integer :: a
  749. \&
  750. \& call bar(a,a)
  751. .Ve
  752. .IP "\fB\-Wampersand\fR" 4
  753. .IX Item "-Wampersand"
  754. Warn about missing ampersand in continued character constants. The warning is
  755. given with \fB\-Wampersand\fR, \fB\-pedantic\fR, \fB\-std=f95\fR,
  756. \&\fB\-std=f2003\fR and \fB\-std=f2008\fR. Note: With no ampersand
  757. given in a continued character constant, \s-1GNU\s0 Fortran assumes continuation
  758. at the first non-comment, non-whitespace character after the ampersand
  759. that initiated the continuation.
  760. .IP "\fB\-Wargument\-mismatch\fR" 4
  761. .IX Item "-Wargument-mismatch"
  762. Warn about type, rank, and other mismatches between formal parameters and actual
  763. arguments to functions and subroutines. These warnings are recommended and
  764. thus enabled by default.
  765. .IP "\fB\-Warray\-temporaries\fR" 4
  766. .IX Item "-Warray-temporaries"
  767. Warn about array temporaries generated by the compiler. The information
  768. generated by this warning is sometimes useful in optimization, in order to
  769. avoid such temporaries.
  770. .IP "\fB\-Wc\-binding\-type\fR" 4
  771. .IX Item "-Wc-binding-type"
  772. Warn if the a variable might not be C interoperable. In particular, warn if
  773. the variable has been declared using an intrinsic type with default kind
  774. instead of using a kind parameter defined for C interoperability in the
  775. intrinsic \f(CW\*(C`ISO_C_Binding\*(C'\fR module. This option is implied by
  776. \&\fB\-Wall\fR.
  777. .IP "\fB\-Wcharacter\-truncation\fR" 4
  778. .IX Item "-Wcharacter-truncation"
  779. Warn when a character assignment will truncate the assigned string.
  780. .IP "\fB\-Wline\-truncation\fR" 4
  781. .IX Item "-Wline-truncation"
  782. Warn when a source code line will be truncated. This option is
  783. implied by \fB\-Wall\fR. For free-form source code, the default is
  784. \&\fB\-Werror=line\-truncation\fR such that truncations are reported as
  785. error.
  786. .IP "\fB\-Wconversion\fR" 4
  787. .IX Item "-Wconversion"
  788. Warn about implicit conversions that are likely to change the value of
  789. the expression after conversion. Implied by \fB\-Wall\fR.
  790. .IP "\fB\-Wconversion\-extra\fR" 4
  791. .IX Item "-Wconversion-extra"
  792. Warn about implicit conversions between different types and kinds. This
  793. option does \fInot\fR imply \fB\-Wconversion\fR.
  794. .IP "\fB\-Wextra\fR" 4
  795. .IX Item "-Wextra"
  796. Enables some warning options for usages of language features which
  797. may be problematic. This currently includes \fB\-Wcompare\-reals\fR
  798. and \fB\-Wunused\-parameter\fR.
  799. .IP "\fB\-Wimplicit\-interface\fR" 4
  800. .IX Item "-Wimplicit-interface"
  801. Warn if a procedure is called without an explicit interface.
  802. Note this only checks that an explicit interface is present. It does not
  803. check that the declared interfaces are consistent across program units.
  804. .IP "\fB\-Wimplicit\-procedure\fR" 4
  805. .IX Item "-Wimplicit-procedure"
  806. Warn if a procedure is called that has neither an explicit interface
  807. nor has been declared as \f(CW\*(C`EXTERNAL\*(C'\fR.
  808. .IP "\fB\-Winteger\-division\fR" 4
  809. .IX Item "-Winteger-division"
  810. Warn if a constant integer division truncates it result.
  811. As an example, 3/5 evaluates to 0.
  812. .IP "\fB\-Wintrinsics\-std\fR" 4
  813. .IX Item "-Wintrinsics-std"
  814. Warn if \fBgfortran\fR finds a procedure named like an intrinsic not
  815. available in the currently selected standard (with \fB\-std\fR) and treats
  816. it as \f(CW\*(C`EXTERNAL\*(C'\fR procedure because of this. \fB\-fall\-intrinsics\fR can
  817. be used to never trigger this behavior and always link to the intrinsic
  818. regardless of the selected standard.
  819. .IP "\fB\-Wreal\-q\-constant\fR" 4
  820. .IX Item "-Wreal-q-constant"
  821. Produce a warning if a real-literal-constant contains a \f(CW\*(C`q\*(C'\fR
  822. exponent-letter.
  823. .IP "\fB\-Wsurprising\fR" 4
  824. .IX Item "-Wsurprising"
  825. Produce a warning when \*(L"suspicious\*(R" code constructs are encountered.
  826. While technically legal these usually indicate that an error has been made.
  827. .Sp
  828. This currently produces a warning under the following circumstances:
  829. .RS 4
  830. .IP "*" 4
  831. An \s-1INTEGER SELECT\s0 construct has a \s-1CASE\s0 that can never be matched as its
  832. lower value is greater than its upper value.
  833. .IP "*" 4
  834. A \s-1LOGICAL SELECT\s0 construct has three \s-1CASE\s0 statements.
  835. .IP "*" 4
  836. A \s-1TRANSFER\s0 specifies a source that is shorter than the destination.
  837. .IP "*" 4
  838. The type of a function result is declared more than once with the same type. If
  839. \&\fB\-pedantic\fR or standard-conforming mode is enabled, this is an error.
  840. .IP "*" 4
  841. A \f(CW\*(C`CHARACTER\*(C'\fR variable is declared with negative length.
  842. .RE
  843. .RS 4
  844. .RE
  845. .IP "\fB\-Wtabs\fR" 4
  846. .IX Item "-Wtabs"
  847. By default, tabs are accepted as whitespace, but tabs are not members
  848. of the Fortran Character Set. For continuation lines, a tab followed
  849. by a digit between 1 and 9 is supported. \fB\-Wtabs\fR will cause
  850. a warning to be issued if a tab is encountered. Note, \fB\-Wtabs\fR
  851. is active for \fB\-pedantic\fR, \fB\-std=f95\fR, \fB\-std=f2003\fR,
  852. \&\fB\-std=f2008\fR, \fB\-std=f2008ts\fR and \fB\-Wall\fR.
  853. .IP "\fB\-Wundefined\-do\-loop\fR" 4
  854. .IX Item "-Wundefined-do-loop"
  855. Warn if a \s-1DO\s0 loop with step either 1 or \-1 yields an underflow or an overflow
  856. during iteration of an induction variable of the loop.
  857. This option is implied by \fB\-Wall\fR.
  858. .IP "\fB\-Wunderflow\fR" 4
  859. .IX Item "-Wunderflow"
  860. Produce a warning when numerical constant expressions are
  861. encountered, which yield an \s-1UNDERFLOW\s0 during compilation. Enabled by default.
  862. .IP "\fB\-Wintrinsic\-shadow\fR" 4
  863. .IX Item "-Wintrinsic-shadow"
  864. Warn if a user-defined procedure or module procedure has the same name as an
  865. intrinsic; in this case, an explicit interface or \f(CW\*(C`EXTERNAL\*(C'\fR or
  866. \&\f(CW\*(C`INTRINSIC\*(C'\fR declaration might be needed to get calls later resolved to
  867. the desired intrinsic/procedure. This option is implied by \fB\-Wall\fR.
  868. .IP "\fB\-Wuse\-without\-only\fR" 4
  869. .IX Item "-Wuse-without-only"
  870. Warn if a \f(CW\*(C`USE\*(C'\fR statement has no \f(CW\*(C`ONLY\*(C'\fR qualifier and
  871. thus implicitly imports all public entities of the used module.
  872. .IP "\fB\-Wunused\-dummy\-argument\fR" 4
  873. .IX Item "-Wunused-dummy-argument"
  874. Warn about unused dummy arguments. This option is implied by \fB\-Wall\fR.
  875. .IP "\fB\-Wunused\-parameter\fR" 4
  876. .IX Item "-Wunused-parameter"
  877. Contrary to \fBgcc\fR's meaning of \fB\-Wunused\-parameter\fR,
  878. \&\fBgfortran\fR's implementation of this option does not warn
  879. about unused dummy arguments (see \fB\-Wunused\-dummy\-argument\fR),
  880. but about unused \f(CW\*(C`PARAMETER\*(C'\fR values. \fB\-Wunused\-parameter\fR
  881. is implied by \fB\-Wextra\fR if also \fB\-Wunused\fR or
  882. \&\fB\-Wall\fR is used.
  883. .IP "\fB\-Walign\-commons\fR" 4
  884. .IX Item "-Walign-commons"
  885. By default, \fBgfortran\fR warns about any occasion of variables being
  886. padded for proper alignment inside a \f(CW\*(C`COMMON\*(C'\fR block. This warning can be turned
  887. off via \fB\-Wno\-align\-commons\fR. See also \fB\-falign\-commons\fR.
  888. .IP "\fB\-Wfunction\-elimination\fR" 4
  889. .IX Item "-Wfunction-elimination"
  890. Warn if any calls to functions are eliminated by the optimizations
  891. enabled by the \fB\-ffrontend\-optimize\fR option.
  892. .IP "\fB\-Wrealloc\-lhs\fR" 4
  893. .IX Item "-Wrealloc-lhs"
  894. Warn when the compiler might insert code to for allocation or reallocation of
  895. an allocatable array variable of intrinsic type in intrinsic assignments. In
  896. hot loops, the Fortran 2003 reallocation feature may reduce the performance.
  897. If the array is already allocated with the correct shape, consider using a
  898. whole-array array-spec (e.g. \f(CW\*(C`(:,:,:)\*(C'\fR) for the variable on the left-hand
  899. side to prevent the reallocation check. Note that in some cases the warning
  900. is shown, even if the compiler will optimize reallocation checks away. For
  901. instance, when the right-hand side contains the same variable multiplied by
  902. a scalar. See also \fB\-frealloc\-lhs\fR.
  903. .IP "\fB\-Wrealloc\-lhs\-all\fR" 4
  904. .IX Item "-Wrealloc-lhs-all"
  905. Warn when the compiler inserts code to for allocation or reallocation of an
  906. allocatable variable; this includes scalars and derived types.
  907. .IP "\fB\-Wcompare\-reals\fR" 4
  908. .IX Item "-Wcompare-reals"
  909. Warn when comparing real or complex types for equality or inequality.
  910. This option is implied by \fB\-Wextra\fR.
  911. .IP "\fB\-Wtarget\-lifetime\fR" 4
  912. .IX Item "-Wtarget-lifetime"
  913. Warn if the pointer in a pointer assignment might be longer than the its
  914. target. This option is implied by \fB\-Wall\fR.
  915. .IP "\fB\-Wzerotrip\fR" 4
  916. .IX Item "-Wzerotrip"
  917. Warn if a \f(CW\*(C`DO\*(C'\fR loop is known to execute zero times at compile
  918. time. This option is implied by \fB\-Wall\fR.
  919. .IP "\fB\-Werror\fR" 4
  920. .IX Item "-Werror"
  921. Turns all warnings into errors.
  922. .PP
  923. Some of these have no effect when compiling programs written in Fortran.
  924. .SS "Options for debugging your program or \s-1GNU\s0 Fortran"
  925. .IX Subsection "Options for debugging your program or GNU Fortran"
  926. \&\s-1GNU\s0 Fortran has various special options that are used for debugging
  927. either your program or the \s-1GNU\s0 Fortran compiler.
  928. .IP "\fB\-fdump\-fortran\-original\fR" 4
  929. .IX Item "-fdump-fortran-original"
  930. Output the internal parse tree after translating the source program
  931. into internal representation. Only really useful for debugging the
  932. \&\s-1GNU\s0 Fortran compiler itself.
  933. .IP "\fB\-fdump\-fortran\-optimized\fR" 4
  934. .IX Item "-fdump-fortran-optimized"
  935. Output the parse tree after front-end optimization. Only really
  936. useful for debugging the \s-1GNU\s0 Fortran compiler itself.
  937. .IP "\fB\-fdump\-parse\-tree\fR" 4
  938. .IX Item "-fdump-parse-tree"
  939. Output the internal parse tree after translating the source program
  940. into internal representation. Only really useful for debugging the
  941. \&\s-1GNU\s0 Fortran compiler itself. This option is deprecated; use
  942. \&\f(CW\*(C`\-fdump\-fortran\-original\*(C'\fR instead.
  943. .IP "\fB\-ffpe\-trap=\fR\fIlist\fR" 4
  944. .IX Item "-ffpe-trap=list"
  945. Specify a list of floating point exception traps to enable. On most
  946. systems, if a floating point exception occurs and the trap for that
  947. exception is enabled, a \s-1SIGFPE\s0 signal will be sent and the program
  948. being aborted, producing a core file useful for debugging. \fIlist\fR
  949. is a (possibly empty) comma-separated list of the following
  950. exceptions: \fBinvalid\fR (invalid floating point operation, such as
  951. \&\f(CW\*(C`SQRT(\-1.0)\*(C'\fR), \fBzero\fR (division by zero), \fBoverflow\fR
  952. (overflow in a floating point operation), \fBunderflow\fR (underflow
  953. in a floating point operation), \fBinexact\fR (loss of precision
  954. during operation), and \fBdenormal\fR (operation performed on a
  955. denormal value). The first five exceptions correspond to the five
  956. \&\s-1IEEE 754\s0 exceptions, whereas the last one (\fBdenormal\fR) is not
  957. part of the \s-1IEEE 754\s0 standard but is available on some common
  958. architectures such as x86.
  959. .Sp
  960. The first three exceptions (\fBinvalid\fR, \fBzero\fR, and
  961. \&\fBoverflow\fR) often indicate serious errors, and unless the program
  962. has provisions for dealing with these exceptions, enabling traps for
  963. these three exceptions is probably a good idea.
  964. .Sp
  965. Many, if not most, floating point operations incur loss of precision
  966. due to rounding, and hence the \f(CW\*(C`ffpe\-trap=inexact\*(C'\fR is likely to
  967. be uninteresting in practice.
  968. .Sp
  969. By default no exception traps are enabled.
  970. .IP "\fB\-ffpe\-summary=\fR\fIlist\fR" 4
  971. .IX Item "-ffpe-summary=list"
  972. Specify a list of floating-point exceptions, whose flag status is printed
  973. to \f(CW\*(C`ERROR_UNIT\*(C'\fR when invoking \f(CW\*(C`STOP\*(C'\fR and \f(CW\*(C`ERROR STOP\*(C'\fR.
  974. \&\fIlist\fR can be either \fBnone\fR, \fBall\fR or a comma-separated list
  975. of the following exceptions: \fBinvalid\fR, \fBzero\fR, \fBoverflow\fR,
  976. \&\fBunderflow\fR, \fBinexact\fR and \fBdenormal\fR. (See
  977. \&\fB\-ffpe\-trap\fR for a description of the exceptions.)
  978. .Sp
  979. By default, a summary for all exceptions but \fBinexact\fR is shown.
  980. .IP "\fB\-fno\-backtrace\fR" 4
  981. .IX Item "-fno-backtrace"
  982. When a serious runtime error is encountered or a deadly signal is
  983. emitted (segmentation fault, illegal instruction, bus error,
  984. floating-point exception, and the other \s-1POSIX\s0 signals that have the
  985. action \fBcore\fR), the Fortran runtime library tries to output a
  986. backtrace of the error. \f(CW\*(C`\-fno\-backtrace\*(C'\fR disables the backtrace
  987. generation. This option only has influence for compilation of the
  988. Fortran main program.
  989. .SS "Options for directory search"
  990. .IX Subsection "Options for directory search"
  991. These options affect how \s-1GNU\s0 Fortran searches
  992. for files specified by the \f(CW\*(C`INCLUDE\*(C'\fR directive and where it searches
  993. for previously compiled modules.
  994. .PP
  995. It also affects the search paths used by \fBcpp\fR when used to preprocess
  996. Fortran source.
  997. .IP "\fB\-I\fR\fIdir\fR" 4
  998. .IX Item "-Idir"
  999. These affect interpretation of the \f(CW\*(C`INCLUDE\*(C'\fR directive
  1000. (as well as of the \f(CW\*(C`#include\*(C'\fR directive of the \fBcpp\fR
  1001. preprocessor).
  1002. .Sp
  1003. Also note that the general behavior of \fB\-I\fR and
  1004. \&\f(CW\*(C`INCLUDE\*(C'\fR is pretty much the same as of \fB\-I\fR with
  1005. \&\f(CW\*(C`#include\*(C'\fR in the \fBcpp\fR preprocessor, with regard to
  1006. looking for \fIheader.gcc\fR files and other such things.
  1007. .Sp
  1008. This path is also used to search for \fI.mod\fR files when previously
  1009. compiled modules are required by a \f(CW\*(C`USE\*(C'\fR statement.
  1010. .IP "\fB\-J\fR\fIdir\fR" 4
  1011. .IX Item "-Jdir"
  1012. This option specifies where to put \fI.mod\fR files for compiled modules.
  1013. It is also added to the list of directories to searched by an \f(CW\*(C`USE\*(C'\fR
  1014. statement.
  1015. .Sp
  1016. The default is the current directory.
  1017. .IP "\fB\-fintrinsic\-modules\-path\fR \fIdir\fR" 4
  1018. .IX Item "-fintrinsic-modules-path dir"
  1019. This option specifies the location of pre-compiled intrinsic modules, if
  1020. they are not in the default location expected by the compiler.
  1021. .SS "Influencing the linking step"
  1022. .IX Subsection "Influencing the linking step"
  1023. These options come into play when the compiler links object files into an
  1024. executable output file. They are meaningless if the compiler is not doing
  1025. a link step.
  1026. .IP "\fB\-static\-libgfortran\fR" 4
  1027. .IX Item "-static-libgfortran"
  1028. On systems that provide \fIlibgfortran\fR as a shared and a static
  1029. library, this option forces the use of the static version. If no
  1030. shared version of \fIlibgfortran\fR was built when the compiler was
  1031. configured, this option has no effect.
  1032. .SS "Influencing runtime behavior"
  1033. .IX Subsection "Influencing runtime behavior"
  1034. These options affect the runtime behavior of programs compiled with \s-1GNU\s0 Fortran.
  1035. .IP "\fB\-fconvert=\fR\fIconversion\fR" 4
  1036. .IX Item "-fconvert=conversion"
  1037. Specify the representation of data for unformatted files. Valid
  1038. values for conversion are: \fBnative\fR, the default; \fBswap\fR,
  1039. swap between big\- and little-endian; \fBbig-endian\fR, use big-endian
  1040. representation for unformatted files; \fBlittle-endian\fR, use little-endian
  1041. representation for unformatted files.
  1042. .Sp
  1043. \&\fIThis option has an effect only when used in the main program.
  1044. The \f(CI\*(C`CONVERT\*(C'\fI specifier and the \s-1GFORTRAN_CONVERT_UNIT\s0 environment
  1045. variable override the default specified by \f(BI\-fconvert\fI.\fR
  1046. .IP "\fB\-frecord\-marker=\fR\fIlength\fR" 4
  1047. .IX Item "-frecord-marker=length"
  1048. Specify the length of record markers for unformatted files.
  1049. Valid values for \fIlength\fR are 4 and 8. Default is 4.
  1050. \&\fIThis is different from previous versions of\fR \fBgfortran\fR,
  1051. which specified a default record marker length of 8 on most
  1052. systems. If you want to read or write files compatible
  1053. with earlier versions of \fBgfortran\fR, use \fB\-frecord\-marker=8\fR.
  1054. .IP "\fB\-fmax\-subrecord\-length=\fR\fIlength\fR" 4
  1055. .IX Item "-fmax-subrecord-length=length"
  1056. Specify the maximum length for a subrecord. The maximum permitted
  1057. value for length is 2147483639, which is also the default. Only
  1058. really useful for use by the gfortran testsuite.
  1059. .IP "\fB\-fsign\-zero\fR" 4
  1060. .IX Item "-fsign-zero"
  1061. When enabled, floating point numbers of value zero with the sign bit set
  1062. are written as negative number in formatted output and treated as
  1063. negative in the \f(CW\*(C`SIGN\*(C'\fR intrinsic. \fB\-fno\-sign\-zero\fR does not
  1064. print the negative sign of zero values (or values rounded to zero for I/O)
  1065. and regards zero as positive number in the \f(CW\*(C`SIGN\*(C'\fR intrinsic for
  1066. compatibility with Fortran 77. The default is \fB\-fsign\-zero\fR.
  1067. .SS "Options for code generation conventions"
  1068. .IX Subsection "Options for code generation conventions"
  1069. These machine-independent options control the interface conventions
  1070. used in code generation.
  1071. .PP
  1072. Most of them have both positive and negative forms; the negative form
  1073. of \fB\-ffoo\fR would be \fB\-fno\-foo\fR. In the table below, only
  1074. one of the forms is listed\-\-\-the one which is not the default. You
  1075. can figure out the other form by either removing \fBno\-\fR or adding
  1076. it.
  1077. .IP "\fB\-fno\-automatic\fR" 4
  1078. .IX Item "-fno-automatic"
  1079. Treat each program unit (except those marked as \s-1RECURSIVE\s0) as if the
  1080. \&\f(CW\*(C`SAVE\*(C'\fR statement were specified for every local variable and array
  1081. referenced in it. Does not affect common blocks. (Some Fortran compilers
  1082. provide this option under the name \fB\-static\fR or \fB\-save\fR.)
  1083. The default, which is \fB\-fautomatic\fR, uses the stack for local
  1084. variables smaller than the value given by \fB\-fmax\-stack\-var\-size\fR.
  1085. Use the option \fB\-frecursive\fR to use no static memory.
  1086. .IP "\fB\-ff2c\fR" 4
  1087. .IX Item "-ff2c"
  1088. Generate code designed to be compatible with code generated
  1089. by \fBg77\fR and \fBf2c\fR.
  1090. .Sp
  1091. The calling conventions used by \fBg77\fR (originally implemented
  1092. in \fBf2c\fR) require functions that return type
  1093. default \f(CW\*(C`REAL\*(C'\fR to actually return the C type \f(CW\*(C`double\*(C'\fR, and
  1094. functions that return type \f(CW\*(C`COMPLEX\*(C'\fR to return the values via an
  1095. extra argument in the calling sequence that points to where to
  1096. store the return value. Under the default \s-1GNU\s0 calling conventions, such
  1097. functions simply return their results as they would in \s-1GNU\s0
  1098. C\-\-\-default \f(CW\*(C`REAL\*(C'\fR functions return the C type \f(CW\*(C`float\*(C'\fR, and
  1099. \&\f(CW\*(C`COMPLEX\*(C'\fR functions return the \s-1GNU C\s0 type \f(CW\*(C`complex\*(C'\fR.
  1100. Additionally, this option implies the \fB\-fsecond\-underscore\fR
  1101. option, unless \fB\-fno\-second\-underscore\fR is explicitly requested.
  1102. .Sp
  1103. This does not affect the generation of code that interfaces with
  1104. the \fBlibgfortran\fR library.
  1105. .Sp
  1106. \&\fICaution:\fR It is not a good idea to mix Fortran code compiled with
  1107. \&\fB\-ff2c\fR with code compiled with the default \fB\-fno\-f2c\fR
  1108. calling conventions as, calling \f(CW\*(C`COMPLEX\*(C'\fR or default \f(CW\*(C`REAL\*(C'\fR
  1109. functions between program parts which were compiled with different
  1110. calling conventions will break at execution time.
  1111. .Sp
  1112. \&\fICaution:\fR This will break code which passes intrinsic functions
  1113. of type default \f(CW\*(C`REAL\*(C'\fR or \f(CW\*(C`COMPLEX\*(C'\fR as actual arguments, as
  1114. the library implementations use the \fB\-fno\-f2c\fR calling conventions.
  1115. .IP "\fB\-fno\-underscoring\fR" 4
  1116. .IX Item "-fno-underscoring"
  1117. Do not transform names of entities specified in the Fortran
  1118. source file by appending underscores to them.
  1119. .Sp
  1120. With \fB\-funderscoring\fR in effect, \s-1GNU\s0 Fortran appends one
  1121. underscore to external names with no underscores. This is done to ensure
  1122. compatibility with code produced by many \s-1UNIX\s0 Fortran compilers.
  1123. .Sp
  1124. \&\fICaution\fR: The default behavior of \s-1GNU\s0 Fortran is
  1125. incompatible with \fBf2c\fR and \fBg77\fR, please use the
  1126. \&\fB\-ff2c\fR option if you want object files compiled with
  1127. \&\s-1GNU\s0 Fortran to be compatible with object code created with these
  1128. tools.
  1129. .Sp
  1130. Use of \fB\-fno\-underscoring\fR is not recommended unless you are
  1131. experimenting with issues such as integration of \s-1GNU\s0 Fortran into
  1132. existing system environments (vis\-a\*`\-vis existing libraries, tools,
  1133. and so on).
  1134. .Sp
  1135. For example, with \fB\-funderscoring\fR, and assuming that \f(CW\*(C`j()\*(C'\fR and
  1136. \&\f(CW\*(C`max_count()\*(C'\fR are external functions while \f(CW\*(C`my_var\*(C'\fR and
  1137. \&\f(CW\*(C`lvar\*(C'\fR are local variables, a statement like
  1138. .Sp
  1139. .Vb 1
  1140. \& I = J() + MAX_COUNT (MY_VAR, LVAR)
  1141. .Ve
  1142. .Sp
  1143. is implemented as something akin to:
  1144. .Sp
  1145. .Vb 1
  1146. \& i = j_() + max_count_\|_(&my_var_\|_, &lvar);
  1147. .Ve
  1148. .Sp
  1149. With \fB\-fno\-underscoring\fR, the same statement is implemented as:
  1150. .Sp
  1151. .Vb 1
  1152. \& i = j() + max_count(&my_var, &lvar);
  1153. .Ve
  1154. .Sp
  1155. Use of \fB\-fno\-underscoring\fR allows direct specification of
  1156. user-defined names while debugging and when interfacing \s-1GNU\s0 Fortran
  1157. code with other languages.
  1158. .Sp
  1159. Note that just because the names match does \fInot\fR mean that the
  1160. interface implemented by \s-1GNU\s0 Fortran for an external name matches the
  1161. interface implemented by some other language for that same name.
  1162. That is, getting code produced by \s-1GNU\s0 Fortran to link to code produced
  1163. by some other compiler using this or any other method can be only a
  1164. small part of the overall solution\-\-\-getting the code generated by
  1165. both compilers to agree on issues other than naming can require
  1166. significant effort, and, unlike naming disagreements, linkers normally
  1167. cannot detect disagreements in these other areas.
  1168. .Sp
  1169. Also, note that with \fB\-fno\-underscoring\fR, the lack of appended
  1170. underscores introduces the very real possibility that a user-defined
  1171. external name will conflict with a name in a system library, which
  1172. could make finding unresolved-reference bugs quite difficult in some
  1173. cases\-\-\-they might occur at program run time, and show up only as
  1174. buggy behavior at run time.
  1175. .Sp
  1176. In future versions of \s-1GNU\s0 Fortran we hope to improve naming and linking
  1177. issues so that debugging always involves using the names as they appear
  1178. in the source, even if the names as seen by the linker are mangled to
  1179. prevent accidental linking between procedures with incompatible
  1180. interfaces.
  1181. .IP "\fB\-fsecond\-underscore\fR" 4
  1182. .IX Item "-fsecond-underscore"
  1183. By default, \s-1GNU\s0 Fortran appends an underscore to external
  1184. names. If this option is used \s-1GNU\s0 Fortran appends two
  1185. underscores to names with underscores and one underscore to external names
  1186. with no underscores. \s-1GNU\s0 Fortran also appends two underscores to
  1187. internal names with underscores to avoid naming collisions with external
  1188. names.
  1189. .Sp
  1190. This option has no effect if \fB\-fno\-underscoring\fR is
  1191. in effect. It is implied by the \fB\-ff2c\fR option.
  1192. .Sp
  1193. Otherwise, with this option, an external name such as \f(CW\*(C`MAX_COUNT\*(C'\fR
  1194. is implemented as a reference to the link-time external symbol
  1195. \&\f(CW\*(C`max_count_\|_\*(C'\fR, instead of \f(CW\*(C`max_count_\*(C'\fR. This is required
  1196. for compatibility with \fBg77\fR and \fBf2c\fR, and is implied
  1197. by use of the \fB\-ff2c\fR option.
  1198. .IP "\fB\-fcoarray=\fR\fI<keyword>\fR" 4
  1199. .IX Item "-fcoarray=<keyword>"
  1200. .RS 4
  1201. .PD 0
  1202. .IP "\fBnone\fR" 4
  1203. .IX Item "none"
  1204. .PD
  1205. Disable coarray support; using coarray declarations and image-control
  1206. statements will produce a compile-time error. (Default)
  1207. .IP "\fBsingle\fR" 4
  1208. .IX Item "single"
  1209. Single-image mode, i.e. \f(CW\*(C`num_images()\*(C'\fR is always one.
  1210. .IP "\fBlib\fR" 4
  1211. .IX Item "lib"
  1212. Library-based coarray parallelization; a suitable \s-1GNU\s0 Fortran coarray
  1213. library needs to be linked.
  1214. .RE
  1215. .RS 4
  1216. .RE
  1217. .IP "\fB\-fcheck=\fR\fI<keyword>\fR" 4
  1218. .IX Item "-fcheck=<keyword>"
  1219. Enable the generation of run-time checks; the argument shall be
  1220. a comma-delimited list of the following keywords. Prefixing a check with
  1221. \&\fBno\-\fR disables it if it was activated by a previous specification.
  1222. .RS 4
  1223. .IP "\fBall\fR" 4
  1224. .IX Item "all"
  1225. Enable all run-time test of \fB\-fcheck\fR.
  1226. .IP "\fBarray-temps\fR" 4
  1227. .IX Item "array-temps"
  1228. Warns at run time when for passing an actual argument a temporary array
  1229. had to be generated. The information generated by this warning is
  1230. sometimes useful in optimization, in order to avoid such temporaries.
  1231. .Sp
  1232. Note: The warning is only printed once per location.
  1233. .IP "\fBbounds\fR" 4
  1234. .IX Item "bounds"
  1235. Enable generation of run-time checks for array subscripts
  1236. and against the declared minimum and maximum values. It also
  1237. checks array indices for assumed and deferred
  1238. shape arrays against the actual allocated bounds and ensures that all string
  1239. lengths are equal for character array constructors without an explicit
  1240. typespec.
  1241. .Sp
  1242. Some checks require that \fB\-fcheck=bounds\fR is set for
  1243. the compilation of the main program.
  1244. .Sp
  1245. Note: In the future this may also include other forms of checking, e.g.,
  1246. checking substring references.
  1247. .IP "\fBdo\fR" 4
  1248. .IX Item "do"
  1249. Enable generation of run-time checks for invalid modification of loop
  1250. iteration variables.
  1251. .IP "\fBmem\fR" 4
  1252. .IX Item "mem"
  1253. Enable generation of run-time checks for memory allocation.
  1254. Note: This option does not affect explicit allocations using the
  1255. \&\f(CW\*(C`ALLOCATE\*(C'\fR statement, which will be always checked.
  1256. .IP "\fBpointer\fR" 4
  1257. .IX Item "pointer"
  1258. Enable generation of run-time checks for pointers and allocatables.
  1259. .IP "\fBrecursion\fR" 4
  1260. .IX Item "recursion"
  1261. Enable generation of run-time checks for recursively called subroutines and
  1262. functions which are not marked as recursive. See also \fB\-frecursive\fR.
  1263. Note: This check does not work for OpenMP programs and is disabled if used
  1264. together with \fB\-frecursive\fR and \fB\-fopenmp\fR.
  1265. .RE
  1266. .RS 4
  1267. .Sp
  1268. Example: Assuming you have a file \fIfoo.f90\fR, the command
  1269. .Sp
  1270. .Vb 1
  1271. \& gfortran \-fcheck=all,no\-array\-temps foo.f90
  1272. .Ve
  1273. .Sp
  1274. will compile the file with all checks enabled as specified above except
  1275. warnings for generated array temporaries.
  1276. .RE
  1277. .IP "\fB\-fbounds\-check\fR" 4
  1278. .IX Item "-fbounds-check"
  1279. Deprecated alias for \fB\-fcheck=bounds\fR.
  1280. .IP "\fB\-ftail\-call\-workaround\fR" 4
  1281. .IX Item "-ftail-call-workaround"
  1282. .PD 0
  1283. .IP "\fB\-ftail\-call\-workaround=\fR\fIn\fR" 4
  1284. .IX Item "-ftail-call-workaround=n"
  1285. .PD
  1286. Some C interfaces to Fortran codes violate the gfortran \s-1ABI\s0 by
  1287. omitting the hidden character length arguments as described in
  1288. This can lead to crashes
  1289. because pushing arguments for tail calls can overflow the stack.
  1290. .Sp
  1291. To provide a workaround for existing binary packages, this option
  1292. disables tail call optimization for gfortran procedures with character
  1293. arguments. With \fB\-ftail\-call\-workaround=2\fR tail call optimization
  1294. is disabled in all gfortran procedures with character arguments,
  1295. with \fB\-ftail\-call\-workaround=1\fR or equivalent
  1296. \&\fB\-ftail\-call\-workaround\fR only in gfortran procedures with character
  1297. arguments that call implicitly prototyped procedures.
  1298. .Sp
  1299. Using this option can lead to problems including crashes due to
  1300. insufficient stack space.
  1301. .Sp
  1302. It is \fIvery strongly\fR recommended to fix the code in question.
  1303. The \fB\-fc\-prototypes\-external\fR option can be used to generate
  1304. prototypes which conform to gfortran's \s-1ABI,\s0 for inclusion in the
  1305. source code.
  1306. .Sp
  1307. Support for this option will likely be withdrawn in a future release
  1308. of gfortran.
  1309. .Sp
  1310. The negative form, \fB\-fno\-tail\-call\-workaround\fR or equivalent
  1311. \&\fB\-ftail\-call\-workaround=0\fR, can be used to disable this option.
  1312. .Sp
  1313. Default is currently \fB\-ftail\-call\-workaround\fR, this will change
  1314. in future releases.
  1315. .IP "\fB\-fcheck\-array\-temporaries\fR" 4
  1316. .IX Item "-fcheck-array-temporaries"
  1317. Deprecated alias for \fB\-fcheck=array\-temps\fR.
  1318. .IP "\fB\-fmax\-array\-constructor=\fR\fIn\fR" 4
  1319. .IX Item "-fmax-array-constructor=n"
  1320. This option can be used to increase the upper limit permitted in
  1321. array constructors. The code below requires this option to expand
  1322. the array at compile time.
  1323. .Sp
  1324. .Vb 7
  1325. \& program test
  1326. \& implicit none
  1327. \& integer j
  1328. \& integer, parameter :: n = 100000
  1329. \& integer, parameter :: i(n) = (/ (2*j, j = 1, n) /)
  1330. \& print \*(Aq(10(I0,1X))\*(Aq, i
  1331. \& end program test
  1332. .Ve
  1333. .Sp
  1334. \&\fICaution: This option can lead to long compile times and excessively
  1335. large object files.\fR
  1336. .Sp
  1337. The default value for \fIn\fR is 65535.
  1338. .IP "\fB\-fmax\-stack\-var\-size=\fR\fIn\fR" 4
  1339. .IX Item "-fmax-stack-var-size=n"
  1340. This option specifies the size in bytes of the largest array that will be put
  1341. on the stack; if the size is exceeded static memory is used (except in
  1342. procedures marked as \s-1RECURSIVE\s0). Use the option \fB\-frecursive\fR to
  1343. allow for recursive procedures which do not have a \s-1RECURSIVE\s0 attribute or
  1344. for parallel programs. Use \fB\-fno\-automatic\fR to never use the stack.
  1345. .Sp
  1346. This option currently only affects local arrays declared with constant
  1347. bounds, and may not apply to all character variables.
  1348. Future versions of \s-1GNU\s0 Fortran may improve this behavior.
  1349. .Sp
  1350. The default value for \fIn\fR is 32768.
  1351. .IP "\fB\-fstack\-arrays\fR" 4
  1352. .IX Item "-fstack-arrays"
  1353. Adding this option will make the Fortran compiler put all local arrays,
  1354. even those of unknown size onto stack memory. If your program uses very
  1355. large local arrays it is possible that you will have to extend your runtime
  1356. limits for stack memory on some operating systems. This flag is enabled
  1357. by default at optimization level \fB\-Ofast\fR.
  1358. .IP "\fB\-fpack\-derived\fR" 4
  1359. .IX Item "-fpack-derived"
  1360. This option tells \s-1GNU\s0 Fortran to pack derived type members as closely as
  1361. possible. Code compiled with this option is likely to be incompatible
  1362. with code compiled without this option, and may execute slower.
  1363. .IP "\fB\-frepack\-arrays\fR" 4
  1364. .IX Item "-frepack-arrays"
  1365. In some circumstances \s-1GNU\s0 Fortran may pass assumed shape array
  1366. sections via a descriptor describing a noncontiguous area of memory.
  1367. This option adds code to the function prologue to repack the data into
  1368. a contiguous block at runtime.
  1369. .Sp
  1370. This should result in faster accesses to the array. However it can introduce
  1371. significant overhead to the function call, especially when the passed data
  1372. is noncontiguous.
  1373. .IP "\fB\-fshort\-enums\fR" 4
  1374. .IX Item "-fshort-enums"
  1375. This option is provided for interoperability with C code that was
  1376. compiled with the \fB\-fshort\-enums\fR option. It will make
  1377. \&\s-1GNU\s0 Fortran choose the smallest \f(CW\*(C`INTEGER\*(C'\fR kind a given
  1378. enumerator set will fit in, and give all its enumerators this kind.
  1379. .IP "\fB\-fexternal\-blas\fR" 4
  1380. .IX Item "-fexternal-blas"
  1381. This option will make \fBgfortran\fR generate calls to \s-1BLAS\s0 functions
  1382. for some matrix operations like \f(CW\*(C`MATMUL\*(C'\fR, instead of using our own
  1383. algorithms, if the size of the matrices involved is larger than a given
  1384. limit (see \fB\-fblas\-matmul\-limit\fR). This may be profitable if an
  1385. optimized vendor \s-1BLAS\s0 library is available. The \s-1BLAS\s0 library will have
  1386. to be specified at link time.
  1387. .IP "\fB\-fblas\-matmul\-limit=\fR\fIn\fR" 4
  1388. .IX Item "-fblas-matmul-limit=n"
  1389. Only significant when \fB\-fexternal\-blas\fR is in effect.
  1390. Matrix multiplication of matrices with size larger than (or equal to) \fIn\fR
  1391. will be performed by calls to \s-1BLAS\s0 functions, while others will be
  1392. handled by \fBgfortran\fR internal algorithms. If the matrices
  1393. involved are not square, the size comparison is performed using the
  1394. geometric mean of the dimensions of the argument and result matrices.
  1395. .Sp
  1396. The default value for \fIn\fR is 30.
  1397. .IP "\fB\-finline\-matmul\-limit=\fR\fIn\fR" 4
  1398. .IX Item "-finline-matmul-limit=n"
  1399. When front-end optimiztion is active, some calls to the \f(CW\*(C`MATMUL\*(C'\fR
  1400. intrinsic function will be inlined. This may result in code size
  1401. increase if the size of the matrix cannot be determined at compile
  1402. time, as code for both cases is generated. Setting
  1403. \&\f(CW\*(C`\-finline\-matmul\-limit=0\*(C'\fR will disable inlining in all cases.
  1404. Setting this option with a value of \fIn\fR will produce inline code
  1405. for matrices with size up to \fIn\fR. If the matrices involved are not
  1406. square, the size comparison is performed using the geometric mean of
  1407. the dimensions of the argument and result matrices.
  1408. .Sp
  1409. The default value for \fIn\fR is 30. The \f(CW\*(C`\-fblas\-matmul\-limit\*(C'\fR
  1410. can be used to change this value.
  1411. .IP "\fB\-frecursive\fR" 4
  1412. .IX Item "-frecursive"
  1413. Allow indirect recursion by forcing all local arrays to be allocated
  1414. on the stack. This flag cannot be used together with
  1415. \&\fB\-fmax\-stack\-var\-size=\fR or \fB\-fno\-automatic\fR.
  1416. .IP "\fB\-finit\-local\-zero\fR" 4
  1417. .IX Item "-finit-local-zero"
  1418. .PD 0
  1419. .IP "\fB\-finit\-derived\fR" 4
  1420. .IX Item "-finit-derived"
  1421. .IP "\fB\-finit\-integer=\fR\fIn\fR" 4
  1422. .IX Item "-finit-integer=n"
  1423. .IP "\fB\-finit\-real=\fR\fI<zero|inf|\-inf|nan|snan>\fR" 4
  1424. .IX Item "-finit-real=<zero|inf|-inf|nan|snan>"
  1425. .IP "\fB\-finit\-logical=\fR\fI<true|false>\fR" 4
  1426. .IX Item "-finit-logical=<true|false>"
  1427. .IP "\fB\-finit\-character=\fR\fIn\fR" 4
  1428. .IX Item "-finit-character=n"
  1429. .PD
  1430. The \fB\-finit\-local\-zero\fR option instructs the compiler to
  1431. initialize local \f(CW\*(C`INTEGER\*(C'\fR, \f(CW\*(C`REAL\*(C'\fR, and \f(CW\*(C`COMPLEX\*(C'\fR
  1432. variables to zero, \f(CW\*(C`LOGICAL\*(C'\fR variables to false, and
  1433. \&\f(CW\*(C`CHARACTER\*(C'\fR variables to a string of null bytes. Finer-grained
  1434. initialization options are provided by the
  1435. \&\fB\-finit\-integer=\fR\fIn\fR,
  1436. \&\fB\-finit\-real=\fR\fI<zero|inf|\-inf|nan|snan>\fR (which also initializes
  1437. the real and imaginary parts of local \f(CW\*(C`COMPLEX\*(C'\fR variables),
  1438. \&\fB\-finit\-logical=\fR\fI<true|false>\fR, and
  1439. \&\fB\-finit\-character=\fR\fIn\fR (where \fIn\fR is an \s-1ASCII\s0 character
  1440. value) options. Components of derived type variables will be initialized
  1441. according to these flags only with \fB\-finit\-derived\fR. These options do
  1442. not initialize
  1443. .RS 4
  1444. .IP "*" 4
  1445. allocatable arrays
  1446. .IP "*" 4
  1447. variables that appear in an \f(CW\*(C`EQUIVALENCE\*(C'\fR statement.
  1448. .RE
  1449. .RS 4
  1450. .Sp
  1451. (These limitations may be removed in future releases).
  1452. .Sp
  1453. Note that the \fB\-finit\-real=nan\fR option initializes \f(CW\*(C`REAL\*(C'\fR
  1454. and \f(CW\*(C`COMPLEX\*(C'\fR variables with a quiet NaN. For a signalling NaN
  1455. use \fB\-finit\-real=snan\fR; note, however, that compile-time
  1456. optimizations may convert them into quiet NaN and that trapping
  1457. needs to be enabled (e.g. via \fB\-ffpe\-trap\fR).
  1458. .Sp
  1459. Finally, note that enabling any of the \fB\-finit\-*\fR options will
  1460. silence warnings that would have been emitted by \fB\-Wuninitialized\fR
  1461. for the affected local variables.
  1462. .RE
  1463. .IP "\fB\-falign\-commons\fR" 4
  1464. .IX Item "-falign-commons"
  1465. By default, \fBgfortran\fR enforces proper alignment of all variables in a
  1466. \&\f(CW\*(C`COMMON\*(C'\fR block by padding them as needed. On certain platforms this is mandatory,
  1467. on others it increases performance. If a \f(CW\*(C`COMMON\*(C'\fR block is not declared with
  1468. consistent data types everywhere, this padding can cause trouble, and
  1469. \&\fB\-fno\-align\-commons\fR can be used to disable automatic alignment. The
  1470. same form of this option should be used for all files that share a \f(CW\*(C`COMMON\*(C'\fR block.
  1471. To avoid potential alignment issues in \f(CW\*(C`COMMON\*(C'\fR blocks, it is recommended to order
  1472. objects from largest to smallest.
  1473. .IP "\fB\-fno\-protect\-parens\fR" 4
  1474. .IX Item "-fno-protect-parens"
  1475. By default the parentheses in expression are honored for all optimization
  1476. levels such that the compiler does not do any re-association. Using
  1477. \&\fB\-fno\-protect\-parens\fR allows the compiler to reorder \f(CW\*(C`REAL\*(C'\fR and
  1478. \&\f(CW\*(C`COMPLEX\*(C'\fR expressions to produce faster code. Note that for the re-association
  1479. optimization \fB\-fno\-signed\-zeros\fR and \fB\-fno\-trapping\-math\fR
  1480. need to be in effect. The parentheses protection is enabled by default, unless
  1481. \&\fB\-Ofast\fR is given.
  1482. .IP "\fB\-frealloc\-lhs\fR" 4
  1483. .IX Item "-frealloc-lhs"
  1484. An allocatable left-hand side of an intrinsic assignment is automatically
  1485. (re)allocated if it is either unallocated or has a different shape. The
  1486. option is enabled by default except when \fB\-std=f95\fR is given. See
  1487. also \fB\-Wrealloc\-lhs\fR.
  1488. .IP "\fB\-faggressive\-function\-elimination\fR" 4
  1489. .IX Item "-faggressive-function-elimination"
  1490. Functions with identical argument lists are eliminated within
  1491. statements, regardless of whether these functions are marked
  1492. \&\f(CW\*(C`PURE\*(C'\fR or not. For example, in
  1493. .Sp
  1494. .Vb 1
  1495. \& a = f(b,c) + f(b,c)
  1496. .Ve
  1497. .Sp
  1498. there will only be a single call to \f(CW\*(C`f\*(C'\fR. This option only works
  1499. if \fB\-ffrontend\-optimize\fR is in effect.
  1500. .IP "\fB\-ffrontend\-optimize\fR" 4
  1501. .IX Item "-ffrontend-optimize"
  1502. This option performs front-end optimization, based on manipulating
  1503. parts the Fortran parse tree. Enabled by default by any \fB\-O\fR
  1504. option. Optimizations enabled by this option include inlining calls
  1505. to \f(CW\*(C`MATMUL\*(C'\fR, elimination of identical function calls within
  1506. expressions, removing unnecessary calls to \f(CW\*(C`TRIM\*(C'\fR in comparisons
  1507. and assignments and replacing \f(CWTRIM(a)\fR with
  1508. \&\f(CW\*(C`a(1:LEN_TRIM(a))\*(C'\fR. It can be deselected by specifying
  1509. \&\fB\-fno\-frontend\-optimize\fR.
  1510. .SH "ENVIRONMENT"
  1511. .IX Header "ENVIRONMENT"
  1512. The \fBgfortran\fR compiler currently does not make use of any environment
  1513. variables to control its operation above and beyond those
  1514. that affect the operation of \fBgcc\fR.
  1515. .SH "BUGS"
  1516. .IX Header "BUGS"
  1517. For instructions on reporting bugs, see
  1518. <\fBhttps://gcc.gnu.org/bugs/\fR>.
  1519. .SH "SEE ALSO"
  1520. .IX Header "SEE ALSO"
  1521. \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
  1522. \&\fIcpp\fR\|(1), \fIgcov\fR\|(1), \fIgcc\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
  1523. and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIgfortran\fR, \fIas\fR,
  1524. \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
  1525. .SH "AUTHOR"
  1526. .IX Header "AUTHOR"
  1527. See the Info entry for \fBgfortran\fR for contributors to \s-1GCC\s0 and
  1528. \&\s-1GNU\s0 Fortran.
  1529. .SH "COPYRIGHT"
  1530. .IX Header "COPYRIGHT"
  1531. Copyright (c) 2004\-2017 Free Software Foundation, Inc.
  1532. .PP
  1533. Permission is granted to copy, distribute and/or modify this document
  1534. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or
  1535. any later version published by the Free Software Foundation; with the
  1536. Invariant Sections being \*(L"Funding Free Software\*(R", the Front-Cover
  1537. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  1538. (see below). A copy of the license is included in the \fIgfdl\fR\|(7) man page.
  1539. .PP
  1540. (a) The \s-1FSF\s0's Front-Cover Text is:
  1541. .PP
  1542. .Vb 1
  1543. \& A GNU Manual
  1544. .Ve
  1545. .PP
  1546. (b) The \s-1FSF\s0's Back-Cover Text is:
  1547. .PP
  1548. .Vb 3
  1549. \& You have freedom to copy and modify this GNU Manual, like GNU
  1550. \& software. Copies published by the Free Software Foundation raise
  1551. \& funds for GNU development.
  1552. .Ve