A doc change to refine wording for result value of int, avoiding the word range and using magnitude as does the standard. Mentions undefined behavior.
2014-08-24 Joost VandeVondele <vond...@gcc.gnu.org> PR fortran/62245 * intrinsic.texi (INT): clarify result and undefined behavior. Index: intrinsic.texi =================================================================== --- intrinsic.texi (revision 214408) +++ intrinsic.texi (working copy) @@ -7371,8 +7371,10 @@ the following rules: If @var{A} is of type @code{INTEGER}, @code{INT(A) = A} @item (B) If @var{A} is of type @code{REAL} and @math{|A| < 1}, @code{INT(A)} equals @code{0}. -If @math{|A| \geq 1}, then @code{INT(A)} equals the largest integer that does not exceed -the range of @var{A} and whose sign is the same as the sign of @var{A}. +If @math{|A| \geq 1}, then @code{INT(A)} is the integer whose magnitude is the largest +integer that does not exceed the magnitude of @var{A} and whose sign is the same as +the sign of @var{A}. The result is undefined if it can not be represented as an +@code{INTEGER} of the given @code{KIND}. @item (C) If @var{A} is of type @code{COMPLEX}, rule B is applied to the real part of @var{A}. @end table