1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
<HTML>
<HEAD>
<TITLE>Option: f95</TITLE>
</HEAD>
<BODY>
<A HREF="toc.html">Table of Contents</A><P>
<P>Previous: <A HREF="f90.html">-f90</A><HR><P>
<H2>Option: <font color=#FF0080>f95</font></H2><P>
<A NAME="f95"></A><DT><B><A HREF="f95.html">-f95</A>=</B><I>list</I> </DT>
<DD>This setting provides detailed control over warnings about
standard Fortran 77 features that were deleted from the Fortran 95 Standard.
Unlike the <B><A HREF="f77.html">-f77</A> </B> and <B><A HREF="f90.html">-f90</A> </B> settings, these warnings apply to syntax which
is legal Fortran 77. However, since these features have been deleted from
the Standard, it is possible that programs containing them will be unacceptable
to some newer compilers. <blockquote></DD>
</DL>
<P>
The <I>list </I> consists of keywords separated by commas
or colons. There are three special keywords: <B>all </B> to turn on all the warnings
about nonstandard extensions, <B>none </B> to turn them all off, and <B>help </B> to
print the list of all the keywords with a brief explanation of each. If
<I>list </I> is omitted, <B><A HREF="f95.html">-f95</A> </B> is equivalent to <B><A HREF="f95.html">-f95</A>=all </B>, and <B>-nof95 </B> is equivalent
to <B><A HREF="f95.html">-f95</A>=none </B>. The warning keywords with their meanings are as follows.
<DL>
<DT><B>real-do</B>:
</DT>
<DD>A DO variable of any real numeric type. </DD>
<DT><B>pause</B>: </DT>
<DD>The PAUSE statement.
</DD>
<DT><B>assign</B>: </DT>
<DD>The ASSIGN statement, assigned GOTO , or assigned format. </DD>
<DT><B>h-edit</B>:
</DT>
<DD>The H edit descriptor in a format. </DD>
</DL>
<P>
There is one other Fortran 77 syntax
feature that was deleted in Fortran 95, namely branching to an ENDIF
from outside the IF block. However, <B>ftnchek </B> is unable to analyze program
flow, and so it does not provide a warning for this. <P>
See also: <B><A HREF="f77.html">-f77</A> </B>, <B><A HREF="f90.html">-f90</A>
</B>, <B><A HREF="portability.html">-portability</A> </B>, <B><A HREF="pretty.html">-pretty</A> </B>, <B><A HREF="wordsize.html">-wordsize</A> </B>. </blockquote>
<P>
<DL>
<P><HR><P>Next: <A HREF="help.html">-help</A>
</BODY></HTML>
|