[patch, libfortran] Bounds checking for spread
Thomas Koenig
tkoenig@netcologne.de
Tue Oct 14 18:49:00 GMT 2008
Hello world,
this patch completes bounds checking for spread. Regression-tested
on i686-pc-linux-gnu. Regression-testing actually found a bug in the
reshape_order_*.f90 test cases, so there :-)
I won't have time to fix all array bounds issues with the array
intrinsics for 4.4 as I had originally planned, but at least things are
better than they were with 4.3.
OK for trunk?
Thomas
2008-10-12 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/34670
* intrinsics/reshape_generic.c: Add bounds checking.
* m4/reshape.m4: Likewise.
* generated/reshape_c10.c: Regenerated.
* generated/reshape_c16.c: Regenerated.
* generated/reshape_c4.c: Regenerated.
* generated/reshape_c8.c: Regenerated.
* generated/reshape_i16.c: Regenerated.
* generated/reshape_i4.c: Regenerated.
* generated/reshape_i8.c: Regenerated.
* generated/reshape_r10.c: Regenerated.
* generated/reshape_r16.c: Regenerated.
* generated/reshape_r4.c: Regenerated.
* generated/reshape_r8.c: Regenerated.
* generated/spread_r4.c: Regenerated.
2008-10-12 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/34670
* gfortran.dg/reshape_3.f90: New test.
* gfortran.dg/reshape_4.f90: New test.
* gfortran.dg/reshape_order_1.f90: Use correct shape.
* gfortran.dg/reshape_order_2.f90: Likewise.
* gfortran.dg/reshape_order_3.f90: Likewise.
* gfortran.dg/reshape_order_4.f90: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reshape_3.f90
Type: text/x-fortran
Size: 414 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081014/065f0c14/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reshape_4.f90
Type: text/x-fortran
Size: 420 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081014/065f0c14/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reshape_bounds_2.diff
Type: text/x-patch
Size: 4477 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081014/065f0c14/attachment-0002.bin>
More information about the Gcc-patches
mailing list