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

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #49214|0                           |1
        is obsolete|                            |
  Attachment #49214|proposed patch for the ICEs |proposed patch for the ICEs
        description|                            | (wrong PR, sorry)

--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Comment on attachment 49214
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49214
proposed patch for the ICEs  (wrong PR, sorry)

>diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c
>index 76e56b5..2ad5197 100644
>--- a/gcc/bb-reorder.c
>+++ b/gcc/bb-reorder.c
>@@ -2760,6 +2760,10 @@ duplicate_computed_gotos (function *fun)
>     if (computed_jump_p (BB_END (bb)) && can_duplicate_block_p (bb))
>       changed |= maybe_duplicate_computed_goto (bb, max_size);
> 
>+  /* Some blocks may have become unreachable.  */
>+  if (changed)
>+    cleanup_cfg (0);
>+
>   /* Duplicating blocks will redirect edges and may cause hot blocks
>     previously reached by both hot and cold blocks to become dominated
>     only by cold blocks.  */

Reply via email to