diff options
author | Daniel Kraft <d@domob.eu> | 2009-01-21 14:34:55 +0100 |
---|---|---|
committer | Daniel Kraft <domob@gcc.gnu.org> | 2009-01-21 14:34:55 +0100 |
commit | 210879b85b09194934eabcf5777cf2cff6e8dedc (patch) | |
tree | b1031584e4fe3d17c0b6289ff1e3eb0c4072334d /libgfortran/generated/in_unpack_c8.c | |
parent | 71a6fe66e7292912deda846c123134d2c43d43e1 (diff) | |
download | gcc-210879b85b09194934eabcf5777cf2cff6e8dedc.zip gcc-210879b85b09194934eabcf5777cf2cff6e8dedc.tar.gz gcc-210879b85b09194934eabcf5777cf2cff6e8dedc.tar.bz2 |
re PR fortran/38887 (run-time abort for MVBITS with run-time zero sized array arguments)
2009-01-21 Daniel Kraft <d@domob.eu>
* trans-stmt.c (gfc_conv_elemental_dependencies): Cleaned up comment.
2009-01-21 Daniel Kraft <d@domob.eu>
PR fortran/38887
* runtime/in_unpack_generic.c (internal_unpack): Return instead of
abort when called with empty array.
* m4/in_unpack.m4: Ditto.
* generated/in_unpack_i1.c: Regenerated.
* generated/in_unpack_i2.c: Regenerated.
* generated/in_unpack_i4.c: Regenerated.
* generated/in_unpack_i8.c: Regenerated.
* generated/in_unpack_i16.c: Regenerated.
* generated/in_unpack_r4.c: Regenerated.
* generated/in_unpack_r8.c: Regenerated.
* generated/in_unpack_r10.c: Regenerated.
* generated/in_unpack_r16.c: Regenerated.
* generated/in_unpack_c4.c: Regenerated.
* generated/in_unpack_c8.c: Regenerated.
* generated/in_unpack_c10.c: Regenerated.
* generated/in_unpack_c16.c: Regenerated.
2009-01-21 Daniel Kraft <d@domob.eu>
PR fortran/38887
* gfortran.dg/mvbits_5.f90: New test.
From-SVN: r143541
Diffstat (limited to 'libgfortran/generated/in_unpack_c8.c')
-rw-r--r-- | libgfortran/generated/in_unpack_c8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgfortran/generated/in_unpack_c8.c b/libgfortran/generated/in_unpack_c8.c index e1fada3..5dbfca0 100644 --- a/libgfortran/generated/in_unpack_c8.c +++ b/libgfortran/generated/in_unpack_c8.c @@ -60,12 +60,12 @@ internal_unpack_c8 (gfc_array_c8 * d, const GFC_COMPLEX_8 * src) stride[n] = d->dim[n].stride; extent[n] = d->dim[n].ubound + 1 - d->dim[n].lbound; if (extent[n] <= 0) - abort (); + return; if (dsize == stride[n]) - dsize *= extent[n]; + dsize *= extent[n]; else - dsize = 0; + dsize = 0; } if (dsize != 0) |