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

            Bug ID: 80101
           Summary: ICE in store_data_bypass_p, at recog.c:3737
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-linux-gnu
            Target: ppc64le-linux-gnu

Following test-case ICE with target compiler:

$ cat /tmp/tmpczflhfjq.i
int b;

void e();

int c ()
{
  struct
  {
    int a[b];
  } d;
  if (d.a[0])
    e ();
}

$ ppc64le-linux-gnu-gcc -mno-sched-epilog -Ofast -mcpu=power6
/tmp/tmpczflhfjq.i
/tmp/tmpczflhfjq.i: In function ā€˜cā€™:
/tmp/tmpczflhfjq.i:13:1: internal compiler error: in store_data_bypass_p, at
recog.c:3737
 }
 ^
0xadde35 store_data_bypass_p(rtx_insn*, rtx_insn*)
        .././../gcc/recog.c:3737
0x1007635 internal_insn_latency
       
/home/marxin/BIG/buildbot/slave/gcc-master-build-ppc64le-weekend/build/builddir/gcc/insn-automata.c:121583
0x1007635 insn_latency(rtx_insn*, rtx_insn*)
       
/home/marxin/BIG/buildbot/slave/gcc-master-build-ppc64le-weekend/build/builddir/gcc/insn-automata.c:122092
0x1195b3a dep_cost_1(_dep*, unsigned int)
        .././../gcc/haifa-sched.c:1484
0x119798e dep_cost(_dep*)
        .././../gcc/haifa-sched.c:1506
0x119798e priority
        .././../gcc/haifa-sched.c:1657
0x1197a7f set_priorities(rtx_insn*, rtx_insn*)
        .././../gcc/haifa-sched.c:7195
0xb1992d compute_priorities()
        .././../gcc/sched-rgn.c:3015
0xb1c60d schedule_region
        .././../gcc/sched-rgn.c:3108
0xb1c60d schedule_insns()
        .././../gcc/sched-rgn.c:3506
0xb1cd7d schedule_insns()
        .././../gcc/sched-rgn.c:3491
0xb1cd7d rest_of_handle_sched2
        .././../gcc/sched-rgn.c:3730
0xb1cd7d execute
        .././../gcc/sched-rgn.c:3866

Reply via email to