From 0fdd268fbfecb7956d13bff1ce60ef29f4b9d931 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 12 Dec 2013 02:24:20 +0000 Subject: 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 --- gcc/go/go-lang.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/go/go-lang.c') 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; } -- cgit v1.1