Darwin, PCH: Rework hooks for relocatable implementation [PR71934].
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 6 Dec 2021 07:50:08 +0000 (07:50 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 9 Dec 2021 15:16:15 +0000 (15:16 +0000)
commit0d5db1dd65b45286082f82f600ca0a3e6e43e06e
tree5f3f29e69b9c7ca83847e025ffa9eb90d5a711b3
parentbf15cd665e74791aae87e7e151a0cf0c4cb54684
Darwin, PCH: Rework hooks for relocatable implementation [PR71934].

Now we have a relocatable PCH implementation we can revise the
hooks that find and use the mmapped memory.  Specifically, this
removes the extra checking and diagnostic output for cases that
were likely to fail in a non-relocatable scenario.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/ChangeLog:

PR pch/71934
* config/host-darwin.c (SAFE_ALLOC_SIZE): Remove.
(darwin_gt_pch_get_address): Rework for relocatable PCH.
(darwin_gt_pch_use_address): Likewise.
gcc/config/host-darwin.c