[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#812246: ICE: maybe_legitimize_operand, at optabs.c:6888 with -O3



Package: gcc-6
Version: 6-20160117-1
Forwarded: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69421

With dpkg-buildflags set to -O3

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> Package: octave
> Version: 4.0.0-5
...
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I./array -I./cruft/misc -Inumeric -I./numeric -Ioperators -I./operators -I./system -I./util -I../libgnu -I../libgnu -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -fopenmp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -O3 -c array/dSparse.cc  -fPIC -DPIC -o array/.libs/array_libarray_la-dSparse.o
> In file included from array/CMatrix.cc:61:0:
> operators/mx-inlines.cc: In function 'void mx_inline_eq(size_t, bool*, const X*, Y) [with X = std::complex<double>; Y = std::complex<double>]':
> operators/mx-inlines.cc:106:34: internal compiler error: in maybe_legitimize_operand, at optabs.c:6888
>  { for (size_t i = 0; i < n; i++) r[i] = x[i] OP y; } \
>                                   ^
> 
> operators/mx-inlines.cc:115:1: note: in expansion of macro 'DEFMXCMPOP'
>  DEFMXCMPOP (mx_inline_eq, ==)
>  ^~~~~~~~~~
> 
> 0x9de99e maybe_legitimize_operand
> 	../../src/gcc/optabs.c:6887
> 0x9de99e maybe_legitimize_operands(insn_code, unsigned int, unsigned int, expand_operand*)
> 	../../src/gcc/optabs.c:6954
> 0x9debd9 maybe_gen_insn(insn_code, unsigned int, expand_operand*)
> 	../../src/gcc/optabs.c:6972
> 0x9e87d8 maybe_expand_insn(insn_code, unsigned int, expand_operand*)
> 	../../src/gcc/optabs.c:7015
> 0x9e87d8 expand_insn(insn_code, unsigned int, expand_operand*)
> 	../../src/gcc/optabs.c:7046
> 0x9e8d29 expand_vec_cond_mask_expr(tree_node*, tree_node*, tree_node*, tree_node*, rtx_def*)
> 	../../src/gcc/optabs.c:5557
> 0x9e8ff4 expand_vec_cond_expr(tree_node*, tree_node*, tree_node*, tree_node*, rtx_def*)
> 	../../src/gcc/optabs.c:5590
> 0x86f607 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier)
> 	../../src/gcc/expr.c:9343
> 0x86232b expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
> 	../../src/gcc/expr.c:9562
> 0x86bdcc expand_expr
> 	../../src/gcc/expr.h:256
> 0x86bdcc expand_assignment(tree_node*, tree_node*, bool)
> 	../../src/gcc/expr.c:4797
> 0x78ae7e expand_gimple_stmt_1
> 	../../src/gcc/cfgexpand.c:3606
> 0x78ae7e expand_gimple_stmt
> 	../../src/gcc/cfgexpand.c:3702
> 0x78c97c expand_gimple_basic_block
> 	../../src/gcc/cfgexpand.c:5708
> 0x7918a6 execute
> 	../../src/gcc/cfgexpand.c:6323
> Please submit a full bug report,
> with preprocessed source if appropriate.
> Please include the complete backtrace with any bug report.
> See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.


Reply to: