public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/97830] New: [11 Regression] ICE in expressions_equal_p at gcc/tree-ssa-sccvn.c:5631 since r11-4982-g4d6b8d4213376e8a
@ 2020-11-14 19:57 marxin at gcc dot gnu.org
  2020-11-14 19:58 ` [Bug tree-optimization/97830] " marxin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-14 19:57 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97830
           Summary: [11 Regression] ICE in expressions_equal_p at
                    gcc/tree-ssa-sccvn.c:5631 since
                    r11-4982-g4d6b8d4213376e8a
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---

The following fails:

$ cat schedule.i
typedef enum { LangC } cLanguage;
typedef enum { FunctionOneArg, FunctionStandard } cFunctionType;
void *CCTK_CallFunction_function;
cLanguage CCTK_CallFunction_fdata_0;
cFunctionType CCTK_CallFunction_fdata_1;
void CCTK_CallFunction_data() {
  void (*standardfunc)();
  int (*oneargfunc)();
  switch (CCTK_CallFunction_fdata_1) {
  case FunctionOneArg:
    oneargfunc = CCTK_CallFunction_function;
    oneargfunc(CCTK_CallFunction_data);
    break;
  case FunctionStandard:
    switch (CCTK_CallFunction_fdata_0) {
    case LangC:
      standardfunc = CCTK_CallFunction_function;
      standardfunc(CCTK_CallFunction_data);
    }
  }
}

$ gcc schedule.i -c -O2
during GIMPLE pass: pre
schedule.i: In function 'CCTK_CallFunction_data':
schedule.i:6:6: internal compiler error: Segmentation fault
    6 | void CCTK_CallFunction_data() {
      |      ^~~~~~~~~~~~~~~~~~~~~~
0x13be442 crash_signal
        /home/marxin/Programming/gcc/gcc/toplev.c:330
0x7ffff7889d1f ???
       
/usr/src/debug/glibc-2.32-2.1.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x16badca expressions_equal_p(tree_node*, tree_node*)
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:5631
0x16a9f5f vn_reference_eq(vn_reference_s const*, vn_reference_s const*)
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:705
0x16c5e86 vn_reference_hasher::equal(vn_reference_s const*, vn_reference_s
const*)
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:246
0x16c6c45 hash_table<vn_reference_hasher, false,
xcallocator>::find_slot_with_hash(vn_reference_s* const&, unsigned int,
insert_option)
        /home/marxin/Programming/gcc/gcc/hash-table.h:981
0x16ad9fa vn_reference_lookup_1
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:1645
0x16b4137 vn_reference_lookup_call(gcall*, vn_reference_s**, vn_reference_s*)
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:3579
0x16b8a1f visit_reference_op_call
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:4897
0x16ba84c visit_stmt
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:5503
0x16c08d2 process_bb
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:7110
0x16c29bc do_rpo_vn
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:7597
0x16bf041 run_rpo_vn(vn_lookup_kind)
        /home/marxin/Programming/gcc/gcc/tree-ssa-sccvn.c:6684
0x1677f18 execute
        /home/marxin/Programming/gcc/gcc/tree-ssa-pre.c:4392
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.

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

end of thread, other threads:[~2020-11-16  9:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-14 19:57 [Bug tree-optimization/97830] New: [11 Regression] ICE in expressions_equal_p at gcc/tree-ssa-sccvn.c:5631 since r11-4982-g4d6b8d4213376e8a marxin at gcc dot gnu.org
2020-11-14 19:58 ` [Bug tree-optimization/97830] " marxin at gcc dot gnu.org
2020-11-15  9:11 ` dcb314 at hotmail dot com
2020-11-15  9:27 ` dcb314 at hotmail dot com
2020-11-16  7:18 ` rguenth at gcc dot gnu.org
2020-11-16  7:33 ` marxin at gcc dot gnu.org
2020-11-16  9:27 ` cvs-commit at gcc dot gnu.org
2020-11-16  9:27 ` rguenth at gcc dot gnu.org

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