diff options
author | Thomas Koenig <Thomas.Koenig@online.de> | 2005-04-15 20:06:17 +0000 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2005-04-15 20:06:17 +0000 |
commit | 8e6d7b8a35bdb1f089e83ac8f6a85253e4272c86 (patch) | |
tree | 292cf804ca180a2bbd8b572c18603d0233efe047 /gcc/fold-const.c | |
parent | 35205e8f059ddcbf7a5ce1865901a56d1771b923 (diff) | |
download | gcc-8e6d7b8a35bdb1f089e83ac8f6a85253e4272c86.zip gcc-8e6d7b8a35bdb1f089e83ac8f6a85253e4272c86.tar.gz gcc-8e6d7b8a35bdb1f089e83ac8f6a85253e4272c86.tar.bz2 |
re PR libfortran/18495 ([4.0 only] Intrinisc function SPREAD is broken)
2005-04-15 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/18495
* intrinsics/spread_generic.c (spread): Remove const from
return array descriptor.
New variables: rrank (rank of return array), rs (for
calculating the size of the return array), srank (rank
of the source array).
Generate runtime error if the dim= argument is larger than
the rank of the return array.
Generate runtime error if the needed rank of the return
array is larger than 7.
If ret->data is null, populate the return array descriptor
and initialize the variables for the actual operation.
Otherwise, set ret->dim[0].stride to one if it is zero.
Change second, independent use of variable dim to srank.
2005-04-15 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/18495
* gfortran.fortran-torture/execute/intrinsic_spread.f90:
Test callee-allocated version of return array with a write
statement.
Test spread with a temporary with another write statement.
From-SVN: r98208
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions