gcc/libgfortran/intrinsics
Thomas Koenig 8e6d7b8a35 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
2005-04-15 20:06:17 +00:00
..
abort.c
args.c
associated.c
bessel.c
c99_functions.c
chdir.c Makefile.am: Added new files. 2005-03-22 22:08:22 +00:00
cpu_time.c
cshift0.c
date_and_time.c
dprod_r8.f90
env.c
eoshift0.c
eoshift2.c
erf.c
etime.c
exit.c
flush.c
fnum.c
gerror.c Makefile.am: Added new files. 2005-03-22 22:08:22 +00:00
getcwd.c
getlog.c Makefile.am: Added new files. 2005-03-22 22:08:22 +00:00
getXid.c
hostnm.c Makefile.am: Added new files. 2005-03-22 22:08:22 +00:00
ierrno.c Makefile.am: Added new files. 2005-03-22 22:08:22 +00:00
ishftc.c
kill.c Makefile.am: Added new files. 2005-03-22 22:08:22 +00:00
link.c Makefile.am: Added new files. 2005-03-22 22:08:22 +00:00
mvbits.c
pack_generic.c
perror.c Makefile.am: Added new files. 2005-03-22 22:08:22 +00:00
rand.c
random.c
rename.c Makefile.am: Added new files. 2005-03-22 22:08:22 +00:00
reshape_generic.c re PR libfortran/19280 (Inconsistent licensing of libgfortran) 2005-01-12 21:27:33 +00:00
reshape_packed.c
selected_int_kind.f90
selected_real_kind.f90
size.c
sleep.c Makefile.am: Added new files. 2005-03-22 22:08:22 +00:00
spread_generic.c re PR libfortran/18495 ([4.0 only] Intrinisc function SPREAD is broken) 2005-04-15 20:06:17 +00:00
stat.c
string_intrinsics.c
symlnk.c Makefile.am: Added new files. 2005-03-22 22:08:22 +00:00
system_clock.c
system.c
time.c Makefile.am: Added new files. 2005-03-22 22:08:22 +00:00
transpose_generic.c
umask.c
unlink.c
unpack_generic.c