File: f90.html

package info (click to toggle)
ftnchek 2.11.2-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,392 kB
  • ctags: 2,790
  • sloc: ansic: 21,570; fortran: 2,921; yacc: 2,794; sh: 1,623; makefile: 693; lisp: 264; awk: 163
file content (95 lines) | stat: -rw-r--r-- 5,090 bytes parent folder | download
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<HTML>
<HEAD>
<TITLE>Option: f90</TITLE>
</HEAD>
<BODY>
<A HREF="toc.html">Table of Contents</A><P>
<P>Previous: <A HREF="f77.html">-f77</A><HR><P>
<H2>Option: <font color=#FF0080>f90</font></H2><P>
<A NAME="f90"></A><DT><B><A HREF="f90.html">-f90</A>=</B><I>list</I> 
 </DT>
<DD>This setting provides detailed control over the warnings about supported 
extensions to the Fortran 77 Standard that were not adopted as part of 
the Fortran 90 Standard.  Note that <B>ftnchek </B> does not support the full 
Fortran 90 language.  However, it does support some common extensions to 
Fortran 77 that were prevalent before Fortran 90 was defined.  Some of 
these extensions became part of the Fortran 90 Standard, but others did 
not.  The <B><A HREF="f90.html">-f90</A> </B> setting warns only about the latter.  That is, this flag 
covers things that are neither legal Fortran 77 nor legal Fortran 90.  
Therefore, the warnings controlled by this flag are basically a subset 
of the warnings controlled by <B><A HREF="f77.html">-f77</A> </B>.  There are a few cases, described below, 
where the circumstances in which the warning is given are slightly different 
for the two flags.  <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="f90.html">-f90</A> </B> is equivalent to <B><A HREF="f90.html">-f90</A>=all </B>, and <B>-nof90 </B> is equivalent 
to <B><A HREF="f90.html">-f90</A>=none </B>. <P>
The following keywords have identical meanings for <B><A HREF="f90.html">-f90</A> </B> as 
for <B><A HREF="f77.html">-f77</A> </B>.  The reader is referred to the explanations under <B><A HREF="f77.html">-f77</A> </B>.  <CENTER> <TABLE BORDER=0>
 <TR> <TD ALIGN=LEFT><B>accept-type 
</B> </TD> <TD ALIGN=LEFT><B>double-complex </B> </TD> <TD ALIGN=LEFT><B>param-noparen </B> </TD> </TR>
 <TR> <TD ALIGN=LEFT><B>backslash </B> </TD> <TD ALIGN=LEFT><B>format-dollarsign </B> </TD> <TD ALIGN=LEFT><B>pointer 
</B> </TD> </TR>
 <TR> <TD ALIGN=LEFT><B>byte </B> </TD> <TD ALIGN=LEFT><B>format-edit-descr </B> </TD> <TD ALIGN=LEFT><B>quad-constant </B> </TD> </TR>
 <TR> <TD ALIGN=LEFT><B>cpp </B> </TD> <TD ALIGN=LEFT><B>function-noparen </B> </TD> 
<TD ALIGN=LEFT><B>type-size </B> </TD> </TR>
 <TR> <TD ALIGN=LEFT><B>d-comment </B> </TD> <TD ALIGN=LEFT><B>name-dollarsign </B> </TD> <TD ALIGN=LEFT><B>variable-format </B> </TD> </TR>
 <TR> <TD ALIGN=LEFT><B>dec-tab </B> </TD> <TD ALIGN=LEFT><B>param-implicit-type 
</B> </TD> <TD ALIGN=LEFT><B>vms-io </B> </TD> </TR>
 </TABLE>
 </CENTER><P>
The keywords which differ somewhat from the corresponding 
<B><A HREF="f77.html">-f77</A> </B> keywords are as follows. 
<DL>

<DT><B>intrinsic</B>:  </DT>
<DD>This is the same as for <B><A HREF="f77.html">-f77</A> </B> 
except for the intrinsic functions defined in MIL-STD 1753, which are all 
included in Fortran 90, and so are not warned about.  (See <B><A HREF="intrinsic.html">-intrinsic</A> </B> for 
a list.) </DD>

<DT><B>io-keywords</B>:  </DT>
<DD>This is the same as for <B><A HREF="f77.html">-f77</A> </B> except that no warnings 
are given for the I/O keywords that are standard in Fortran 90. </DD>

<DT><B>long-line</B>: 
 </DT>
<DD>Although the Fortran 90 Standard allows lines longer than 72 characters 
in free source form, the restriction still applies to fixed source form, 
which is the only form accepted by <B>ftnchek </B>. </DD>

<DT><B>mixed-expr</B>:  </DT>
<DD>This is the same 
as for <B><A HREF="f77.html">-f77</A> </B> except for expressions mixing extended precision real with 
complex data types, which are permitted in Fortran 90. </DD>

<DT><B>statement-order</B>: 
 </DT>
<DD>This is similar to the corresponding <B><A HREF="f77.html">-f77</A> </B> warning, but applies the somewhat 
looser restrictions on statement order of the Fortran 90 Standard.  In 
particular, Fortran 90 allows DATA  statements and statement-function definitions 
to be intermixed with specification statements. </DD>

<DT><B>typeless-constant</B>:  </DT>
<DD>In Fortran 
90, binary, octal, and hexadecimal constants of the form B'ddd' , O'ddd' , 
and Z'ddd' , respectively, are permitted.  Here 'ddd'  represents a string 
of digits. <B>ftnchek </B> recognizes these forms, as well as a variant of the 
form X'ddd'  for a hexadecimal constant, and other variants in which the 
base indicator B , O , Z , or X  follows the digit string.  These variants 
were not adopted in Fortran 90, so only they are warned about when this 
flag is turned on. </DD>
</DL>
<P>
See also: <B><A HREF="f77.html">-f77</A> </B>, <B><A HREF="f95.html">-f95</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="f95.html">-f95</A>
</BODY></HTML>