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

            Bug ID: 88519
           Summary: internal compiler error: in expand_widen_pattern_expr,
                    at optabs.c:278
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: toon at moene dot org
  Target Milestone: ---

Created attachment 45244
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45244&action=edit
Source code that provokes the ICE.

The attached source provokes the following ICE:

during RTL pass: expand
hlcfint2.f90:159:0:

  159 |        zpsi2 = ppsi(i,k) +
(ppsi(i,k)-ppsi(i,k-1))*zxx/(pph(i,k)-pph(i,k-1))
      | 
internal compiler error: in expand_widen_pattern_expr, at optabs.c:278
0x6bcac1 expand_widen_pattern_expr(separate_ops*, rtx_def*, rtx_def*, rtx_def*,
rtx_def*, int)
        /home/toon/compilers/trunk/gcc/optabs.c:278
0xabe134 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        /home/toon/compilers/trunk/gcc/expr.c:9465
0xaaeb2f expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /home/toon/compilers/trunk/gcc/expr.c:9882
0xaac1b5 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /home/toon/compilers/trunk/gcc/expr.c:11037
0xab8843 store_expr(tree_node*, rtx_def*, int, bool, bool)
        /home/toon/compilers/trunk/gcc/expr.c:5633
0xab9f79 expand_assignment(tree_node*, tree_node*, bool)
        /home/toon/compilers/trunk/gcc/expr.c:5416
0xab9f79 expand_assignment(tree_node*, tree_node*, bool)
        /home/toon/compilers/trunk/gcc/expr.c:4977
0x9a064f expand_gimple_stmt_1
        /home/toon/compilers/trunk/gcc/cfgexpand.c:3746
0x9a064f expand_gimple_stmt
        /home/toon/compilers/trunk/gcc/cfgexpand.c:3844
0x9a2b01 expand_gimple_basic_block
        /home/toon/compilers/trunk/gcc/cfgexpand.c:5880
0x9a7687 execute
        /home/toon/compilers/trunk/gcc/cfgexpand.c:6502
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.

when compiled in the following way:

~toon/compilers/install/bin/gfortran -Ofast -march=skylake-avx512 -c
hlcfint2.f90

Version of the compiler:

~toon/compilers/install/bin/gfortran -v
Using built-in specs.
COLLECT_GCC=/home/toon/compilers/install/bin/gfortran
COLLECT_LTO_WRAPPER=/home/toon/compilers/install/libexec/gcc/x86_64-pc-linux-gnu/9.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/toon/compilers/trunk/configure
--prefix=/home/toon/compilers/install --with-gnu-as --with-gnu-ld
--enable-languages=all,go,ada --disable-multilib --disable-nls
Thread model: posix
gcc version 9.0.0 20181216 (experimental) (GCC)

Reply via email to