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

            Bug ID: 106422
           Summary: ice in duplicate_block, at cfghooks.cc:1115
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 53340
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53340&action=edit
C source code

For the attached C code, recent gcc does this:

$ ../results/bin/gcc -c -O2 bug830.c
during GIMPLE pass: dom
semanage_store.c: In function ‘semanage_exec_prog’:
semanage_store.c:1433:12: internal compiler error: in duplicate_block, at
cfghooks.cc:1115
0x836152 duplicate_block(basic_block_def*, edge_def*, basic_block_def*,
copy_bb_data*)
        ../../trunk.git/gcc/cfghooks.cc:1115
0x100fe0b create_block_for_threading(basic_block_def*, redirection_data*,
unsigned int, bitmap_head **)

The problem first seems to occur sometime between git hash e9ee752bbe2cc563
and 78d5e125c008d87c, a distance of 27 commits.

Reply via email to