[PATCH][testsuite] Require shared effective target for some lto.exp tests

Mike Stump mikestump@comcast.net
Tue Jan 24 22:36:00 GMT 2017


On Jan 24, 2017, at 6:16 AM, Kyrill Tkachov <kyrylo.tkachov@foss.arm.com> wrote:
> 
> The tests in this patch fail for me on aarch64-none-elf with:
> relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `_impure_ptr' can not be used when making a shared object; recompile with -fPIC
> 
> I believe since the tests pass -shared to the linker they should be gated on the 'shared' effective target?
> With this patch these tests appear as UNSUPPORTED on aarch64-none-elf rather than FAILing.
> 
> Ok for trunk?

Ok.



More information about the Gcc-patches mailing list