This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]