[Darwin, machopic 4/n] Arrange to indirect IVARs when needed.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 10 Oct 2019 19:14:07 +0000 (19:14 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Thu, 10 Oct 2019 19:14:07 +0000 (19:14 +0000)
commit3a73cd7c9d4e51013aa526988e154a73b86e4970
treec06d581f219fc6df7f7a513a965ef7bc21535813
parenteb870e5e5ed4d5b784533d23afee637543e7dacc
[Darwin, machopic 4/n] Arrange to indirect IVARs when needed.

Objective C V2 (m64) IVAR offset refs from Apple GCC-4.x have an indirection
for m64 code on PPC (which is the only 64b user for Mach-O PIC).  Apple GCC
4.x places the indirections in the .data section, however this seems to have
been unintentional - and we are placing the indirections in the non-lazy
symbol pointers section.

gcc/ChangeLog:

2019-10-10  Iain Sandoe  <iain@sandoe.co.uk>

* config/darwin.c: Lookup Objective C metadata and force indirection
for IVAR refs.

From-SVN: r276848
gcc/ChangeLog
gcc/config/darwin.c