https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68127
Bug ID: 68127 Summary: [6 Regression] ICE: error: incompatible types in PHI argument 0 / Segmentation fault Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: Joost.VandeVondele at mat dot ethz.ch Target Milestone: --- trunk started failing between r229401 and r229470 to build CP2K with -flto and -fprofile-generate with the following ICE: /data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_util.F: In function ‘get_ddapc’: /data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_util.F:201:0: error: incompatible types in PHI argument 0 RECURSIVE SUBROUTINE get_ddapc(qs_env, calc_force, density_fit_section,& ^ long int long unsigned int __var_8_do_2091 = PHI <0(572), _1994(574)> /data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_util.F:201:0: error: invalid PHI argument <<< error >>> /data/vjoost/gnu/cp2k/cp2k/makefiles/../src/cp_ddapc_util.F:201:0: internal compiler error: Segmentation fault 0xa007df crash_signal ../../gcc/gcc/toplev.c:353 0x79c588 tree_class_check ../../gcc/gcc/tree.h:3041 0x79c588 useless_type_conversion_p(tree_node*, tree_node*) ../../gcc/gcc/gimple-expr.c:91 0xa47489 verify_gimple_phi ../../gcc/gcc/tree-cfg.c:4673 0xa47489 verify_gimple_in_cfg(function*, bool) ../../gcc/gcc/tree-cfg.c:4967 0x93764c execute_function_todo ../../gcc/gcc/passes.c:1967 0x9380c3 execute_todo ../../gcc/gcc/passes.c:2022 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. make[3]: *** [/tmp/ccTSnvhv.ltrans15.ltrans.o] Error 1 make[3]: Target `all' not remade because of errors. lto-wrapper: fatal error: make returned 2 exit status compilation terminated. /data/vjoost/gnu/binutils-2.23.2/install/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status No reduced testcase, as this involves LTO.