[Patch ARM] Fix PR target/81863
authorRamana Radhakrishnan <ramana@gcc.gnu.org>
Tue, 27 Mar 2018 14:06:20 +0000 (14:06 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Tue, 27 Mar 2018 14:06:20 +0000 (14:06 +0000)
commit974e8240c083ce4942a7310da42e2d9260af125c
treefbd420d13acd21bd7ac469f17000c0c45d88232c
parent59d2d2383485fb0febdcab9f06bbb3526eeab106
[Patch ARM] Fix PR target/81863

This has been in my patch stack for quite some time. The problem here
was that we weren't handling arm_word_relocations in
arm_valid_symbolic_address and is the surest fix for this
for GCC8 and GCC7.

Regression tested on arm-none-linux-gnueabihf . Applying to
trunk and backporting to GCC-7 in a day or so.

regards
Ramana

2018-03-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

PR target/81863
* config/arm/arm.c (arm_valid_symbolic_address): Handle arm_word_relocations

2018-03-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

PR target/81863
* gcc.target/arm/pr81863.c: New test.

From-SVN: r258886
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/pr81863.c [new file with mode: 0644]