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

            Bug ID: 99467
           Summary: ice in lra_set_insn_recog_data, at lra.c:1006
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this c code:

typedef struct {
  unsigned command
} ViaXvMCCommandBuffer;
int viaXvMCInterceptPutImage_id, viaXvMCInterceptPutImage_vx_0;
char viaXvMCInterceptPutImage_buf;
void viaXvMCInterceptPutImage_vXvMCData_2(short height, int sync, int
clipBoxes,
                                          void *data, int pDraw) {
  if (viaXvMCInterceptPutImage_id) {
    int *sAPriv;
    ViaXvMCCommandBuffer *vXvMCData = viaXvMCInterceptPutImage_buf;
    sAPriv = DRIGetSAREAPrivate();
    switch (vXvMCData->command) {
    case 1:
      viaXvMCDisplayAttributes();
      if (sAPriv != viaXvMCInterceptPutImage_vXvMCData_2)
      case 2:
        __asm__("" : "=m"(sAPriv[viaXvMCInterceptPutImage_vx_0]));
    }
  }
  vx_2(height, sync, clipBoxes, data, pDraw);
}

compiled with -O1 on recent gcc trunk, does this:

/home/dcb/cvise/test/bug700.c:21:1: internal compiler error: in
lra_set_insn_recog_data, at lra.c:1006

This bug first seems to occur sometime between date 20210226
and 20210305.

Reply via email to