[Patch, fortran] PR33370 - committed as 'obvious'

Paul Richard Thomas paul.richard.thomas@gmail.com
Mon Sep 10 08:39:00 GMT 2007

In testing my patch for subreference array pointers, Thomas Koenig
found a regression in another part of gfortran that was serious enough
as to warrant immediate action.  I therefore committed, as obvious,
the patch below.  I felt that this was safe because the conditions
that caused the regression have been made more restrictive and will
push compilation towards the scalarizer, which works correctly.

Bootstrapped and regtested on x86_ia64/FC5

2007-09-10  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/33370
	* trans-expr.c (copyable_array_p):  Add tests that expression
	is a variable, that it has no subreferences and that it is a
	full array.
	(gfc_trans_assignment): Change conditions to suit modifications
	to copyable_array_p.

2007-09-10  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/33370
	* gfortran.dg/array_memcpy_5.f90:  New test.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: check.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070910/98348088/attachment.ksh>

More information about the Gcc-patches mailing list