public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/105209] New: internal compiler error: in store_data_bypass_p_1
@ 2022-04-10 19:51 roland.illig at gmx dot de
  2022-04-11  7:29 ` [Bug target/105209] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: roland.illig at gmx dot de @ 2022-04-10 19:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

end of thread, other threads:[~2022-06-20 20:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-10 19:51 [Bug c/105209] New: internal compiler error: in store_data_bypass_p_1 roland.illig at gmx dot de
2022-04-11  7:29 ` [Bug target/105209] " rguenth at gcc dot gnu.org
2022-04-11 11:48 ` ubizjak at gmail dot com
2022-06-17 15:21 ` cvs-commit at gcc dot gnu.org
2022-06-20 18:47 ` cvs-commit at gcc dot gnu.org
2022-06-20 20:46 ` cvs-commit at gcc dot gnu.org
2022-06-20 20:53 ` cvs-commit at gcc dot gnu.org
2022-06-20 20:54 ` ubizjak at gmail dot com

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).