https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69607
--- Comment #19 from vries at gcc dot gnu.org --- > target-1.c > target-2.c Managed to reproduce with intelmic offloading: ... $ ./lean-c-intelmic/install/host/bin/x86_64-pc-linux-gnu-gcc target-1.c target-2.c -fopenmp -flto -flto-partition=1to1 -fno-toplevel-reorder -O2 -save-temps /tmp/ccfMdK4z.ltrans0.ltrans.o:(.gnu.offload_vars+0x0): undefined reference to `tgtv' /tmp/ccfMdK4z.ltrans0.ltrans.o:(.gnu.offload_funcs+0x0): undefined reference to `fn2._omp_fn.0' /tmp/ccfMdK4z.ltrans0.ltrans.o:(.gnu.offload_funcs+0x8): undefined reference to `fn3._omp_fn.2' /tmp/ccfMdK4z.ltrans0.ltrans.o:(.gnu.offload_funcs+0x10): undefined reference to `fn4._omp_fn.4' collect2: error: ld returned 1 exit status ...