diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 642e4191d8b..eff0a0fa88b 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,10 @@ +2013-12-10 Janus Weil + + * gfortran.texi: Add possible kind values (and default) for + DOUBLE PRECISION. + * invoke.texi: Correct documentation of -fdefault-integer-8, + -fdefault-real-8 and -fdefault-double-8. + 2013-12-10 Janus Weil * gfortran.texi: Modify documentation of kind type parameters. diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi index 902734c2c1c..f2f2c80c29d 100644 --- a/gcc/fortran/gfortran.texi +++ b/gcc/fortran/gfortran.texi @@ -1145,6 +1145,9 @@ data types are: @item COMPLEX 4, 8, 10*, 16*, default: 4*** +@item DOUBLE PRECISION +4, 8, 10*, 16*, default: 8*** + @item CHARACTER 1, 4, default: 1 diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index 4d8ef4b6ccd..6a5c8a14471 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -329,16 +329,14 @@ on most systems, but with @option{-fno-range-check} the value will @item -fdefault-integer-8 @opindex @code{fdefault-integer-8} -Set the default integer and logical types to an 8 byte wide type. -Do nothing if this is already the default. This option also affects -the kind of integer constants like @code{42}. Unlike +Set the default integer and logical types to an 8 byte wide type. This option +also affects the kind of integer constants like @code{42}. Unlike @option{-finteger-4-integer-8}, it does not promote variables with explicit kind declaration. @item -fdefault-real-8 @opindex @code{fdefault-real-8} -Set the default real type to an 8 byte wide type. -Do nothing if this is already the default. This option also affects +Set the default real type to an 8 byte wide type. This option also affects the kind of non-double real constants like @code{1.0}, and does promote the default width of @code{DOUBLE PRECISION} to 16 bytes if possible, unless @code{-fdefault-double-8} is given, too. Unlike @option{-freal-4-real-8}, @@ -346,12 +344,12 @@ it does not promote variables with explicit kind declaration. @item -fdefault-double-8 @opindex @code{fdefault-double-8} -Set the @code{DOUBLE PRECISION} type to an 8 byte wide type. If -@option{-fdefault-real-8} is given, @code{DOUBLE PRECISION} would -instead be promoted to 16 bytes if possible, and @option{-fdefault-double-8} -can be used to prevent this. The kind of real constants like @code{1.d0} will -not be changed by @option{-fdefault-real-8} though, so also -@option{-fdefault-double-8} does not affect it. +Set the @code{DOUBLE PRECISION} type to an 8 byte wide type. Do nothing if this +is already the default. If @option{-fdefault-real-8} is given, +@code{DOUBLE PRECISION} would instead be promoted to 16 bytes if possible, and +@option{-fdefault-double-8} can be used to prevent this. The kind of real +constants like @code{1.d0} will not be changed by @option{-fdefault-real-8} +though, so also @option{-fdefault-double-8} does not affect it. @item -finteger-4-integer-8 @opindex @code{finteger-4-integer-8}