https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87833
--- Comment #9 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- Author: tschwinge Date: Mon Nov 11 08:39:10 2019 New Revision: 278042 URL: https://gcc.gnu.org/viewcvs?rev=278042&root=gcc&view=rev Log: [PR87833] x86: Put -fPIC and -shared the last to create offload image On x86, since -fPIC and -shared should be used to create offload image, we put them the last to properly create offload image. 2019-11-11 H.J. Lu <hjl.to...@gmail.com> PR target/87833 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put -fPIC and -shared the last to create offload image. Backport from trunk r278041. Modified: branches/gcc-9-branch/gcc/ChangeLog branches/gcc-9-branch/gcc/config/i386/intelmic-mkoffload.c