On 27/11/2019 08:29, Tobias Burnus wrote:
On 11/27/19 8:58 AM, Janne Blomqvist wrote:
On Tue, Nov 26, 2019 at 1:12 PM Tobias Burnus
<tob...@codesourcery.com> wrote:
AUTOMATIC attribute
Speaking of which, to avoid confusion maybe we should rename the
-f[no-]automatic option to something like -f[no-]save, since the
Fortran standard description of an "automatic data object" doesn't
really have anything to do with the option, and neither does the
option have anything to do specifically with the DEC AUTOMATIC
specifier?
-fno-automatic means that all local variables are saved however a local
variable can still be automatic if it explicitly has the AUTOMATIC
attribute, this is only possible with -fdec-static/-fdec, it is not
possible in standard fortran, SAVE equates to STATIC but there is no
standard attribute that equates to AUTOMATIC.
regards
Mark
While in principle I concur that the naming is bad, I fear this will
break several makefiles – hence, I am not sure it is worth the trouble
– and I am declined to say that it isn't.
Cheers,
Tobias
--
https://www.codethink.co.uk/privacy.html