public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cnsun at uwaterloo dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/100600] New: ICE: in verify_hash_value, at fold-const.c:3929
Date: Fri, 14 May 2021 14:31:16 +0000	[thread overview]
Message-ID: <bug-100600-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 100600
           Summary: ICE: in verify_hash_value, at fold-const.c:3929
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cnsun at uwaterloo dot ca
  Target Milestone: ---

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.eZIsobWkq2-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch
--prefix=/scratch/software/gcc-trunk --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20210514 (experimental) [master revision
:e5c3c8afa:f3b1516d9dfd969d7cc1ca6f26dec13478a1c458] (GCC)

$ cat mutant.c
a, b, c;
long d(long, long e, long f, long g) {
  long h, i;
  for (; h < e; h++) {
    i = f;
    for (; i < g; i++)
      c = b + a;
  }
  return h + i;
}
long j(long, long e, long, long g) {
  long h, i;
  for (; h < e; h++)
    for (; i < g; i++)
      c = b + a;
  return h + i;
}

$ gcc-trunk -O3 mutant.c
mutant.c:1:1: warning: data definition has no type or storage class
    1 | a, b, c;
      | ^
mutant.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’
[-Wimplicit-int]
mutant.c:1:4: warning: type defaults to ‘int’ in declaration of ‘b’
[-Wimplicit-int]
    1 | a, b, c;
      |    ^
mutant.c:1:7: warning: type defaults to ‘int’ in declaration of ‘c’
[-Wimplicit-int]
    1 | a, b, c;
      |       ^
during IPA pass: icf
mutant.c:17:1: internal compiler error: in verify_hash_value, at
fold-const.c:3929
   17 | }
      | ^
0x6b4fe9 operand_compare::verify_hash_value(tree_node const*, tree_node const*,
unsigned int, bool*)
        /tmp/tmp.eZIsobWkq2-gcc-builder/gcc/gcc/fold-const.c:3929
0x19e8d35 ipa_icf_gimple::func_checker::operand_equal_p(tree_node const*,
tree_node const*, unsigned int)
        /tmp/tmp.eZIsobWkq2-gcc-builder/gcc/gcc/ipa-icf-gimple.c:312
0x19e606b ipa_icf_gimple::func_checker::compare_operand(tree_node*, tree_node*,
ipa_icf_gimple::func_checker::operand_access_type)
        /tmp/tmp.eZIsobWkq2-gcc-builder/gcc/gcc/ipa-icf-gimple.c:397
0x19d642a ipa_icf::sem_function::compare_phi_node(basic_block_def*,
basic_block_def*)
        /tmp/tmp.eZIsobWkq2-gcc-builder/gcc/gcc/ipa-icf.c:1584
0x19dccf1 ipa_icf::sem_function::equals_private(ipa_icf::sem_item*)
        /tmp/tmp.eZIsobWkq2-gcc-builder/gcc/gcc/ipa-icf.c:925
0x19dcdf3 ipa_icf::sem_function::equals_private(ipa_icf::sem_item*)
        /tmp/tmp.eZIsobWkq2-gcc-builder/gcc/gcc/ipa-icf.c:836
0x19dcdf3 ipa_icf::sem_function::equals(ipa_icf::sem_item*,
hash_map<symtab_node*, ipa_icf::sem_item*,
simple_hashmap_traits<default_hash_traits<symtab_node*>, ipa_icf::sem_item*>
>&)
        /tmp/tmp.eZIsobWkq2-gcc-builder/gcc/gcc/ipa-icf.c:813
0x19d7457 ipa_icf::sem_item_optimizer::subdivide_classes_by_equality(bool)
        /tmp/tmp.eZIsobWkq2-gcc-builder/gcc/gcc/ipa-icf.c:2732
0x19e34ac ipa_icf::sem_item_optimizer::execute()
        /tmp/tmp.eZIsobWkq2-gcc-builder/gcc/gcc/ipa-icf.c:2464
0x19e51aa ipa_icf_driver
        /tmp/tmp.eZIsobWkq2-gcc-builder/gcc/gcc/ipa-icf.c:3600
0x19e51aa ipa_icf::pass_ipa_icf::execute(function*)
        /tmp/tmp.eZIsobWkq2-gcc-builder/gcc/gcc/ipa-icf.c:3647
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

             reply	other threads:[~2021-05-14 14:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-14 14:31 cnsun at uwaterloo dot ca [this message]
2021-05-17  7:53 ` [Bug ipa/100600] [11/12 Regression] ICE: in verify_hash_value, at fold-const.c:3929 since r11-5206-gd1081010a1addfcf marxin at gcc dot gnu.org
2021-05-17 12:17 ` rguenth at gcc dot gnu.org
2021-07-28  7:07 ` rguenth at gcc dot gnu.org
2021-08-16  7:53 ` cvs-commit at gcc dot gnu.org
2021-08-16  7:54 ` [Bug ipa/100600] [11 " marxin at gcc dot gnu.org
2021-08-16 11:14 ` cvs-commit at gcc dot gnu.org
2021-08-16 11:17 ` 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-100600-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).