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

            Bug ID: 95163
           Summary: internal compiler error: in
                    gimplify_adjust_omp_clauses, at gimplify.c:10440
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: john.donners at atos dot net
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

Created attachment 48548
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48548&action=edit
ICE with combined map-to and firstprivate

Hi,

gfortran (release 10.1.0 and commit f5b461d4) crashes with an internal compiler
error when compiling the attached program:

$ gfortran -Wall -Wextra -fopenmp bug_mapto_firstprivate.f90 
bug_mapto_firstprivate.f90:34:0:

   34 | !$omp    firstprivate(rsss)
      | 
internal compiler error: in gimplify_adjust_omp_clauses, at gimplify.c:10440
0xbab84d gimplify_adjust_omp_clauses
        ../../gcc/gcc/gimplify.c:10438
0xbcef50 gimplify_omp_workshare
        ../../gcc/gcc/gimplify.c:12810
0xbada45 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gcc/gimplify.c:14116
0xbb2836 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gcc/gimplify.c:6802
0xbae38b gimplify_statement_list
        ../../gcc/gcc/gimplify.c:1856
0xbae38b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gcc/gimplify.c:14031
0xbb2836 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gcc/gimplify.c:6802
0xbb3b8d gimplify_bind_expr
        ../../gcc/gcc/gimplify.c:1411
0xbaf323 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gcc/gimplify.c:13788
0xbb2836 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gcc/gimplify.c:6802
0xbb4b13 gimplify_body(tree_node*, bool)
        ../../gcc/gcc/gimplify.c:14836
0xbb5187 gimplify_function_tree(tree_node*)
        ../../gcc/gcc/gimplify.c:14990
0x9d900f cgraph_node::analyze()
        ../../gcc/gcc/cgraphunit.c:671
0x9dc713 analyze_functions
        ../../gcc/gcc/cgraphunit.c:1231
0x9dd4d2 symbol_table::finalize_compilation_unit()
        ../../gcc/gcc/cgraphunit.c:2975
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.

$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/software/compilers/gcc-offload/f5b461d4/gnu-9.2.0/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:x86_64-intelmicemul-linux-gnu
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure
--with-gmp=/software/compilers/gcc/gcc-9.2.0-full+isl+binutils
--with-mpfr=/software/compilers/gcc/gcc-9.2.0-full+isl+binutils
--with-mpc=/software/compilers/gcc/gcc-9.2.0-full+isl+binutils
--with-isl=/software/compilers/gcc/gcc-9.2.0-full+isl+binutils
--enable-offload-targets=nvptx-none,x86_64-intelmicemul-linux-gnu
--with-cuda-driver-include=/usr/local/cuda-10.2/include
--with-cuda-driver-lib=/usr/local/cuda-10.2/lib64 --disable-bootstrap
--disable-multilib --enable-languages=c,c++,fortran,lto
--prefix=/software/compilers/gcc-offload/f5b461d4/gnu-9.2.0
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20200516 (experimental) (GCC) 


Cheers,
John

Reply via email to