diff options
author | Ian Lance Taylor <iant@google.com> | 2013-12-12 02:24:20 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-12-12 02:24:20 +0000 |
commit | 0fdd268fbfecb7956d13bff1ce60ef29f4b9d931 (patch) | |
tree | 40d5a801482e7189c260958afbec19c403b6520a /gcc/go | |
parent | 547a4168791b7ae9543215aba3ca6184c31bb37e (diff) | |
download | gcc-0fdd268fbfecb7956d13bff1ce60ef29f4b9d931.zip gcc-0fdd268fbfecb7956d13bff1ce60ef29f4b9d931.tar.gz gcc-0fdd268fbfecb7956d13bff1ce60ef29f4b9d931.tar.bz2 |
go-lang.c (go_langhook_post_options): Disable sibling calls by default.
* go-lang.c (go_langhook_post_options): Disable sibling calls by
default.
From-SVN: r205915
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/go/go-lang.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index 0c03656..db0212c 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,8 @@ +2013-12-11 Ian Lance Taylor <iant@google.com> + + * go-lang.c (go_langhook_post_options): Disable sibling calls by + default. + 2013-12-10 Ian Lance Taylor <iant@google.com> * Make-lang.in (check_go_parallelize): Test go-test.exp r* tests diff --git a/gcc/go/go-lang.c b/gcc/go/go-lang.c index d207a31..ae133f7 100644 --- a/gcc/go/go-lang.c +++ b/gcc/go/go-lang.c @@ -270,6 +270,10 @@ go_langhook_post_options (const char **pfilename ATTRIBUTE_UNUSED) if (flag_excess_precision_cmdline == EXCESS_PRECISION_DEFAULT) flag_excess_precision_cmdline = EXCESS_PRECISION_STANDARD; + /* Tail call optimizations can confuse uses of runtime.Callers. */ + if (!global_options_set.x_flag_optimize_sibling_calls) + global_options.x_flag_optimize_sibling_calls = 0; + /* Returning false means that the backend should be used. */ return false; } |