This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC 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)
- 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