https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82875

--- 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.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/home/absozero/trunk/root-gcc/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
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
optabs-query.c:414
       d ? (a %= c) * (e *= a ? f : b) : 0;
                         ^~
0xb9b285 find_widening_optab_handler_and_mode(optab_tag, machine_mode,
machine_mode, machine_mode*)
        ../../gcc/gcc/optabs-query.c:414
0xb8ea4a expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*,
int, optab_methods)
        ../../gcc/gcc/optabs.c:1152
0xb92030 expand_doubleword_mult
        ../../gcc/gcc/optabs.c:865
0xb8fc38 expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*,
int, optab_methods)
        ../../gcc/gcc/optabs.c:1705
0x9661b5 expand_mult(machine_mode, rtx_def*, rtx_def*, rtx_def*, int)
        ../../gcc/gcc/expmed.c:3427
0x98b374 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../../gcc/gcc/expr.c:8802
0x8653b1 expand_gimple_stmt_1
        ../../gcc/gcc/cfgexpand.c:3712
0x8653b1 expand_gimple_stmt
        ../../gcc/gcc/cfgexpand.c:3773
0x866a18 expand_gimple_basic_block
        ../../gcc/gcc/cfgexpand.c:5774
0x86b796 execute
        ../../gcc/gcc/cfgexpand.c:6375
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.

Reply via email to