diff options
author | tkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-17 20:26:57 +0000 |
---|---|---|
committer | tkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-17 20:26:57 +0000 |
commit | 2be2fbdf11f527ca99612f65680ea3522502c971 (patch) | |
tree | 1a445a241116927659a4a5309a238451e2b7d33f /libgfortran/m4/reshape.m4 | |
parent | fc2a7c2711d61197795e86f34a978af6f71d8a34 (diff) | |
download | gcc-2be2fbdf11f527ca99612f65680ea3522502c971.tar.gz |
005-04-17 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/21075
* m4/reshape.m4 (reshape_`'rtype_kind): Change dimension
of auxiliary arrays from GFC_MAX_DIMENSIONS - 1 to
GFC_MAX_DIMENSIONS.
* intrinsics/reshape_generic.c (reshape_generic): Likewise.
* generated/reshape_i4.c: Regenerated.
* generated/reshape_i8.c: Regenerated.
2005-04-17 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/21075
* gfortran.dg/reshape_rank7.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98288 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/m4/reshape.m4')
-rw-r--r-- | libgfortran/m4/reshape.m4 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libgfortran/m4/reshape.m4 b/libgfortran/m4/reshape.m4 index 90a23e3850b..22e2536ecb7 100644 --- a/libgfortran/m4/reshape.m4 +++ b/libgfortran/m4/reshape.m4 @@ -49,25 +49,25 @@ reshape_`'rtype_kind (rtype * ret, rtype * source, shape_type * shape, rtype * pad, shape_type * order) { /* r.* indicates the return array. */ - index_type rcount[GFC_MAX_DIMENSIONS - 1]; - index_type rextent[GFC_MAX_DIMENSIONS - 1]; - index_type rstride[GFC_MAX_DIMENSIONS - 1]; + index_type rcount[GFC_MAX_DIMENSIONS]; + index_type rextent[GFC_MAX_DIMENSIONS]; + index_type rstride[GFC_MAX_DIMENSIONS]; index_type rstride0; index_type rdim; index_type rsize; rtype_name *rptr; /* s.* indicates the source array. */ - index_type scount[GFC_MAX_DIMENSIONS - 1]; - index_type sextent[GFC_MAX_DIMENSIONS - 1]; - index_type sstride[GFC_MAX_DIMENSIONS - 1]; + index_type scount[GFC_MAX_DIMENSIONS]; + index_type sextent[GFC_MAX_DIMENSIONS]; + index_type sstride[GFC_MAX_DIMENSIONS]; index_type sstride0; index_type sdim; index_type ssize; const rtype_name *sptr; /* p.* indicates the pad array. */ - index_type pcount[GFC_MAX_DIMENSIONS - 1]; - index_type pextent[GFC_MAX_DIMENSIONS - 1]; - index_type pstride[GFC_MAX_DIMENSIONS - 1]; + index_type pcount[GFC_MAX_DIMENSIONS]; + index_type pextent[GFC_MAX_DIMENSIONS]; + index_type pstride[GFC_MAX_DIMENSIONS]; index_type pdim; index_type psize; const rtype_name *pptr; |