This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: -fno-automatic option (PR 20592)
- From: François-Xavier Coudert <fxcoudert at gmail dot com>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: fortran at gcc dot gnu dot org, "Tobias dot Schlueter at physik dot uni-muenchen dot de" <Tobias dot Schlueter at physik dot uni-muenchen dot de>,patch <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 31 Aug 2005 22:42:51 +0200
- Subject: Re: -fno-automatic option (PR 20592)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=lSqMDRRAsdJAWhQK38jxot1N9tqfeubfvyTaWXq/OAKfuQ7avsMXcj7KsuVpOFksM/bZGjwMz/3ny03rRKBnop927xfAi7bEP3VSng2/lFdjY59eMIEfR4Q6RNjW1FGzZVKzSZt//aKK97prOKmi6fpZJm5ffXKblniQAi9+1s0=
- References: <19c433eb05083104192d8250b9@mail.gmail.com> <200508311527.03271.paul@codesourcery.com> <43160CFF.7050605@gmail.com> <200508312123.22825.paul@codesourcery.com>
IMO recursive functions and variables with the ALLOCATABLE attribute should
silently ignore -fno-automatic.
There I disagree. I think the most easy thing is to say "-fno-automatic
means blanket SAVE statement in each programming unit". If people don't
want to have the nasty effects, then they don't use it.
Of course, I will gladly help to implement the behavior that most people
think appopriate ;-) In case your option is chosen, I think we need a
function similar to save_all() (in symbol.c) to implement this
save_almost_all() ;-)
FX