This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR30284 and PR30626 - ICEs with internal units
- From: Jerry DeLisle <jvdelisle at verizon dot net>
- To: Paul Thomas <paulthomas2 at wanadoo dot fr>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 01 Feb 2007 17:51:58 -0800
- Subject: Re: [Patch, fortran] PR30284 and PR30626 - ICEs with internal units
- References: <45C26D2B.8040408@wanadoo.fr>
Paul Thomas wrote:
:ADDPATCH fortran:
These two PRs are effectively identical and are fixed by the same patch.
The problem is that substring or components references of arrays result
in element sizes that are smaller than the stride in bytes. This is
fixed by using the same temporary builder that fixed a similar problem
in gfc_conv_function_call. A temporary is created that is copied to and
used as the internal unit for READ or is used and copied back from for
WRITE. The testcases are the reporter's.
Note that I am perfectly prepared to change the names of
gfc_conv_aliased_arg and is_aliased_array, if only somebody would tell
me what they should be called :-)
Bootrtrapped and regtested on amd64/Cygwin_NT - OK for trunk and a week
or two later for 4.2?
Paul
I will complete review and testing on this tonight or tomorrow.
Thanks Paul,
Jerry