https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64675
Bug ID: 64675 Summary: [5 Regression] internal compiler error: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com On Linux/x86-64, r219824 gave lto1: internal compiler error: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706 0x12bffc3 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../src-trunk/gcc/tree.c:9290 0x1941714 tree_check(tree_node const*, char const*, int, char const*, tree_code) ../../src-trunk/gcc/tree.h:3091 0x1941714 opts_for_fn ../../src-trunk/gcc/tree.h:4706 0x1941714 ipa_icf::sem_item_optimizer::filter_removed_items() ../../src-trunk/gcc/ipa-icf.c:1656 0x19472f5 ipa_icf::sem_item_optimizer::execute() ../../src-trunk/gcc/ipa-icf.c:1703 0x194e923 ipa_icf_driver ../../src-trunk/gcc/ipa-icf.c:2460 0x194e923 ipa_icf::pass_ipa_icf::execute(function*) ../../src-trunk/gcc/ipa-icf.c:2508 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: fatal error: /export/gnu/import/git/gcc-test-profiled/bld/./prev-gcc/xg++ returned 1 exit status compilation terminated. when GCC is configured with --prefix=/usr/5.0.0 --enable-clocale=gnu --with-system-zlib --enable-shared --with-demangler-in-ld --with-build-config=bootstrap-lto --disable-werror --with-fpmath=sse --enable-languages=c,c++,fortran,java,lto,objc and built with "make -j8 profiledbootstrap".