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

            Bug ID: 111039
           Summary: Unable to coalesce ssa_names
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: krebbel at gcc dot gnu.org
  Target Milestone: ---

compiler_corruption_function(flags) {
  int nowait = flags & 1048576, isexpand = flags & 8388608;
  abcd();
  _setjmp(flags);
  if (nowait && isexpand)
    flags &= 0;
  abcde();
}

gcc -mbranch-cost=0 -O t.c
verified with recent GCC: 02ecc9a2632

t.c: In function ‘compiler_corruption_function’:
t.c:1:1: internal compiler error: SSA corruption
    1 | compiler_corruption_function(flags) {
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x15a657c fail_abnormal_edge_coalesce
        /home/andreas/build/../gcc/gcc/tree-ssa-coalesce.cc:1003
0x15a657c coalesce_partitions
        /home/andreas/build/../gcc/gcc/tree-ssa-coalesce.cc:1425
0x15a657c coalesce_ssa_name(_var_map*)
        /home/andreas/build/../gcc/gcc/tree-ssa-coalesce.cc:1755
0x153d6cf remove_ssa_form
        /home/andreas/build/../gcc/gcc/tree-outof-ssa.cc:1065
0x153d6cf rewrite_out_of_ssa(ssaexpand*)
        /home/andreas/build/../gcc/gcc/tree-outof-ssa.cc:1323
0xf42073 execute
        /home/andreas/build/../gcc/gcc/cfgexpand.cc:6610

This very much looks like another instance of PR71020.

Reply via email to