This is the mail archive of the
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: <firstname.lastname@example.org> <email@example.com> <43160CFF.firstname.lastname@example.org> <email@example.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