From f44526e367a99b8699fbdc31bb9bcc0618dbe072 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 5 Sep 2019 04:12:30 +0000 Subject: re PR tree-optimization/91663 (split function can be re-inlined, leaving bad stack trace) PR tree-optimization/91663 * go-lang.c (go_langhook_post_options): Clear flag_partial_inlining. From-SVN: r275396 --- gcc/go/go-lang.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/go/go-lang.c') diff --git a/gcc/go/go-lang.c b/gcc/go/go-lang.c index a6bda93..75d98933 100644 --- a/gcc/go/go-lang.c +++ b/gcc/go/go-lang.c @@ -300,6 +300,11 @@ go_langhook_post_options (const char **pfilename ATTRIBUTE_UNUSED) if (!global_options_set.x_flag_optimize_sibling_calls) global_options.x_flag_optimize_sibling_calls = 0; + /* Partial inlining can confuses uses of runtime.Callers. + See https://gcc.gnu.org/PR91663. */ + if (!global_options_set.x_flag_partial_inlining) + global_options.x_flag_partial_inlining = 0; + /* If the debug info level is still 1, as set in init_options, make sure that some debugging type is selected. */ if (global_options.x_debug_info_level == DINFO_LEVEL_TERSE -- cgit v1.1