re PR libfortran/36773 (zero-sized arrays with cshift and eoshift)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 21 Jul 2008 10:05:32 +0000 (10:05 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 21 Jul 2008 10:05:32 +0000 (10:05 +0000)
commitc44109aaf3be31a6816a8a4f3c4454261d8d2622
tree9f53b6a50b64cf1ac4935ade62445629885b9613
parent1bb64668d0fbb2abfa3583918a256420028eea30
re PR libfortran/36773 (zero-sized arrays with cshift and eoshift)

2008-07-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/36773
* intrinsics/cshift0.c (cshift0):  Return early if size of array
is zero.
* intrinsics/eoshift0.c (eoshift0):  Return early if size of
return array is zero.
* intrinsics/eoshift2.c (eoshift2):  Likewise.
* m4/eoshift1.m4 (eoshift1):  Return early if size of array
is zero.
* m4/eoshift3.m4 (eoshift3):  Likewise.
* m4/eoshift2.m4 (eoshift2):  Return early if size of return
array is zero.
* m4/eoshift4.m4 (eoshift2):  Return early if size of return
array is zero.
* generated/cshift1_16.c: Regenerated.
* generated/cshift1_4.c: Regenerated.
* generated/cshift1_8.c: Regenerated.
* generated/eoshift1_16.c: Regenerated.
* generated/eoshift1_4.c: Regenerated.
* generated/eoshift1_8.c: Regenerated.
* generated/eoshift3_16.c: Regenerated.
* generated/eoshift3_4.c: Regenerated.
* generated/eoshift3_8.c: Regenerated.

2008-07-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/36773
* gfortran.dg/zero_sized_5.f90:  New test case.

From-SVN: r138027
18 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/zero_sized_5.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/generated/cshift1_16.c
libgfortran/generated/cshift1_4.c
libgfortran/generated/cshift1_8.c
libgfortran/generated/eoshift1_16.c
libgfortran/generated/eoshift1_4.c
libgfortran/generated/eoshift1_8.c
libgfortran/generated/eoshift3_16.c
libgfortran/generated/eoshift3_4.c
libgfortran/generated/eoshift3_8.c
libgfortran/intrinsics/cshift0.c
libgfortran/intrinsics/eoshift0.c
libgfortran/intrinsics/eoshift2.c
libgfortran/m4/cshift1.m4
libgfortran/m4/eoshift1.m4
libgfortran/m4/eoshift3.m4