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

Kyrill Tkachov kyrylo.tkachov@foss.arm.com
Tue Jan 24 14:16:00 GMT 2017


Hi all,

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?

Thanks,
Kyrill

2016-01-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * gcc.dg/lto/pr54709_0.c: Require 'shared' effective target.
     * gcc.dg/lto/pr61526_0.c: Likewise.
     * gcc.dg/lto/pr64415_0.c: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lto-shared-tests.patch
Type: text/x-patch
Size: 1452 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170124/2a1aac42/attachment.bin>


More information about the Gcc-patches mailing list