diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2015-07-31 07:08:20 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2015-07-31 07:08:20 +0000 |
commit | cb3306e5bf82c6a0f6de0c98dabdb15cd7e2529e (patch) | |
tree | c733df5c8735cfb75d7fb5cbaa28cb7a56a8f195 /gcc/go | |
parent | e67d7a1ea15cb266edf4a9ae2315eae6b1e8003a (diff) | |
download | gcc-cb3306e5bf82c6a0f6de0c98dabdb15cd7e2529e.zip gcc-cb3306e5bf82c6a0f6de0c98dabdb15cd7e2529e.tar.gz gcc-cb3306e5bf82c6a0f6de0c98dabdb15cd7e2529e.tar.bz2 |
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
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/go/go-lang.c | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index b95aeb3..53ae16b 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,9 @@ +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> * gofrontend/backend.h: Fix double word typos. diff --git a/gcc/go/go-lang.c b/gcc/go/go-lang.c index ad673bc..675b582 100644 --- a/gcc/go/go-lang.c +++ b/gcc/go/go-lang.c @@ -155,10 +155,6 @@ go_langhook_init_options_struct (struct gcc_options *opts) opts->x_flag_errno_math = 0; 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. */ opts->x_flag_exceptions = 1; opts->x_flag_non_call_exceptions = 1; @@ -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 = 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. */ return false; } |