re PR tree-optimization/91663 (split function can be re-inlined, leaving bad stack...
authorIan Lance Taylor <iant@golang.org>
Thu, 5 Sep 2019 04:12:30 +0000 (04:12 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 5 Sep 2019 04:12:30 +0000 (04:12 +0000)
PR tree-optimization/91663
* go-lang.c (go_langhook_post_options): Clear
flag_partial_inlining.

From-SVN: r275396

gcc/go/ChangeLog
gcc/go/go-lang.c

index 47400e25a45ba900c8a2dc1576b896b832031c6b..c62877fe8fb6a5c5e8f244f78f9b78413190cf49 100644 (file)
@@ -1,3 +1,9 @@
+2019-09-04  Ian Lance Taylor  <iant@golang.org>
+
+       PR tree-optimization/91663
+       * go-lang.c (go_langhook_post_options): Clear
+       flag_partial_inlining.
+
 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/91283
index a6bda936ed7675ffb10428eff58e81b1099d2388..75d98933820543ac7bd73135e1b87066bcfe5de1 100644 (file)
@@ -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