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

Tobias Burnus burnus@net-b.de
Thu Mar 28 19:49:00 GMT 2013


(I took gcc-patches@ out of the CC list.)

Mikael Morin wrote:
> 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.
> I suggest having instead a single function returning a two bit integer,
> one bit for contiguous, one for noncontiguous.

I don't. First, I find this more confusing. Secondly, when I once tried 
to implement it, it quickly became a mess to support both noncontiguous 
and contiguous checks. The checks are orthogonal enough to merit two 
separate functions. But then, one can also have different functions 
returning a Boolean.

Tobias



More information about the Fortran mailing list