aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/go/go-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8/gcc/go/go-lang.c')
-rw-r--r--gcc-4.8/gcc/go/go-lang.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/go/go-lang.c b/gcc-4.8/gcc/go/go-lang.c
index 659cd8ef7..7e92deb92 100644
--- a/gcc-4.8/gcc/go/go-lang.c
+++ b/gcc-4.8/gcc/go/go-lang.c
@@ -269,6 +269,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;
}