diff options
author | Joost VandeVondele <vondele@gcc.gnu.org> | 2014-09-05 13:40:05 +0000 |
---|---|---|
committer | Joost VandeVondele <vondele@gcc.gnu.org> | 2014-09-05 13:40:05 +0000 |
commit | fae867f5b1c723f35ce4e03532dbc8f9e544739f (patch) | |
tree | 20798cb55df222a8b2e75390481c26b6071dcc42 /gcc | |
parent | e4ca2139f2fd864316e6fd4e76dea933c67621ab (diff) | |
download | gcc-fae867f5b1c723f35ce4e03532dbc8f9e544739f.zip gcc-fae867f5b1c723f35ce4e03532dbc8f9e544739f.tar.gz gcc-fae867f5b1c723f35ce4e03532dbc8f9e544739f.tar.bz2 |
re PR fortran/62245 (gfortran miscompiles int() on mips)
PR fortran/62245
* intrinsic.texi (INT): clarify result.
From-SVN: r214958
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fortran/intrinsic.texi | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 9eeb4cf..236c909 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2014-09-05 Joost VandeVondele <vondele@gcc.gnu.org> + + PR fortran/62245 + * intrinsic.texi (INT): clarify result. + 2014-09-03 Fritz Reese <Reese-Fritz@zai.com> PR fortran/62174 diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index 0f4a8a7..48713a6 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -7370,9 +7370,10 @@ the following rules: @item (A) 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 @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)} 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}. @item (C) If @var{A} is of type @code{COMPLEX}, rule B is applied to the real part of @var{A}. @end table |