This is the mail archive of the
mailing list for the GCC project.
Re: [fortran PATCH] Implement a(:,:) = 0.0 using memset (take 2)
On Mon, Dec 18, 2006 at 06:55:22PM -0700, firstname.lastname@example.org wrote:
> As pointed out by Steve Kargl, some of the tests in my recent patch were
> overly conservative, and only handled pointers to arrays, rather than
> local arrays. The revised patch below addresses this limitation/oversight
> and allows us to use __builtin_memset in more cases.
I figure I might as well push my luck. :)
Your patch appears to omit
real, allocatable :: x(:)
x = 0.
end program v
which is probably your
" Extend infrastructure for arbitrary (run-time) length expressions,
such as a(1:n) = 0.0."
This idiom appears in a few places in Polyhedron, and I know it
is strewn throughout my own Fortran code.
Perhaps, the patch that Andrew has mention can deal with this.