https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77954
Bug ID: 77954
Summary: LTO_STREAMER_DEBUG ICE with OpenMP SIMD clones
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Keywords: openmp
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: tschwinge at gcc dot gnu.org
CC: jakub at gcc dot gnu.org, rguenth at gcc dot gnu.org
Target Milestone: ---
If you enable gcc/lto-streamer.h:LTO_STREAMER_DEBUG, the
libgomp.fortran/declare-simd-4.f90 test case will run into an ICE, because of
gcc/lto-streamer.c:lto_orig_address_remove failing in "gcc_assert (slot)".
If Intel MIC (emulated) offloading is enabled,
libgomp.c/examples-4/declare_target-5.c and
libgomp.fortran/examples-4/declare_target-5.f90 fail in the same way.
I have not analyzed whether that is a real problem, or "just" a problem with
LTO_STREAMER_DEBUG -- but bootstrap build and full testsuite run with
LTO_STREAMER_DEBUG enabled doesn't exhibit any additional problems.