This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34053] -frecursive: No need to use the stack for local variables of the main program
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Nov 2007 19:23:12 -0000
- Subject: [Bug fortran/34053] -frecursive: No need to use the stack for local variables of the main program
- References: <bug-34053-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2007-11-10 19:23 -------
As follow up, currently -frecursive is implemented as:
/* Implied -frecursive; implemented as -fmax-stack-var-size=-1. */
if (gfc_option.flag_max_stack_var_size == -2 && gfc_option.flag_openmp)
gfc_option.flag_max_stack_var_size = -1;
I'm thus not sure how to handle this easily (i.e. what limit to use for the
main PROGRAM?). Maybe one should leave the status quo, or not?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34053