Re: *ping* [patch, fortran, 4.9] Dependency and string length calculation improvements

2013-03-28 Thread Thomas Koenig
Hi Tobias, Talking about dependencies, I wonder whether you would be interested implementing the function bool gfc_simply_noncontiguous (gfc_expr *); or something similarly named. If you will work on it, please tell me - Sounds interesting. I'll give it a shot. Thomas

Re: *ping* [patch, fortran, 4.9] Dependency and string length calculation improvements

2013-03-28 Thread Mikael Morin
Le 28/03/2013 18:48, Tobias Burnus a écrit : > Talking about dependencies, I wonder whether you would be interested > implementing the function >bool gfc_simply_noncontiguous (gfc_expr *); > or something similarly named. > > It should return true, if the expression is known to be noncontiguous

Re: *ping* [patch, fortran, 4.9] Dependency and string length calculation improvements

2013-03-28 Thread Tobias Burnus
Thomas Koenig wrote: below is a patch which improves dependency checking for array assignments and calculation of string lengths. Talking about dependencies, I wonder whether you would be interested implementing the function bool gfc_simply_noncontiguous (gfc_expr *); or something similar

Re: *ping* [patch, fortran, 4.9] Dependency and string length calculation improvements

2013-03-28 Thread Thomas Koenig
I wrote: Ping**2? I'd like to get these patches committed, if possible, to clear up my trees a little bit :-) Thomas *ping* Slightly updated patch below, with a better test case as suggested by Dominique. OK for trunk? 2013-03-16 Thomas Koenig PR fortran/45159

*ping* [patch, fortran, 4.9] Dependency and string length calculation improvements

2013-03-25 Thread Thomas Koenig
*ping* Slightly updated patch below, with a better test case as suggested by Dominique. OK for trunk? 2013-03-16 Thomas Koenig PR fortran/45159 * gfortran.h (gfc_dep_difference): Add prototype. * dependency.c (discard_nops): New function. (gfc_dep_differenc

Re: [patch, fortran, 4.9] Dependency and string length calculation improvements

2013-03-17 Thread Dominique Dhumieres
Thomas, Your test gfortran.dg/dependency_40.f90 does not have depedencies and does not create a temporary (assuming that "-Warray-temporaries" does not miss any) with/without your patch and with gcc4.6, 4.7, and 4.8. 4.5 gives a warning. I have tried a few variants attempting to create a temporar

[patch, fortran, 4.9] Dependency and string length calculation improvements

2013-03-16 Thread Thomas Koenig
Hello world, below is a patch which improves dependency checking for array assignments and calculation of string lengths. The new function gfc_dep_difference is used for both. This allows us to detect, for example, that the difference between the lower indices of a(n:m:2) = a(n+1:m+1:2) i