[Bug tree-optimization/82875] ICE at -Os on valid code on x86_64-linux-gnu: in find_widening_optab_handler_and_mode, at optabs-query.c:414

helloqirun at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Nov 7 06:14:00 GMT 2017


--- Comment #2 from Qirun Zhang <helloqirun at gmail dot com> ---
(In reply to Arseny Solokha from comment #1)
> This is likely a duplicate of PR82816.

Hi Arseny, I tried it on r254484. It still exists.

$ gcc-trunk -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/home/absozero/trunk/root-gcc
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 8.0.0 20171107 (experimental) [trunk revision 254484] (GCC)

$ gcc-trunk -m32 -Os a.c
during RTL pass: expand
a.c: In function ‘fn1’:
a.c:15:25: internal compiler error: in find_widening_optab_handler_and_mode, at
       d ? (a %= c) * (e *= a ? f : b) : 0;
0xb9b285 find_widening_optab_handler_and_mode(optab_tag, machine_mode,
machine_mode, machine_mode*)
0xb8ea4a expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*,
int, optab_methods)
0xb92030 expand_doubleword_mult
0xb8fc38 expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*,
int, optab_methods)
0x9661b5 expand_mult(machine_mode, rtx_def*, rtx_def*, rtx_def*, int)
0x98b374 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
0x8653b1 expand_gimple_stmt_1
0x8653b1 expand_gimple_stmt
0x866a18 expand_gimple_basic_block
0x86b796 execute
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

More information about the Gcc-bugs mailing list