https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63424
Bug ID: 63424 Summary: Octave -O3 build: internal compiler error: in prepare_cmp_insn, at optabs.c:4237 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: david.sherwood at arm dot com Created attachment 33634 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33634&action=edit A reduced test case from the Octave build failure Whilst building Octave with CFLAGS="-O3 -pipe" on target aarch64-linux-gnu I got the following compiler error: internal compiler error: in prepare_cmp_insn, at optabs.c:4237 ival = truncate_int (static_cast<unsigned long long> (ival) ^ 0xb2b205 prepare_cmp_insn /work/davshe01/oban-work/src/gcc/gcc/optabs.c:4237 0xb2b288 emit_cmp_and_jump_insns(rtx_def*, rtx_def*, rtx_code, rtx_def*, machine_mode, int, rtx_def*, int) /work/davshe01/oban-work/src/gcc/gcc/optabs.c:4381 0x8d3019 do_compare_rtx_and_jump(rtx_def*, rtx_def*, rtx_code, int, machine_mode, rtx_def*, rtx_def*, rtx_def*, int) /work/davshe01/oban-work/src/gcc/gcc/dojump.c:1135 0x95c9bf expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /work/davshe01/oban-work/src/gcc/gcc/expr.c:8855 0x94ff1f expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /work/davshe01/oban-work/src/gcc/gcc/expr.c:9428 0x958a00 expand_expr /work/davshe01/oban-work/src/gcc/gcc/expr.h:451 0x958a00 expand_operands /work/davshe01/oban-work/src/gcc/gcc/expr.c:7541 0x95bc92 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /work/davshe01/oban-work/src/gcc/gcc/expr.c:9233 0x94ff1f expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /work/davshe01/oban-work/src/gcc/gcc/expr.c:9428 0x959945 store_expr(tree_node*, rtx_def*, int, bool) /work/davshe01/oban-work/src/gcc/gcc/expr.c:5337 0x960cbf expand_assignment(tree_node*, tree_node*, bool) /work/davshe01/oban-work/src/gcc/gcc/expr.c:5123 0x876a0b expand_gimple_stmt_1 /work/davshe01/oban-work/src/gcc/gcc/cfgexpand.c:3274 0x876a0b expand_gimple_stmt /work/davshe01/oban-work/src/gcc/gcc/cfgexpand.c:3370 0x87ca33 expand_gimple_basic_block /work/davshe01/oban-work/src/gcc/gcc/cfgexpand.c:5209 0x87e5d6 execute /work/davshe01/oban-work/src/gcc/gcc/cfgexpand.c:5815 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. I have attached a reduced test case, Thanks, David Sherwood.