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

            Bug ID: 70026
           Summary: [6 Regression] ICE in expand_expr_real_2 with -O1
                    -ftree-vectorize
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vsevolod.livinskij at frtk dot ru
  Target Milestone: ---

Created attachment 37830
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37830&action=edit
Reproducer.

Testcase produces ICE with -O1 -ftree-vectorize. Everything works fine with gcc
version 4.9.4 (Revision=233763) and gcc version 5.3.1 (Revision=233763). Tested
with -march=core-avx2, -march=corei7-avx and -march=knl.

Error:
> g++ repr.cpp -o out -O1 -ftree-vectorize -std=c++11 -march=core-avx2
repr.cpp: In function ‘void foo()’:
repr.cpp:29:6: internal compiler error: in expand_expr_real_2, at expr.c:9376
 void foo () {
      ^~~
0x867298 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../../gcc/expr.c:9376
0x85758a expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/expr.c:9577
0x9fe024 expand_normal
        ../../gcc/expr.h:262
0x9fe024 expand_vec_cond_mask_expr(tree_node*, tree_node*, tree_node*,
tree_node*, rtx_def*)
        ../../gcc/optabs.c:5563
0x9fe3a4 expand_vec_cond_expr(tree_node*, tree_node*, tree_node*, tree_node*,
rtx_def*)
        ../../gcc/optabs.c:5607
0x864809 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../../gcc/expr.c:9358
0x78194e expand_gimple_stmt_1
        ../../gcc/cfgexpand.c:3653
0x78194e expand_gimple_stmt
        ../../gcc/cfgexpand.c:3714
0x782d85 expand_gimple_basic_block
        ../../gcc/cfgexpand.c:5720
0x787c96 execute
        ../../gcc/cfgexpand.c:6335
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.

GCC version:
> g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/gcc-trunk/bin/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --with-arch=corei7 --with-cpu=corei7
--enable-clocale=gnu --with-system-zlib --enable-shared --with-demangler-in-ld
--enable-cloog-backend=isl --with-fpmath=sse --enable-checking=release
--with-pkgversion=Revision=233809 --enable-languages=c,c++,lto
--with-gmp=/gcc-trunk/gmp-6.1.0/bin --with-mpfr=/gcc-trunk/mpfr-3.1.3/bin
--with-mpc=/gcc-trunk/mpc-1.0.3/bin --prefix=/gcc-trunk/bin
Thread model: posix
gcc version 6.0.0 20160229 (experimental) (Revision=233809)

Reply via email to