Fix for PR/94542, do not make TLS refs PC-relative
authorAaron Sawdey <acsawdey@linux.ibm.com>
Tue, 14 Apr 2020 19:38:47 +0000 (14:38 -0500)
committerAaron Sawdey <acsawdey@linux.ibm.com>
Tue, 14 Apr 2020 19:38:47 +0000 (14:38 -0500)
commitaba6453890ce1754b7d1c01a67612766690ff15e
treee8e492c75ed16f848e383ae796080b75e63529ee
parent52d4ed1d96d48e2ceafc89a8734e14de3d5de3fe
Fix for PR/94542, do not make TLS refs PC-relative

For rs6000 target, it is not valid to make PC-relative
references to TLS symbols. So addr_to_insn_form() needs
to check if things are TLS before returning PC-rel forms.

2020-04-14  Aaron Sawdey  <acsawdey@linux.ibm.com>

PR target/94542
* config/rs6000/rs6000.c (address_to_insn_form): Do not attempt to
use PC-relative addressing for TLS references.
gcc/ChangeLog
gcc/config/rs6000/rs6000.c