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

            Bug ID: 96680
           Summary: [11 Regression][OpenMP][LTO] Declare variant + ICE in
                    lto_fixup_prevailing_decls, at lto/lto-common.c:2595
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, openmp
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

This now fails with offloading in the device lto1 of both AMDGCN and nvptx.

The testcase is tests/5.0/declare_variant/test_declare_variant.c of
https://github.com/SOLLVE/sollve_vv 

compile, e.g., as
  gcc -fopenmp -I ompvv ./tests/5.0/declare_variant/test_declare_variant.c


lto1: internal compiler error: in lto_fixup_prevailing_decls, at
lto/lto-common.c:2595
0x6536a0 lto_fixup_prevailing_decls
        gcc-mainline/gcc/lto/lto-common.c:2595
0x65f9a1 lto_fixup_decls
        gcc-mainline/gcc/lto/lto-common.c:2645
0x65f9a1 read_cgraph_and_symbols(unsigned int, char const**)
        src/gcc-mainline/gcc/lto/lto-common.c:2897
0x63fd42 lto_main()
        gcc-mainline/gcc/lto/lto.c:625

Reply via email to