[Bug tree-optimization/97000] [11 Regression][nvptx, openacc] internal compiler error: in nvptx_find_par, at config/nvptx/nvptx.c:3293

vries at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 9 16:32:59 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97000

--- Comment #6 from Tom de Vries <vries at gcc dot gnu.org> ---
I wonder if this will work:
...
diff --git a/gcc/tree-cfgcleanup.c b/gcc/tree-cfgcleanup.c
index f8169eef781..79f716b9dbe 100644
--- a/gcc/tree-cfgcleanup.c
+++ b/gcc/tree-cfgcleanup.c
@@ -212,7 +212,9 @@ static void
 cleanup_call_ctrl_altering_flag (basic_block bb, gimple *bb_end)
 {
   if (!is_gimple_call (bb_end)
-      || !gimple_call_ctrl_altering_p (bb_end))
+      || !gimple_call_ctrl_altering_p (bb_end)
+      || (gimple_call_internal_p (bb_end)
+         && gimple_call_internal_unique_p (bb_end)))
     return;

   int flags = gimple_call_flags (bb_end);
...


More information about the Gcc-bugs mailing list