[Bug tree-optimization/97915] New: ICE in get_odr_type, at ipa-devirt.c:1930 in pre

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 19 19:38:05 GMT 2020


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

            Bug ID: 97915
           Summary: ICE in get_odr_type, at ipa-devirt.c:1930 in pre
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

I see the following failures in the objc test suite today:

!  FAIL: objc.dg/lto/trivial-1 (2: +2)
!  FAIL: objc.dg/torture/forward-1.m (4: +4)
!  FAIL: objc.dg/torture/strings/const-str-3.m (4: +4)
!  FAIL: objc.dg/torture/strings/const-str-7.m (4: +4)
!  FAIL: objc.dg/torture/strings/const-str-8.m (4: +4)
!  FAIL: objc.dg/torture/strings/string1.m (4: +4)
!  FAIL: objc.dg/torture/strings/string2.m (4: +4)
!  FAIL: objc.dg/torture/strings/string3.m (4: +4)
!  FAIL: objc.dg/torture/strings/string4.m (4: +4)
!  FAIL: objc.dg/torture/tls/thr-init-3.m (4: +4)
!  FAIL: objc.dg/torture/trivial.m (4: +4)

The log has this output for the first test (the rest of them look similar):

spawn -ignore SIGHUP /build/gcc-trunk/gcc/xgcc -B/ssd/test/build/gcc-97
172/gcc/ objc_lto_trivial-1_0.o -fdiagnostics-plain-output -O2 -flto
-fgnu-runti
me -Wno-objc-root-class -I/src/gcc/trunk/gcc/testsuite/../../libobjc -B
/build/gcc-trunk/x86_64-pc-linux-gnu/./libobjc/.libs
-L/build/gcc-trunk/x86_64-pc-linux-gnu/./libobjc/.libs -lobjc -o
objc-dg-lto-trivial-1-11
.exe
during GIMPLE pass: pre
/src/gcc/trunk/gcc/testsuite/objc.dg/lto/trivial-1_0.m: In function 'main':
/src/gcc/trunk/gcc/testsuite/objc.dg/lto/trivial-1_0.m:32:5: internal compiler
error: in get_odr_type, at ipa-devirt.c:1930
0x65b384 get_odr_type(tree_node*, bool)
        /src/gcc/trunk/gcc/ipa-devirt.c:1930
0xab35c0 obj_type_ref_class(tree_node const*, bool)
        /src/gcc/trunk/gcc/ipa-devirt.c:1906
0x9bfd45 operand_compare::hash_operand(tree_node const*, inchash::hash&,
unsigned int)
        /src/gcc/trunk/gcc/fold-const.c:3869
0xec9020 vn_reference_op_compute_hash
        /src/gcc/trunk/gcc/tree-ssa-sccvn.c:626
0xec9020 vn_reference_compute_hash
        /src/gcc/trunk/gcc/tree-ssa-sccvn.c:674
0xed3e96 vn_reference_lookup_call(gcall*, vn_reference_s**, vn_reference_s*)
        /src/gcc/trunk/gcc/tree-ssa-sccvn.c:3581
0xedb60e visit_reference_op_call
        /src/gcc/trunk/gcc/tree-ssa-sccvn.c:4900
0xedb60e visit_stmt
        /src/gcc/trunk/gcc/tree-ssa-sccvn.c:5506
0xedc746 process_bb
        /src/gcc/trunk/gcc/tree-ssa-sccvn.c:7113
0xede9a5 do_rpo_vn
        /src/gcc/trunk/gcc/tree-ssa-sccvn.c:7600
0xedf2a2 run_rpo_vn(vn_lookup_kind)
        /src/gcc/trunk/gcc/tree-ssa-sccvn.c:6687
0xeab143 execute
        /src/gcc/trunk/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.
lto-wrapper: fatal error: /build/gcc-trunk/gcc/xgcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
compiler exited with status 1


More information about the Gcc-bugs mailing list