From: Ian Lance Taylor Date: Thu, 12 Dec 2013 02:24:20 +0000 (+0000) Subject: go-lang.c (go_langhook_post_options): Disable sibling calls by default. X-Git-Tag: releases/gcc-4.9.0~2125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0fdd268fbfecb7956d13bff1ce60ef29f4b9d931;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index 0c03656f6b45..db0212cd37d0 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,8 @@ +2013-12-11 Ian Lance Taylor + + * go-lang.c (go_langhook_post_options): Disable sibling calls by + default. + 2013-12-10 Ian Lance Taylor * 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 d207a31f5379..ae133f7ed2e8 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; }