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

            Bug ID: 96315
           Summary: internal compiler error with variable size struct and
                    openmp
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: szaboka at general dot elte.hu
  Target Milestone: ---

Created attachment 48925
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48925&action=edit
the preprocessed file (*.i*) that triggers the bug,

> Using the first three of which can be obtained from the output of gcc -v
built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/ccc/products2/gcc-10.1.0/Atos_7__x86_64/system/default/bin/../libexec/gcc/x86_64-pc-linux-gnu/10.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --enable-languages=c,c++,fortran --enable-lto
--enable-checking=release --disable-multilib --enable-shared=yes
--enable-static=yes --enable-threads=posix --enable-gold=default
--enable-plugins --enable-ld --with-plugin-ld=ld.gold --enable-bootstrap
--prefix=/ccc/products/ccc_users_env/compil/Atos_7__x86_64/gcc-10.1.0/system/default
--with-local-prefix=/ccc/products/ccc_users_env/compil/Atos_7__x86_64/gcc-10.1.0/system/default
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.1.0 (GCC) 

> the complete command line that triggers the bug;
gcc -o 1 1.c -Wall -Wextra -fopenmp

> the compiler output (error messages, warnings, etc.); and
during RTL pass: expand
1.c: In function ‘main._omp_fn.0’:
1.c:15:9: internal compiler error: in emit_move_insn, at expr.c:3814
   15 | #pragma omp parallel for
      |         ^~~
0x5adb88 emit_move_insn(rtx_def*, rtx_def*)
        ../../gcc/expr.c:3814
0x7f0284 extract_integral_bit_field
        ../../gcc/expmed.c:1919
0x7f0284 extract_bit_field_1
        ../../gcc/expmed.c:1843
0x7f1b2b extract_bit_field(rtx_def*, poly_int<1u, unsigned long>, poly_int<1u,
unsigned long>, int, rtx_def*, machine_mode, machine_mode, bool, rtx_def**)
        ../../gcc/expmed.c:2115
0x807398 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/expr.c:10996
0x811392 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
        ../../gcc/expr.c:8358
0x811392 store_expr(tree_node*, rtx_def*, int, bool, bool)
        ../../gcc/expr.c:5752
0x8128c1 expand_assignment(tree_node*, tree_node*, bool)
        ../../gcc/expr.c:5514
0x709488 expand_gimple_stmt_1
        ../../gcc/cfgexpand.c:3749
0x709488 expand_gimple_stmt
        ../../gcc/cfgexpand.c:3847
0x70efea expand_gimple_basic_block
        ../../gcc/cfgexpand.c:5887
0x70efea execute
        ../../gcc/cfgexpand.c:6542

> the preprocessed file (*.i*) that triggers the bug,

attached

Reply via email to