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

            Bug ID: 105209
           Summary: internal compiler error: in store_data_bypass_p_1
           Product: gcc
           Version: 10.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
  Target Milestone: ---
            Target: alpha

$ cat <<'EOF' > tree.c
typedef struct tnode_t {
        struct tnode_t *tn_left, *tn_right;
        int v_quad;
} tnode_t;

int constant_addr(const tnode_t *, long *);
int constant_addr(const tnode_t *tn, long *offsp)
{
        long offs1 = 0, offs2 = 0;

        if (tn->v_quad > 0) {
                offs1 = tn->v_quad;
                return 0;
        } else if (tn->v_quad > -1) {
                offs2 = tn->tn_right->v_quad;
                if (!constant_addr(tn->tn_left, &offs1))
                        return 0;
        } else {
                return 0;
        }
        *offsp = offs1 + offs2;
        return 1;
}
EOF

$ /home/rillig/builds/alpha-tools/bin/alpha--netbsd-gcc -O2 -ftrapv -c tree.c
during RTL pass: sched1
/home/rillig/proj/src/usr.bin/xlint/lint1/tree.c: In function 'constant_addr':
/home/rillig/proj/src/usr.bin/xlint/lint1/tree.c:23:1: internal compiler error:
in store_data_bypass_p_1, at recog.c:3714
   23 | }
      | ^

$ gcc --version
alpha--netbsd-gcc (NetBSD nb1 20210411) 10.3.0

Reply via email to