diff options
author | Mikael Morin <mikael.morin@tele2.fr> | 2008-10-30 21:45:09 +0100 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2008-10-30 20:45:09 +0000 |
commit | 45bc572c86125d86ea782853fe6f1cbff94c63b4 (patch) | |
tree | 9d0afc69002d14e4a8f26dc27e704b7126263fe6 /gcc/ebitmap.c | |
parent | 73c07a3e71de3e5155e3687a52f7963edece0a01 (diff) | |
download | gcc-45bc572c86125d86ea782853fe6f1cbff94c63b4.zip gcc-45bc572c86125d86ea782853fe6f1cbff94c63b4.tar.gz gcc-45bc572c86125d86ea782853fe6f1cbff94c63b4.tar.bz2 |
re PR fortran/37903 (wrong-code for complicated vector subscripts)
2008-10-30 Mikael Morin <mikael.morin@tele2.fr>
PR fortran/37903
* trans-array.c (gfc_trans_create_temp_array): If n is less
than the temporary dimension, assert that loop->from is
zero (reverts to earlier versions). If there is at least one
null loop->to[n], it is a callee allocated array so set the
size to NULL and break.
(gfc_trans_constant_array_constructor): Set the offset to zero.
(gfc_trans_array_constructor): Remove loop shifting around the
temporary creation.
(gfc_conv_loop_setup): Prefer zero-based descriptors if
possible. Calculate the translation from loop variables to
array indices if an array constructor.
2008-10-30 Mikael Morin <mikael.morin@tele2.fr>
PR fortran/37749
* trans-array.c (gfc_trans_create_temp_array): If size is NULL
use the array bounds for loop->to.
2008-10-30 Mikael Morin <mikael.morin@tele2.fr>
PR fortran/37903
* gfortran.dg/vector_subscript_4.f90: New test.
2008-10-30 Mikael Morin <mikael.morin@tele2.fr>
PR fortran/37749
* gfortran.dg/vector_subscript__5.f90: New test.
From-SVN: r141467
Diffstat (limited to 'gcc/ebitmap.c')
0 files changed, 0 insertions, 0 deletions