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

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

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

gcc-11.0.0-alpha20210117 snapshot (g:0f4c8f517b7954e113afb4d5c7212123c8ee2418)
ICEs when compiling the following testcase w/ -O1 -fno-tree-dce:

void
func_30 (void);

int __attribute__ ((pure, returns_twice))
func_38 (int g_15, int p_39)
{
  return !!g_15 ? p_39 : 0;
}

void
func_26 (int func_26___trans_tmp_1)
{
  long int l_37 = 0;
  int __trans_tmp_1;

  func_26___trans_tmp_1 = func_38 (func_26___trans_tmp_1, 1);
  __trans_tmp_1 = func_38 (func_26___trans_tmp_1, l_37);
  l_37 = 1;
  func_30 ();
}

% gcc-11.0.0 -O1 -fno-tree-dce -c rm463xcz.c

Unable to coalesce ssa_names 2 and 10 which are marked as MUST COALESCE.
l_37_2(ab) and  l_37_10(ab)
during RTL pass: expand
rm463xcz.c: In function 'func_26':
rm463xcz.c:11:1: internal compiler error: SSA corruption
   11 | func_26 (int func_26___trans_tmp_1)
      | ^~~~~~~
0xf1ac45 fail_abnormal_edge_coalesce
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210117/work/gcc-11-20210117/gcc/tree-ssa-coalesce.c:1003
0xf1ac45 coalesce_partitions
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210117/work/gcc-11-20210117/gcc/tree-ssa-coalesce.c:1425
0xf1ac45 coalesce_ssa_name(_var_map*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210117/work/gcc-11-20210117/gcc/tree-ssa-coalesce.c:1755
0xeb68cc remove_ssa_form
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210117/work/gcc-11-20210117/gcc/tree-outof-ssa.c:1065
0xeb68cc rewrite_out_of_ssa(ssaexpand*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210117/work/gcc-11-20210117/gcc/tree-outof-ssa.c:1323
0x95fdd0 execute
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20210117/work/gcc-11-20210117/gcc/cfgexpand.c:6533

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

end of thread, other threads:[~2021-05-05 10:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22  4:21 [Bug rtl-optimization/98786] New: ICE: SSA corruption (Unable to coalesce ssa_names 2 and 10 which are marked as MUST COALESCE.) asolokha at gmx dot com
2021-01-22  7:54 ` [Bug tree-optimization/98786] " rguenth at gcc dot gnu.org
2021-01-22  9:08 ` marxin at gcc dot gnu.org
2021-01-22  9:30 ` rguenth at gcc dot gnu.org
2021-01-22 10:31 ` cvs-commit at gcc dot gnu.org
2021-01-22 10:39 ` [Bug tree-optimization/98786] [8/9/10 Regression] " rguenth at gcc dot gnu.org
2021-05-05  9:03 ` rguenth at gcc dot gnu.org
2021-05-05  9:42 ` cvs-commit at gcc dot gnu.org
2021-05-05  9:43 ` rguenth at gcc dot gnu.org
2021-05-05 10:12 ` cvs-commit at gcc dot gnu.org
2021-05-05 10:43 ` cvs-commit at gcc dot gnu.org
2021-05-05 10:43 ` 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).