[Darwin, machopic 3/n] Set a SYMBOL flag for indirections.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 9 Oct 2019 18:43:36 +0000 (18:43 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Wed, 9 Oct 2019 18:43:36 +0000 (18:43 +0000)
commita0e887be6147edcd14a5b95af17456d0a01575d4
tree614da0f4385ce7194462750a99f97fb117b32032
parente295e3d981355c61b72eca2ee58864958655cc31
[Darwin, machopic 3/n] Set a SYMBOL flag for indirections.

We are able to treat these specially where needed in legitimate address
tests (specifically, they are guaranteed to be pointer-aligned).

gcc/ChangeLog:

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

* config/darwin.c (machopic_indirect_data_reference): Set flag to
indicate that the new symbol is an indirection.
(machopic_indirect_call_target): Likewise.
* config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
(MACHO_SYMBOL_INDIRECTION_P): New.
(MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.

From-SVN: r276767
gcc/ChangeLog
gcc/config/darwin.c
gcc/config/darwin.h