Commit cb3306e5 by Andreas Schwab Committed by Andreas Schwab

go-lang.c (go_langhook_init_options_struct): Don't set x_flag_split_stack.

* go-lang.c (go_langhook_init_options_struct): Don't set
x_flag_split_stack.
(go_langhook_post_options): Set it here instead.

From-SVN: r226428
parent e67d7a1e
2015-07-31 Andreas Schwab <schwab@linux-m68k.org>
* go-lang.c (go_langhook_init_options_struct): Don't set
x_flag_split_stack.
(go_langhook_post_options): Set it here instead.
2015-07-12 Aldy Hernandez <aldyh@redhat.com> 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
* gofrontend/backend.h: Fix double word typos. * gofrontend/backend.h: Fix double word typos.
......
...@@ -155,10 +155,6 @@ go_langhook_init_options_struct (struct gcc_options *opts) ...@@ -155,10 +155,6 @@ go_langhook_init_options_struct (struct gcc_options *opts)
opts->x_flag_errno_math = 0; opts->x_flag_errno_math = 0;
opts->frontend_set_flag_errno_math = true; opts->frontend_set_flag_errno_math = true;
/* We turn on stack splitting if we can. */
if (targetm_common.supports_split_stack (false, opts))
opts->x_flag_split_stack = 1;
/* Exceptions are used to handle recovering from panics. */ /* Exceptions are used to handle recovering from panics. */
opts->x_flag_exceptions = 1; opts->x_flag_exceptions = 1;
opts->x_flag_non_call_exceptions = 1; opts->x_flag_non_call_exceptions = 1;
...@@ -292,6 +288,11 @@ go_langhook_post_options (const char **pfilename ATTRIBUTE_UNUSED) ...@@ -292,6 +288,11 @@ go_langhook_post_options (const char **pfilename ATTRIBUTE_UNUSED)
&& global_options.x_write_symbols == NO_DEBUG) && global_options.x_write_symbols == NO_DEBUG)
global_options.x_write_symbols = PREFERRED_DEBUGGING_TYPE; global_options.x_write_symbols = PREFERRED_DEBUGGING_TYPE;
/* We turn on stack splitting if we can. */
if (!global_options_set.x_flag_split_stack
&& targetm_common.supports_split_stack (false, &global_options))
global_options.x_flag_split_stack = 1;
/* Returning false means that the backend should be used. */ /* Returning false means that the backend should be used. */
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment