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

            Bug ID: 92357
           Summary: ICE in IPA pass fnsummary in openmp offload
           Product: gcc
           Version: 9.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: scogland1 at llnl dot gov
  Target Milestone: ---

The pre-processed source from save-temps is attached.  Tests were run in a
docker container using fedora:31 as the base image with the fedora packages for
gcc and gcc-offload-nvptx added.  The original file is part of RAJA and can be
found in place in its repo on github if that's at all helpful:
https://github.com/LLNL/RAJA/blob/develop/test/unit/omp-target/test-reduce-tupleminloc.cpp

command:

/usr/bin/c++  -DGTEST_HAS_DEATH_TEST=1 -I/usr/src/test/include
-I/usr/src/include -I/usr/src/gcc-offload-build/include -I/usr/src/tpl/cub
-I/usr/src/tpl/camp/include -isystem /usr/src/blt/thirdparty_builtin
/googletest-master-2018-02-01/googletest/include  -Wall -Wextra  -O2 -DNDEBUG
-fPIE   -fopenmp -std=c++14 -o meh
/usr/src/test/unit/omp-target/test-reduce-tupleminloc.cpp


output:
during IPA pass: fnsummary
lto1: internal compiler error: in inline_read_section, at ipa-fnsummary.c:3332
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
mkoffload: fatal error: /usr/bin/x86_64-redhat-linux-accel-nvptx-none-gcc
returned 1 exit status
compilation terminated.
lto-wrapper: fatal error:
/usr/libexec/gcc/x86_64-redhat-linux/9//accel/nvptx-none/mkoffload returned 1
exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status

GCC info:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --with-linker-has
h-style=gnu --enable-plugin --enable-initfini-array --with-isl
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-gnu-indirect-function --enable-cet --with-tune=generic
--with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 9.2.1 20190827 (Red Hat 9.2.1-1) (GCC)

Reply via email to