public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/98845] New: [8/9/10 Regression] ICE: SSA corruption (Unable to coalesce ssa_names 2 and 23 which are marked as MUST COALESCE.)
@ 2021-01-27  4:33 asolokha at gmx dot com
  2021-01-27  7:57 ` [Bug tree-optimization/98845] [8/9/10/11 " rguenth at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: asolokha at gmx dot com @ 2021-01-27  4:33 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98845
           Summary: [8/9/10 Regression] ICE: SSA corruption (Unable to
                    coalesce ssa_names 2 and 23 which are marked as MUST
                    COALESCE.)
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-11.0.0-alpha20210124 snapshot (g:6b1633378b74bed1d999a0ae2549088515a30ba0)
ICEs when compiling the following testcase w/ -Os -fno-tree-dce:

int __attribute__ ((returns_twice))
func_58 (int);

int
func_215 (int func_215___trans_tmp_2, int g_180, int p_217, int p_218)
{
  if (func_215___trans_tmp_2)
    func_215 (0, 0, 0, 0);
  else if (g_180)
    {
      if (p_218)
        return 1;

      p_218 = p_217;
    }
  else
    {
      p_217 = 0;
      while (!p_217)
        {
        }
    }

  p_218 = 0;
  while (p_218)
    {
      func_58 (p_217);
      func_58 (p_217 + 1);
    }

  return 0;
}

% gcc-11.0.0 -Os -fno-tree-dce -c gdh96e2t.c

Unable to coalesce ssa_names 2 and 23 which are marked as MUST COALESCE.
p_217_2(ab) and  p_217_23(D)(ab)
during RTL pass: expand
gdh96e2t.c: In function 'func_215':
gdh96e2t.c:5:1: internal compiler error: SSA corruption
    5 | func_215 (int func_215___trans_tmp_2, int g_180, int p_217, int p_218)
      | ^~~~~~~~
0xf1d345 fail_abnormal_edge_coalesce
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210124/work/gcc-11-20210124/gcc/tree-ssa-coalesce.c:1003
0xf1d345 coalesce_partitions
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210124/work/gcc-11-20210124/gcc/tree-ssa-coalesce.c:1425
0xf1d345 coalesce_ssa_name(_var_map*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210124/work/gcc-11-20210124/gcc/tree-ssa-coalesce.c:1755
0xeb8fcc remove_ssa_form
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210124/work/gcc-11-20210124/gcc/tree-outof-ssa.c:1065
0xeb8fcc rewrite_out_of_ssa(ssaexpand*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210124/work/gcc-11-20210124/gcc/tree-outof-ssa.c:1323
0x961e60 execute
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210124/work/gcc-11-20210124/gcc/cfgexpand.c:6533

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-07-07 10:38 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27  4:33 [Bug tree-optimization/98845] New: [8/9/10 Regression] ICE: SSA corruption (Unable to coalesce ssa_names 2 and 23 which are marked as MUST COALESCE.) asolokha at gmx dot com
2021-01-27  7:57 ` [Bug tree-optimization/98845] [8/9/10/11 " rguenth at gcc dot gnu.org
2021-01-27  8:26 ` [Bug tree-optimization/98845] [8/9/10/11 Regression] ICE: SSA corruption (Unable to coalesce ssa_names 2 and 23 which are marked as MUST COALESCE.) since r6-528-g465770e43996a132 marxin at gcc dot gnu.org
2021-01-27  8:39 ` rguenth at gcc dot gnu.org
2021-01-27  8:54 ` rguenth at gcc dot gnu.org
2021-05-14  9:54 ` [Bug tree-optimization/98845] [9/10/11/12 " jakub at gcc dot gnu.org
2021-05-31  4:59 ` asolokha at gmx dot com
2021-05-31  8:34 ` marxin at gcc dot gnu.org
2021-05-31  8:50 ` [Bug tree-optimization/98845] [9/10/11 " rguenther at suse dot de
2021-06-01  8:19 ` rguenth at gcc dot gnu.org
2022-03-16  8:01 ` rguenth at gcc dot gnu.org
2022-03-17  4:55 ` [Bug tree-optimization/98845] [9/10/11/12 " asolokha at gmx dot com
2022-03-17  7:34 ` rguenth at gcc dot gnu.org
2022-05-27  9:44 ` [Bug tree-optimization/98845] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:43 ` jakub at gcc dot gnu.org
2023-07-07 10:38 ` [Bug tree-optimization/98845] [11/12/13/14 " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).