re PR fortran/35960 (run time abort with assignment of RESHAPEd zero sized array)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 20 Apr 2008 19:56:07 +0000 (19:56 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 20 Apr 2008 19:56:07 +0000 (19:56 +0000)
commit8c154b65579602aad087eff7229a460412b9ed8c
treea0f091b6d4e9ffd907ca682662f415fcb11b9fd8
parenteea05d39c799880df753e9b74d2d96e86215c46e
re PR fortran/35960 (run time abort with assignment of RESHAPEd zero sized array)

2008-04-20  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/35960
* intrinsics/reshape_generic.c (reshape_internal): If the size
of the resized array is zero, as determined by the SHAPE
argument, return early.
* m4/reshape.m4:  Likewise.
* generated/reshape_i4.c:  Regererated.
* generated/reshape_i8.c:  Regenerated.
* generated/reshape_i16.c:  Regenerated.
* generated/reshape_r4.c:  Regenerated.
* generated/reshape_r8.c:  Regenerated.
* generated/reshape_r10.c:  Regenerated.
* generated/reshape_r16.c:  Regenerated.
* generated/reshape_c4.c:  Regenerated.
* generated/reshape_c8.c:  Regenerated.
* generated/reshape_c10.c:  Regenerated.
* generated/reshape_c16.c:  Regenerated.

2008-04-20  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/35960
* gfortran.dg/reshape_zerosize_1.f90:  New file.

From-SVN: r134490
16 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/reshape_zerosize_1.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/generated/reshape_c10.c
libgfortran/generated/reshape_c16.c
libgfortran/generated/reshape_c4.c
libgfortran/generated/reshape_c8.c
libgfortran/generated/reshape_i16.c
libgfortran/generated/reshape_i4.c
libgfortran/generated/reshape_i8.c
libgfortran/generated/reshape_r10.c
libgfortran/generated/reshape_r16.c
libgfortran/generated/reshape_r4.c
libgfortran/generated/reshape_r8.c
libgfortran/intrinsics/reshape_generic.c
libgfortran/m4/reshape.m4