[patch] Implement LEADZ and TRAILZ (Fortran 2008 intrinsics)

Tobias Burnus burnus@net-b.de
Sun Sep 28 17:58:00 GMT 2008


Paul Richard Thomas wrote:
>> The attached patch implements LEADZ and TRAILZ from the F2008
>> standard. This was an enhancement request in Bugzilla.
>> Bootstrapped&tested on i686-cygwin and on ia64-linux. OK?
>>     
> That looks OK to me.  I noticed the request on clf.  I guess that you
> should hold off with an engancement until gcc-4.4 is out of the door.
>   

Looks also OK to me. As is is quite orthogonal to existing code and is
is quite compact, it should be of low risk; on the other hand, it does
not fix a regression or true bug - and g77 did not implemented it
either. That ifort, openf95, sunf95, xlf95, pgf95, pathf95, Absoft, ...
implement this as vendor extension shows its usefulness. Thus I would
not mind to have it still in 4.4, but deferring it to 4.5 is also
reasonable.

Tobias



More information about the Fortran mailing list