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

            Bug ID: 69167
           Summary: [6 Regression] internal compiler error: SSA corruption
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

trunk r232077, powerpc64le-linux-gnu, works with -O0

reduced test case:

enum { SEND_TOFILE } __sigsetjmp();
void fclose();
void foldergets();
void sendpart_stats(int *p1) {
  int *a = p1;
  fclose();
  p1 = 0;
  if (__sigsetjmp())
    while (foldergets)
      fclose(a ? sendpart_stats : 0);
  if (p1)
    fclose();
}

$ gcc -c -g -O1 send.i 

Unable to coalesce ssa_names 2 and 8 which are marked as MUST COALESCE.
p1_2(ab) and  p1_8(D)(ab)
send.i: In function 'sendpart_stats':
send.i:4:6: internal compiler error: SSA corruption
 void sendpart_stats(int *p1) {
      ^~~~~~~~~~~~~~

0x107c0b23 fail_abnormal_edge_coalesce
        ../../src/gcc/tree-ssa-coalesce.c:936
0x107c0b23 coalesce_partitions
        ../../src/gcc/tree-ssa-coalesce.c:1337
0x107c0b23 coalesce_ssa_name()
        ../../src/gcc/tree-ssa-coalesce.c:1821
0x10762e6b remove_ssa_form
        ../../src/gcc/tree-outof-ssa.c:974
0x10762e6b rewrite_out_of_ssa(ssaexpand*)
        ../../src/gcc/tree-outof-ssa.c:1198
0x102a7efb execute
        ../../src/gcc/cfgexpand.c:6124
Please submit a full bug report,
with preprocessed source if appropriate.

Reply via email to