Re: [Patch, fortran] PR47844 - Array stride ignored for pointer-valued function results

2011-10-07 Thread Paul Richard Thomas
Dear Steve, Thanks - I just noticed that the { dg-do run } is missing a space. It seemed to run correctly during regtesting but I will set it right anyway. Cheers Paul On Fri, Oct 7, 2011 at 1:29 AM, Steve Kargl s...@troutmask.apl.washington.edu wrote: On Thu, Oct 06, 2011 at 10:22:12PM

[Patch, fortran] PR47844 - Array stride ignored for pointer-valued function results

2011-10-06 Thread Paul Richard Thomas
Dear All, As the testcase shows, pointer array functions can return strides that are different to their initial values before the function call. This fix makes use of the descriptor strides since they are returned durectly. Bootstrapped and regtested of x86_64/FC9 - OK for trunk? Cheers Paul

Re: [Patch, fortran] PR47844 - Array stride ignored for pointer-valued function results

2011-10-06 Thread Steve Kargl
On Thu, Oct 06, 2011 at 10:22:12PM +0200, Paul Richard Thomas wrote: 2011-10-06 Paul Thomas pa...@gcc.gnu.org PR fortran/47844 * trans-array.c (gfc_conv_array_index_offset): Use descriptor stride for pointer function results. 2011-10-06 Paul Thomas