[Bug tree-optimization/86637] [9 Regression] ICE: tree check: expected block, have <invalid tree code> in inlining_chain_to_json, at optinfo-emit-json.cc:293
asolokha at gmx dot com
gcc-bugzilla@gcc.gnu.org
Wed Dec 5 04:27:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86637
--- Comment #5 from Arseny Solokha <asolokha at gmx dot com> ---
1.
% cat njcltcfr.c
void
te (void)
{
}
int
main (void)
{
return 0;
}
% gcc-9.0.0-alpha20181202 -O1 -fsave-optimization-record -ftree-slp-vectorize
--param ggc-min-expand=0 --param ggc-min-heapsize=1024 -c njcltcfr.c
during GIMPLE pass: slp
njcltcfr.c: In function 'main':
njcltcfr.c:7:1: internal compiler error: tree check: expected block, have
<invalid tree code> in inlining_chain_to_json, at optinfo-emit-json.cc:285
7 | main (void)
| ^~~~
0x6dd3f7 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/tree.c:9757
0x65f661 tree_check(tree_node*, char const*, int, char const*, tree_code)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/tree.h:3154
0x65f661 optrecord_json_writer::inlining_chain_to_json(unsigned int)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/optinfo-emit-json.cc:285
0xc14b1a optrecord_json_writer::optinfo_to_json(optinfo const*)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/optinfo-emit-json.cc:419
0xc14b48 optrecord_json_writer::add_record(optinfo const*)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/optinfo-emit-json.cc:141
0x94bc42 dump_context::emit_optinfo(optinfo const*)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/dumpfile.c:1207
0x94bc42 dump_context::end_any_optinfo()
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/dumpfile.c:1193
0x94e33f dump_context::begin_scope(char const*, dump_user_location_t const&,
dump_impl_location_t const&)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/dumpfile.c:1132
0xf73256 auto_dump_scope::auto_dump_scope(char const*, dump_user_location_t
const&, dump_impl_location_t const&)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/dumpfile.h:609
0xf73256 vect_slp_analyze_bb_1
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/tree-vect-slp.c:2820
0xf73256 vect_slp_bb(basic_block_def*)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/tree-vect-slp.c:3036
0xf75ef0 execute
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/tree-vectorizer.c:1295
2.
% gcc-9.0.0-alpha20181202 -O2 -fsave-optimization-record -ftree-slp-vectorize
-fno-tree-bit-ccp -fno-tree-fre -c gcc/testsuite/gcc.target/arm/cmp-1.c
during GIMPLE pass: slp
gcc/testsuite/gcc.target/arm/cmp-1.c: In function 'ss_ge_mr4':
gcc/testsuite/gcc.target/arm/cmp-1.c:25:9: internal compiler error: tree check:
expected block, have <invalid tree code> in inlining_chain_to_json, at
optinfo-emit-json.cc:285
25 | TEST (ss_##NAME, short, OPERATOR) \
| ^~~
gcc/testsuite/gcc.target/arm/cmp-1.c:11:8: note: in definition of macro
'TEST_EXPR'
11 | void NAME##4 ARGS { if (EXPR) x++; } \
| ^~~~
gcc/testsuite/gcc.target/arm/cmp-1.c:25:3: note: in expansion of macro 'TEST'
25 | TEST (ss_##NAME, short, OPERATOR) \
| ^~~~
gcc/testsuite/gcc.target/arm/cmp-1.c:37:1: note: in expansion of macro
'TEST_OP'
37 | TEST_OP (ge, >=)
| ^~~~~~~
0x6dd3f7 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/tree.c:9757
0x65f661 tree_check(tree_node*, char const*, int, char const*, tree_code)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/tree.h:3154
0x65f661 optrecord_json_writer::inlining_chain_to_json(unsigned int)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/optinfo-emit-json.cc:285
0xc14b1a optrecord_json_writer::optinfo_to_json(optinfo const*)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/optinfo-emit-json.cc:419
0xc14b48 optrecord_json_writer::add_record(optinfo const*)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/optinfo-emit-json.cc:141
0x94bc42 dump_context::emit_optinfo(optinfo const*)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/dumpfile.c:1207
0x94bc42 dump_context::end_any_optinfo()
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/dumpfile.c:1193
0x94e33f dump_context::begin_scope(char const*, dump_user_location_t const&,
dump_impl_location_t const&)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/dumpfile.c:1132
0xf73256 auto_dump_scope::auto_dump_scope(char const*, dump_user_location_t
const&, dump_impl_location_t const&)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/dumpfile.h:609
0xf73256 vect_slp_analyze_bb_1
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/tree-vect-slp.c:2820
0xf73256 vect_slp_bb(basic_block_def*)
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/tree-vect-slp.c:3036
0xf75ef0 execute
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181202/work/gcc-9-20181202/gcc/tree-vectorizer.c:1295
(as of r266729)
More information about the Gcc-bugs
mailing list