aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-lang.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-09-05 04:12:30 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-09-05 04:12:30 +0000
commitf44526e367a99b8699fbdc31bb9bcc0618dbe072 (patch)
tree425ef96dd0b2ba1942f70d7c0fc9c6f17fb2611a /gcc/go/go-lang.c
parent7d394f772fc6f198c6b1946e2919643287639c40 (diff)
downloadgcc-f44526e367a99b8699fbdc31bb9bcc0618dbe072.zip
gcc-f44526e367a99b8699fbdc31bb9bcc0618dbe072.tar.gz
gcc-f44526e367a99b8699fbdc31bb9bcc0618dbe072.tar.bz2
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
Diffstat (limited to 'gcc/go/go-lang.c')
-rw-r--r--gcc/go/go-lang.c5
1 files changed, 5 insertions, 0 deletions
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