PATCH: fortran/27662: Transpose doesn't work on function return

Thomas Koenig Thomas.Koenig@online.de
Fri May 19 17:53:00 GMT 2006


On Fri, May 19, 2006 at 04:34:26PM +0100, Richard Sandiford wrote:

> However, the use of zero strides for temporaries was an existing
> situation, not something specific to the tranpose optimisations.
> I'm afraid I don't know gfortran well enough to say whether it's
> still needed.  It looks like Paul has taken up the patch (thanks Paul!)
> and he knows this stuff much better than I do.

I've never seen zero stride used for anything useful.  They were
a severe source for bugs in the array intrinsics.  You will find
a lot of occurrences of code like

    if (array->dim[0].stride == 0)
      array->dim[0].stride = 1;

there, which is easy to forget.

	Thomas



More information about the Fortran mailing list