public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/102118] New: ice in merge, at ipa-modref-tree.h:203 Date: Sun, 29 Aug 2021 16:12:03 +0000 [thread overview] Message-ID: <bug-102118-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102118 Bug ID: 102118 Summary: ice in merge, at ipa-modref-tree.h:203 Product: gcc Version: 12.0 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 { int large_page_addr; long n_used_entries } CPUTLBDesc; typedef struct { long mask } CPUTLBDescFast; typedef struct { CPUTLBDesc d[8]; CPUTLBDescFast f[] } CPUTLB; typedef int RISCVCPU; CPUTLB *tlb_flush_page_bits_locked___trans_tmp_8, *tlb_flush_page_bits_locked___trans_tmp_6, *tlb_flush_page_bits_locked___trans_tmp_4; void tlb_flush_page_bits_locked(int *env, int midx) { { int *__trans_tmp_5 = env; { RISCVCPU *arch_cpu = __trans_tmp_5; tlb_flush_page_bits_locked___trans_tmp_4 = arch_cpu; } } CPUTLBDesc *d = &tlb_flush_page_bits_locked___trans_tmp_4->d[midx]; { int *__trans_tmp_7 = env; { RISCVCPU *arch_cpu = __trans_tmp_7; tlb_flush_page_bits_locked___trans_tmp_6 = arch_cpu; } } if (tlb_flush_page_bits_locked___trans_tmp_6->f[midx].mask) if (d->large_page_addr) { int *__trans_tmp_3 = env; { { RISCVCPU *arch_cpu = __trans_tmp_3; tlb_flush_page_bits_locked___trans_tmp_8 = arch_cpu; } tlb_flush_page_bits_locked___trans_tmp_8->d[midx].n_used_entries--; } } } compiled by recent gcc trunk and compiler flag -O1, does this: during GIMPLE pass: modref bug752.c: In function ‘tlb_flush_page_bits_locked’: bug752.c:43:1: internal compiler error: in merge, at ipa-modref-tree.h:203 43 | } | ^ 0xae7448 modref_access_node::merge(modref_access_node const&, bool) ../../trunk.git/gcc/ipa-modref-tree.h:203 The code was fine at git hash 3ac6b5cff1eca4e1 and broken at hash e28ac73af20028f8
next reply other threads:[~2021-08-29 16:12 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-29 16:12 dcb314 at hotmail dot com [this message] 2021-08-29 19:47 ` [Bug ipa/102118] [12 Regression] " pinskia at gcc dot gnu.org 2021-08-30 7:23 ` marxin at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-102118-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).