[patch, libfortran] Fix PR 38225
Thomas Koenig
tkoenig@netcologne.de
Sat Nov 22 20:48:00 GMT 2008
Hello world,
this fixes a 4.4 regression where bounds checking for RESHAPE assumed
that only the first dimension of SOURCE mattered. This is obviously
wrong :-)
Will regtest.
OK for trunk once the regtest passes?
Thomas
2008-11-22 Thomas Koenig <tkoenig@gcc.gnu.org>
* intrinsics/reshape_generic.c (reshape_internal):
Use all dimensions of source for 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.
2008-11-22 Thomas Koenig <tkoenig@gcc.gnu.org>
* gfortran.dg/reshape_3.f90: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reshape.diff
Type: text/x-patch
Size: 1471 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081122/546bca0a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reshape_3.f90
Type: text/x-fortran
Size: 327 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081122/546bca0a/attachment-0001.bin>
More information about the Gcc-patches
mailing list