From ripley at stats.ox.ac.uk  Fri Aug 26 14:40:42 2005
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri, 26 Aug 2005 13:40:42 +0100 (BST)
Subject: [Rd] Fortran (Was: Re: [R] linux compile options (64-bit))
In-Reply-To: <20050826114650.GA23719@stat.umu.se>
References: <22761BFE-8A79-4A81-966F-6E863E556A83@comcast.net>
	<5FD5AD51-2B4A-4669-AC0F-DBD1541B10E8@comcast.net>
	<Pine.LNX.4.61.0508020729350.19394@gannet.stats>
	<20050802081040.GA28478@stat.umu.se>
	<Pine.LNX.4.61.0508020914500.21072@gannet.stats>
	<20050802092351.GA30688@stat.umu.se>
	<Pine.LNX.4.61.0508021052020.25929@gannet.stats>
	<20050802101208.GA32181@stat.umu.se>
	<20050826114650.GA23719@stat.umu.se>
Message-ID: <Pine.LNX.4.61.0508261338560.3521@gannet.stats>

On Fri, 26 Aug 2005, G?ran Brostr?m wrote:

> On Tue, Aug 02, 2005 at 12:12:08PM +0200, G?ran Brostr?m wrote:
>> On Tue, Aug 02, 2005 at 10:58:31AM +0100, Prof Brian Ripley wrote:
>>
>>> The problems we are seeing with gcc4 are mainly (but not
>>> entirely) with gfortran: it seems not quite ready for production use.
>>> -4.0.1 is already a considerable improvement over -4.0.0.
>>>
>>> There is another project (www.g95.org) that is using a slightly different
>>> version of these sources, and either g95 or gfortran can be used with
>>> gcc3 if you want to use F95 sources.  However, F95 is unlikely to be
>>> suitable for use in distributed R packages for a long time to come.
>>
>> Thanks; I'll stick to 3.4.4(!) and f77 for the time being.
>
> One short follow-up question on the F77/95 theme: In my CRAN packages, I use
> the construct "do while ... end do" in my fortran sources. This is AFAIK not
> strict F77, but an extension in g77, and standard in F95. "-pedantic" does not
> complain about this; on the other hand "---it finds some non-ANSI
> practices, but not all" (from 'man g77').
>
> Should I rewrite the "do while...end do" parts? (Please answer NO!:)

There are compilers that do not accept that construct: AFAIR the Solaris 
f77 is one.  But, if no one is complaining I would leave it.  (We would 
not allow such things in base R, as inevitably it will cause problems on 
some rare platform.)

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] Fortran (Was: Re: [R] linux compile options (64-bit))
Prof Brian Ripley