On 14 March 2018 at 21:12, Eric Botcazou <ebotca...@adacore.com> wrote:
>> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
>
> Please make sure to test it on more platforms (see PR ipa/83983 for details).
>

Hi,

These new tests do not work well on arm-none-eabi and aarch64-none-elf.
(as opposed to arm*linux* and aarch64*linux*)

On arm-none-eabi, I see:
/aci-gcc-fsf/builds/gcc-fsf-gccsrc/tools/arm-none-eabi/bin/ld:
/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-arm-none-eabi/gcc3/gcc/testsuite/g++1/../../crtbegin.o:
relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used
when making a shared object; recompile with -fPIC
/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-arm-none-eabi/gcc3/gcc/testsuite/g++1/../../crtbegin.o:
error adding symbols: Bad value
collect2: error: ld returned 1 exit status
compiler exited with status 1
FAIL: g++.dg/lto/pr84805  (test for LTO warnings, pr84805_0.C line 106)
FAIL: g++.dg/lto/pr84805  (test for LTO warnings, pr84805_0.C line 142)
FAIL: g++.dg/lto/pr84805  (test for LTO warnings, pr84805_0.C line 147)
FAIL: g++.dg/lto/pr84805  (test for LTO warnings, pr84805_1.C line 6)
FAIL: g++.dg/lto/pr84805  (test for LTO warnings, pr84805_2.C line 18)
FAIL: g++.dg/lto/pr84805 cp_lto_pr84805_0.o-cp_lto_pr84805_2.o link,
-O2 -fPIC -shared -flto

On aarch64-none-elf, I see:
/aci-gcc-fsf/builds/gcc-fsf-gccsrc/tools/aarch64-none-elf/bin/ld:
/aci-gcc-fsf/builds/gcc-fsf-gccsrc/tools/lib/gcc/aarch64-none-elf/8.0.1/../../../../aarch64-none-elf/lib/librdimon.a(rdimon-syscalls.o):
relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol
`_impure_ptr' can not be used when making a shared object; recompile
with -fPIC
PASS: g++.dg/lto/pr84805  (test for LTO warnings, pr84805_0.C line 106)
PASS: g++.dg/lto/pr84805  (test for LTO warnings, pr84805_0.C line 142)
PASS: g++.dg/lto/pr84805  (test for LTO warnings, pr84805_0.C line 147)
PASS: g++.dg/lto/pr84805  (test for LTO warnings, pr84805_1.C line 6)
PASS: g++.dg/lto/pr84805  (test for LTO warnings, pr84805_2.C line 18)
FAIL: g++.dg/lto/pr84805 cp_lto_pr84805_0.o-cp_lto_pr84805_2.o link,
-O2 -fPIC -shared -flto

Christophe


> --
> Eric Botcazou

Reply via email to