diff options
author | Tobias Burnus <burnus@net-b.de> | 2007-12-20 09:13:09 +0100 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2007-12-20 09:13:09 +0100 |
commit | c7abc45c7f097a501a93d0778cfa445745b74d22 (patch) | |
tree | c1105d7d38643842a8a83544615c0aaec01a6b80 /gcc/fortran/gfortran.texi | |
parent | f411364823c12f94105779db7f8e812b6acbe1a8 (diff) | |
download | gcc-c7abc45c7f097a501a93d0778cfa445745b74d22.tar.gz |
re PR fortran/34482 (FAIL: gfortran.dg/nan_4.f90 -O tests for errors)
2007-12-20 Tobias Burnus <burnus@net-b.de>
PR fortran/34482
* gfortran.texi (BOZ): Document behavior for complex
numbers.
* target-memory.h (gfc_convert_boz): Update prototype.
* target-memory.c (gfc_convert_boz): Add error check
and convert BOZ to smallest possible bit size.
* resolve.c (resolve_ordinary_assign): Check return value.
* expr.c (gfc_check_assign): Ditto.
* simplify.c (simplify_cmplx, gfc_simplify_dble,
gfc_simplify_float, gfc_simplify_real): Ditto.
2007-12-20 Tobias Burnus <burnus@net-b.de>
PR fortran/34482
* gfortran.dg/boz_8.f90: Add error-check check.
* gfortran.dg/boz_9.f90: Shorten BOZ where needed, replace
stop by call abort.
From-SVN: r131098
Diffstat (limited to 'gcc/fortran/gfortran.texi')
-rw-r--r-- | gcc/fortran/gfortran.texi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi index 9fda225a8cf..43e3d3a1ff6 100644 --- a/gcc/fortran/gfortran.texi +++ b/gcc/fortran/gfortran.texi @@ -1115,8 +1115,9 @@ DATA statements and the four intrinsic functions allowed by Fortran 2003. In DATA statements, in direct assignments, where the right-hand side only contains a BOZ literal constant, and for old-style initializers of the form @code{integer i /o'0173'/}, the constant is transferred -as if @code{TRANSFER} had been used. In all other cases, the BOZ literal -constant is converted to an @code{INTEGER} value with +as if @code{TRANSFER} had been used; for @code{COMPLEX} numbers, only +the real part is initialized unless @code{CMPLX} is used. In all other +cases, the BOZ literal constant is converted to an @code{INTEGER} value with the largest decimal representation. This value is then converted numerically to the type and kind of the variable in question. (For instance @code{real :: r = b'0000001' + 1} initializes @code{r} |