This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[Patch, fortran] PR37903 and PR37749
- From: "Paul Richard Thomas" <paul dot richard dot thomas at gmail dot com>
- To: "Fortran List" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 30 Oct 2008 21:47:50 +0100
- Subject: [Patch, fortran] PR37903 and PR37749
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=99pWsSf3QJJdNQlQVqE2zbUv8SA28NDXma+FNKtIa9w=; b=az6LmU2qtwP4/zqVIuv9OB1KmbCvu7N7fPPkA9cOaqCMDJM/5CaqwRMcdhbPxGR0uK VY4PX2iGGYTlycdIbysH5b6OIAgIin4l1O3ELjC0S/6xacjqXDEeiCahevS7WPXIqwSp OgbnQ8jLfCKvFvqJ6MVtjC4KdIfPKYBUDGhao=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=bOCCOMGY6xAJo1tZgzopq7ubvMXJTaaogWlbFV/zWp62R18aCzd+7PEPzJ5n1Sr+Y6 y7geruEIDlP4UZ1L4i20eFrRZCiDgN/M4PPR7bQBR7nmVLYX+Zv+g8EGbiHSrMZdLFbe N4vLnfNx2+KCJ0ybor6sQce1Gx5l8WIncQdRM=
I have committed and will apply to 4.3 in a few days:
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.
after it was cleared through the PRs themselves on Bugzilla
Cheers and thanks, Mikael
Paul