[Bug fortran/34053] -frecursive: No need to use the stack for local variables of the main program

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Nov 10 19:23:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list