public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "peter.waller at arm dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/109940] New: ICE in decide_candidate_validity, bisected to
Date: Tue, 23 May 2023 08:28:06 +0000	[thread overview]
Message-ID: <bug-109940-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 109940
           Summary: ICE in decide_candidate_validity, bisected to
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: peter.waller at arm dot com
  Target Milestone: ---

The following reproducer crashes after 53dddbfeb213ac4ec39f550aa81eaa4264375d2c
(Use correct CFG orders for DF worklist processing, 21 April 2023) and not on
the parent commit, it is still broken up to at least
a8900fe4812f6b77d1349308bb4de08f7c130225 (May 22, 1422 UTC):

aarch64-unknown-gnu-gcc -O3 -S -o - -march=armv9-a -x c - <<EOF
a;
*b;
c(int *d) { *d = a; }
e(d, f) {
  if (d <= 1)
    return;
  int g = d / 2;
  for (int h = 0; h < g; h++)
    if (f == b > b[h])
      c(&b[h]);
  e(g);
  e(g, f);
}
EOF

It produces the following output:

during RTL pass: early_remat
<stdin>:13:1: internal compiler error: in decide_candidate_validity, at
early-remat.cc:1521
0x1d87b47 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char
const*, __va_list_tag (*) [1], diagnostic_t)
        ???:0
0x1d88997 internal_error(char const*, ...)
        ???:0
0x8f39f9 fancy_abort(char const*, int, char const*)
        ???:0
0x8b670d (anonymous namespace)::pass_early_remat::execute(function*) [clone
.cold]
        ???:0

             reply	other threads:[~2023-05-23  8:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-23  8:28 peter.waller at arm dot com [this message]
2023-05-23  8:41 ` [Bug c/109940] [14 Regression] ICE in decide_candidate_validity, bisected ktkachov at gcc dot gnu.org
2023-05-23  8:44 ` [Bug rtl-optimization/109940] [13 Regression] ICE in decide_candidate_validity since g:53dddbfeb213ac4ec39f550aa81eaa4264375d2c tnfchris at gcc dot gnu.org
2023-05-23 15:52 ` [Bug rtl-optimization/109940] [14 " rguenth at gcc dot gnu.org
2023-05-23 19:13 ` rsandifo at gcc dot gnu.org
2023-05-24  8:53 ` cvs-commit at gcc dot gnu.org
2023-05-24  8:56 ` rsandifo at gcc dot gnu.org
2023-05-24 10:58 ` peter.waller at arm dot com

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-109940-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: link
Be 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).