This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: max-stack-var-size
- From: "S. Bosscher" <S dot Bosscher at student dot tudelft dot nl>
- To: "'canqun at nudt dot edu dot cn '" <canqun at nudt dot edu dot cn>,"'gcc-patches at gcc dot gnu dot org '" <gcc-patches at gcc dot gnu dot org>,"'fortran at gcc dot gnu dot org '" <fortran at gcc dot gnu dot org>
- Date: Thu, 6 Nov 2003 16:15:42 +0100
- Subject: RE: max-stack-var-size
> + 2003-11-06 Canqun Yang <canqun@nudt.edu.cn>
> +
> + * options.c (gfc_init_options): Set flag_max_stack_var_size as
32768.
> + * trans-decl.c (gfc_finish_var_decl):
>
OK, with one remark,
+ /* Keep variables larger than max-stack-var-size off stack. */
+ if (gfc_can_put_var_on_stack (DECL_SIZE_UNIT (decl)) == 0)
+ TREE_STATIC (decl) = 1;
please make gfc_can_put_var_on_stack a bool.
Gr.
Steven