https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68685
Bug ID: 68685 Summary: LTO build hits ICE in copy_to_mode_reg, at explow.c:595 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: anton at samba dot org Target Milestone: --- Created attachment 36905 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36905&action=edit Test case On a powerpc64le-linux target, the attached test case when built with: gcc -O2 -flto -mno-vsx -mno-altivec -c pgtable_64.i gcc -O2 -flto -mno-vsx -maltivec -c xor_vmx.i gcc -O2 -flto -mno-vsx -maltivec pgtable_64.o xor_vmx.o fails with: arch/powerpc/lib/xor_vmx.c:127:0: internal compiler error: in copy_to_mode_reg, at explow.c:595 XOR(v1, v2); 0x1036578f copy_to_mode_reg(machine_mode, rtx_def*) ../../gcc/gcc/explow.c:595 0x10b12e03 rs6000_expand_binop_builtin ../../gcc/gcc/config/rs6000/rs6000.c:12746 0x10b4e047 rs6000_expand_builtin ../../gcc/gcc/config/rs6000/rs6000.c:14798 0x102025ff expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) ../../gcc/gcc/builtins.c:5610 0x1038484b expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/gcc/expr.c:10578 0x1039264b store_expr_with_bounds(tree_node*, rtx_def*, int, bool, bool, tree_node*) ../../gcc/gcc/expr.c:5405 0x103945a3 expand_assignment(tree_node*, tree_node*, bool) ../../gcc/gcc/expr.c:5174 0x102302eb expand_call_stmt ../../gcc/gcc/cfgexpand.c:2635 0x102302eb expand_gimple_stmt_1 ../../gcc/gcc/cfgexpand.c:3525 0x102302eb expand_gimple_stmt ../../gcc/gcc/cfgexpand.c:3688 0x10232abf expand_gimple_basic_block ../../gcc/gcc/cfgexpand.c:5694 0x1023a167 execute ../../gcc/gcc/cfgexpand.c:6309