[Bug ipa/91302] New: tree-ssa-sccvn.c:7308:1: internal compiler error: in speculative_call_info, at cgraph.c:1114

danglin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 30 18:50:00 GMT 2019


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

            Bug ID: 91302
           Summary: tree-ssa-sccvn.c:7308:1: internal compiler error: in
                    speculative_call_info, at cgraph.c:1114
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danglin at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

Created attachment 46646
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46646&action=edit
Preproccessed source

/home/dave/gnu/gcc/objdir/./prev-gcc/xg++
-B/home/dave/gnu/gcc/objdir/./prev-gcc
/ -B/home/dave/opt/gnu/gcc/gcc-10/hppa-linux-gnu/bin/ -nostdinc++
-B/home/dave/g
nu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs
-B/home/dave/gnu/gcc/ob
jdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs 
-I/home/dave/gnu/gcc/objd
ir/prev-hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu 
-I/home/dave/gnu/gcc
/objdir/prev-hppa-linux-gnu/libstdc++-v3/include 
-I/home/dave/gnu/gcc/gcc/libst
dc++-v3/libsupc++
-L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/s
rc/.libs
-L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/
.libs -fno-PIE -c   -g -O2 -fno-checking -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual
 -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual
-pedanti
c -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror  
-DHAVE_C
ONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I.
./../gcc/gcc/../libcpp/include  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/
../libdecnumber/dpd -I../libdecnumber -I../../gcc/gcc/../libbacktrace   -o
tree-
ssa-sccvn.o -MT tree-ssa-sccvn.o -MMD -MP -MF ./.deps/tree-ssa-sccvn.TPo
../../g
cc/gcc/tree-ssa-sccvn.c

GNU C++14 (GCC) version 10.0.0 20190730 (experimental) [trunk revision 273908]
(
hppa-linux-gnu)
        compiled by GNU C version 8.3.0, GMP version 6.1.2, MPFR version 4.0.2,
MPC version 1.1.0, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++14 (GCC) version 10.0.0 20190730 (experimental) [trunk revision 273908]
(
hppa-linux-gnu)
        compiled by GNU C version 8.3.0, GMP version 6.1.2, MPFR version 4.0.2,
MPC version 1.1.0, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 251f88ad791110fdbab89bc41a686a0c
../../gcc/gcc/tree-ssa-sccvn.c: In function 'vn_kind
vn_get_stmt_kind(gimple*)':
../../gcc/gcc/tree-ssa-sccvn.c:537:3: error: this statement may fall through
[-W
error=implicit-fallthrough=]
  537 |   if ((code == REALPART_EXPR
      |   ^~
../../gcc/gcc/tree-ssa-sccvn.c:545:8: note: here
  545 |        case tcc_declaration:
      |        ^~~~
../../gcc/gcc/tree-ssa-sccvn.c: In function 'bool
ao_ref_init_from_vn_reference(ao_ref*, alias_set_type, tree,
vec<vn_reference_op_struct>)':
../../gcc/gcc/tree-ssa-sccvn.c:1041:6: error: this statement may fall through
[-Werror=implicit-fallthrough=]
 1041 |      }
      |      ^
../../gcc/gcc/tree-ssa-sccvn.c:1043:2: note: here
 1043 |  case CALL_EXPR:
      |  ^~~~
../../gcc/gcc/tree-ssa-sccvn.c: In function 'void
copy_reference_ops_from_ref(tree, vec<vn_reference_op_struct>*)':
../../gcc/gcc/tree-ssa-sccvn.c:905:4: error: this statement may fall through
[-Werror=implicit-fallthrough=]
  905 |    if (DECL_HARD_REGISTER (ref))
      |    ^~
../../gcc/gcc/tree-ssa-sccvn.c:911:2: note: here
  911 |  case PARM_DECL:
      |  ^~~~

during IPA pass: cp
../../gcc/gcc/tree-ssa-sccvn.c:7308:1: internal compiler error: in
speculative_call_info, at cgraph.c:1114
 7308 | }
      | ^
0x9d2f27 cgraph_edge::speculative_call_info(cgraph_edge*&, cgraph_edge*&,
ipa_ref*&)
        ../../gcc/gcc/cgraph.c:1114
0x9d3277 cgraph_edge::resolve_speculation(tree_node*)
        ../../gcc/gcc/cgraph.c:1155
0x9d367f cgraph_edge::make_direct(cgraph_node*)
        ../../gcc/gcc/cgraph.c:1215
0xebc023 ipa_make_edge_direct_to_target(cgraph_edge*, tree_node*, bool)
        ../../gcc/gcc/ipa-prop.c:2978
0x20f6097 ipcp_discover_new_direct_edges
        ../../gcc/gcc/ipa-cp.c:3347
0x20f8523 create_specialized_node
        ../../gcc/gcc/ipa-cp.c:3913
0x20fb9bf decide_whether_version_node
        ../../gcc/gcc/ipa-cp.c:4803
0x20fc11f ipcp_decision_stage
        ../../gcc/gcc/ipa-cp.c:4915
0x20fcdf3 ipcp_driver
        ../../gcc/gcc/ipa-cp.c:5092
0x20fd21b execute
        ../../gcc/gcc/ipa-cp.c:5183
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.


More information about the Gcc-bugs mailing list