gcc/libgfortran/m4
Thomas Koenig 80ee04b982 re PR fortran/30321 (program crash for SUM applied to zero-size array)
2006-12-30  Thomas Koenig  <Thomas.Koenig@online.de>

	PR libfortran/30321
	* m4/ifunction.m4 (name`'rtype_qual`_'atype_code):
	Check for extents < 0 for zero-sized arrays.  If
	no retarray has been specified and the size is zero,
	return early.
	(`m'name`'rtype_qual`_'atype_code): Likewise.
	* generated/all_l16.c: Regenerated.
	* generated/all_l4.c: Regenerated.
	* generated/all_l8.c: Regenerated.
	* generated/any_l16.c: Regenerated.
	* generated/any_l4.c: Regenerated.
	* generated/any_l8.c: Regenerated.
	* generated/count_16_l16.c: Regenerated.
	* generated/count_16_l4.c: Regenerated.
	* generated/count_16_l8.c: Regenerated.
	* generated/count_4_l16.c: Regenerated.
	* generated/count_4_l4.c: Regenerated.
	* generated/count_4_l8.c: Regenerated.
	* generated/count_8_l16.c: Regenerated.
	* generated/count_8_l4.c: Regenerated.
	* generated/count_8_l8.c: Regenerated.
	* generated/cshift1_16.c: Regenerated.
	* generated/cshift1_4.c: Regenerated.
	* generated/cshift1_8.c: Regenerated.
	* generated/maxloc1_16_i16.c: Regenerated.
	* generated/maxloc1_16_i4.c: Regenerated.
	* generated/maxloc1_16_i8.c: Regenerated.
	* generated/maxloc1_16_r10.c: Regenerated.
	* generated/maxloc1_16_r16.c: Regenerated.
	* generated/maxloc1_16_r4.c: Regenerated.
	* generated/maxloc1_16_r8.c: Regenerated.
	* generated/maxloc1_4_i16.c: Regenerated.
	* generated/maxloc1_4_i4.c: Regenerated.
	* generated/maxloc1_4_i8.c: Regenerated.
	* generated/maxloc1_4_r10.c: Regenerated.
	* generated/maxloc1_4_r16.c: Regenerated.
	* generated/maxloc1_4_r4.c: Regenerated.
	* generated/maxloc1_4_r8.c: Regenerated.
	* generated/maxloc1_8_i16.c: Regenerated.
	* generated/maxloc1_8_i4.c: Regenerated.
	* generated/maxloc1_8_i8.c: Regenerated.
	* generated/maxloc1_8_r10.c: Regenerated.
	* generated/maxloc1_8_r16.c: Regenerated.
	* generated/maxloc1_8_r4.c: Regenerated.
	* generated/maxloc1_8_r8.c: Regenerated.
	* generated/maxval_i16.c: Regenerated.
	* generated/maxval_i4.c: Regenerated.
	* generated/maxval_i8.c: Regenerated.
	* generated/maxval_r10.c: Regenerated.
	* generated/maxval_r16.c: Regenerated.
	* generated/maxval_r4.c: Regenerated.
	* generated/maxval_r8.c: Regenerated.
	* generated/minloc1_16_i16.c: Regenerated.
	* generated/minloc1_16_i4.c: Regenerated.
	* generated/minloc1_16_i8.c: Regenerated.
	* generated/minloc1_16_r10.c: Regenerated.
	* generated/minloc1_16_r16.c: Regenerated.
	* generated/minloc1_16_r4.c: Regenerated.
	* generated/minloc1_16_r8.c: Regenerated.
	* generated/minloc1_4_i16.c: Regenerated.
	* generated/minloc1_4_i4.c: Regenerated.
	* generated/minloc1_4_i8.c: Regenerated.
	* generated/minloc1_4_r10.c: Regenerated.
	* generated/minloc1_4_r16.c: Regenerated.
	* generated/minloc1_4_r4.c: Regenerated.
	* generated/minloc1_4_r8.c: Regenerated.
	* generated/minloc1_8_i16.c: Regenerated.
	* generated/minloc1_8_i4.c: Regenerated.
	* generated/minloc1_8_i8.c: Regenerated.
	* generated/minloc1_8_r10.c: Regenerated.
	* generated/minloc1_8_r16.c: Regenerated.
	* generated/minloc1_8_r4.c: Regenerated.
	* generated/minloc1_8_r8.c: Regenerated.
	* generated/minval_i16.c: Regenerated.
	* generated/minval_i4.c: Regenerated.
	* generated/minval_i8.c: Regenerated.
	* generated/minval_r10.c: Regenerated.
	* generated/minval_r16.c: Regenerated.
	* generated/minval_r4.c: Regenerated.
	* generated/minval_r8.c: Regenerated.
	* generated/product_c10.c: Regenerated.
	* generated/product_c16.c: Regenerated.
	* generated/product_c4.c: Regenerated.
	* generated/product_c8.c: Regenerated.
	* generated/product_i16.c: Regenerated.
	* generated/product_i4.c: Regenerated.
	* generated/product_i8.c: Regenerated.
	* generated/product_r10.c: Regenerated.
	* generated/product_r16.c: Regenerated.
	* generated/product_r4.c: Regenerated.
	* generated/product_r8.c: Regenerated.
	* generated/sum_c10.c: Regenerated.
	* generated/sum_c16.c: Regenerated.
	* generated/sum_c4.c: Regenerated.
	* generated/sum_c8.c: Regenerated.
	* generated/sum_i16.c: Regenerated.
	* generated/sum_i4.c: Regenerated.
	* generated/sum_i8.c: Regenerated.
	* generated/sum_r10.c: Regenerated.
	* generated/sum_r16.c: Regenerated.
	* generated/sum_r4.c: Regenerated.
	* generated/sum_r8.c: Regenerated.

2006-12-30  Thomas Koenig  <Thomas.Koenig@online.de>

	PR libfortran/30321
	* gfortran.dg/sum_zero_array_1.f90:  New test.

From-SVN: r120287
2006-12-30 13:16:36 +00:00
..
all.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
any.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
count.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
cshift1.m4 in_pack.m4: Fixed a typo. 2006-10-18 19:17:49 +02:00
eoshift1.m4 in_pack.m4: Fixed a typo. 2006-10-18 19:17:49 +02:00
eoshift3.m4 in_pack.m4: Fixed a typo. 2006-10-18 19:17:49 +02:00
exponent.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
fraction.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
head.m4 All files: Update FSF address. 2005-08-17 02:49:08 +00:00
iforeach.m4 in_pack.m4: Fixed a typo. 2006-10-18 19:17:49 +02:00
ifunction.m4 re PR fortran/30321 (program crash for SUM applied to zero-size array) 2006-12-30 13:16:36 +00:00
in_pack.m4 in_pack.m4: Fixed a typo. 2006-10-18 19:17:49 +02:00
in_unpack.m4 in_pack.m4: Fixed a typo. 2006-10-18 19:17:49 +02:00
iparm.m4 re PR fortran/26769 (Implement transpose() and reshape() for real instead of using integer) 2006-03-25 21:15:48 +00:00
matmul.m4 re PR fortran/26025 (Optionally use BLAS for matmul) 2006-10-22 07:41:48 +00:00
matmull.m4 in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
maxloc0.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
maxloc1.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
maxval.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
minloc0.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
minloc1.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
minval.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
misc_specifics.m4 re PR fortran/16580 ([4.1 only] gfortran ICE on test g77.f-torture/execute/intrinsic77.f) 2006-10-07 13:34:16 +00:00
mtype.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
nearest.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
pow.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
product.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
reshape.m4 re PR libfortran/27895 (problem with RESHAPE and zero-sized arrays) 2006-11-03 11:51:09 +00:00
rrspacing.m4 spacing.m4: Use scalbn[f,l] if ldexp[f,l] is unavailable. 2006-10-13 19:08:37 +00:00
set_exponent.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
shape.m4 in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
spacing.m4 spacing.m4: Use scalbn[f,l] if ldexp[f,l] is unavailable. 2006-10-13 19:08:37 +00:00
specific2.m4 re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
specific.m4 re PR fortran/16580 ([4.1 only] gfortran ICE on test g77.f-torture/execute/intrinsic77.f) 2006-10-07 13:34:16 +00:00
sum.m4 re PR fortran/20935 (failed assertion for maxloc(n, mask=.true.)) 2006-03-20 21:56:00 +00:00
transpose.m4 in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
types.m4