amdgcn, nvptx: Handle -fpic/-fPIC in mkoffload
authorKwok Cheung Yeung <kcy@codesourcery.com>
Mon, 6 Jul 2020 22:21:08 +0000 (15:21 -0700)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Wed, 8 Jul 2020 19:11:10 +0000 (12:11 -0700)
commita8b522311beef5e02de15427e924752ea02def2a
tree4a930f020e6b9be982fd44eaacf9547c37622699
parent1fa08dcac686ca5b6d84e64c9f5813daef59f540
amdgcn, nvptx: Handle -fpic/-fPIC in mkoffload

2020-07-08  Tobias Burnus  <tobias@codesourcery.com>

gcc/ChangeLog:

* config/gcn/mkoffload.c (compile_native, main): Pass -fPIC/-fpic
on to the native compiler, if used.
* config/nvptx/mkoffload.c (compile_native, main): Likewise.
gcc/config/gcn/mkoffload.c
gcc/config/nvptx/mkoffload.c