Commit b2b81a3f by Brooks Moses Committed by Brooks Moses

gfortran.texi (Old-style kind specifications): Document special handling of…

gfortran.texi (Old-style kind specifications): Document special handling of old-style kind specifiers for COMPLEX.

* gfortran.texi (Old-style kind specifications): Document
special handling of old-style kind specifiers for COMPLEX.
* decl.c (gfc_match_old_kind_spec): Document kind/bytesize
assumptions for COMPLEX in comment.

From-SVN: r122599
parent 676a7884
2007-03-05 Brooks Moses <brooks.moses@codesourcery.com> 2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
* gfortran.texi (Old-style kind specifications): Document
special handling of old-style kind specifiers for COMPLEX.
* decl.c (gfc_match_old_kind_spec): Document kind/bytesize
assumptions for COMPLEX in comment.
2007-03-05 Brooks Moses <brooks.moses@codesourcery.com>
PR 31050 PR 31050
* gfortranspec.c (lang_specific_driver): Update program * gfortranspec.c (lang_specific_driver): Update program
name and copyright date. name and copyright date.
......
...@@ -1373,9 +1373,9 @@ cleanup: ...@@ -1373,9 +1373,9 @@ cleanup:
} }
/* Match an extended-f77 kind specification. This assumes that the kind /* Match an extended-f77 "TYPESPEC*bytesize"-style kind specification.
number is equal to the byte size for non-COMPLEX types, and equal to This assumes that the byte size is equal to the kind number for
half of the byte size for COMPLEX. */ non-COMPLEX types, and equal to twice the kind number for COMPLEX. */
match match
gfc_match_old_kind_spec (gfc_typespec *ts) gfc_match_old_kind_spec (gfc_typespec *ts)
......
...@@ -840,14 +840,18 @@ look like: ...@@ -840,14 +840,18 @@ look like:
@smallexample @smallexample
TYPESPEC*size x,y,z TYPESPEC*size x,y,z
@end smallexample @end smallexample
@noindent
where @code{TYPESPEC} is a basic type (@code{INTEGER}, @code{REAL}, where @code{TYPESPEC} is a basic type (@code{INTEGER}, @code{REAL},
etc.), and where @code{size} is a byte count corresponding to a valid etc.), and where @code{size} is a byte count corresponding to the
kind for that type. The statement then declares @code{x}, @code{y} and storage size of a valid kind for that type. (For @code{COMPLEX}
@code{z} to be of type @code{TYPESPEC} with the appropriate kind. This variables, @code{size} is the total size of the real and imaginary
is equivalent to the standard conforming declaration parts.) The statement then declares @code{x}, @code{y} and @code{z} to
be of type @code{TYPESPEC} with the appropriate kind. This is
equivalent to the standard-conforming declaration
@smallexample @smallexample
TYPESPEC(k) x,y,z TYPESPEC(k) x,y,z
@end smallexample @end smallexample
@noindent
where @code{k} is equal to @code{size} for most types, but is equal to where @code{k} is equal to @code{size} for most types, but is equal to
@code{size/2} for the @code{COMPLEX} type. @code{size/2} for the @code{COMPLEX} type.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment