https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71934

--- Comment #11 from Iain Sandoe <iains at gcc dot gnu.org> ---
I think this needs to be done selectively (I posted some patches which probably
need some polish).

We have to remember that (much thought I really appreciates Jakub's work on
this) this only solves part of the problem - PCH is still not relocatable thus:

* Not all targets will be able to do PIE (32b hosts in particular might have
trouble to find a free space in the VMA for the PCH)  - Certainly, I have not
much oconfidence that we can accommodate non-PIE without relocatable PCH on m32
Darwin.

* Also it should be possible to have a PIE toolset that generates non-PIE by
default - where at the moment you would only get a PIE toolset iff you
--enable-default-pie.

* so I think that there should be an option to allow PIE tools rather than
relying on --enable-default-PIE..

So my guess is that the full answer is:

Yes, for hosts that can find a 512Mb or sol space in the VMA that is
confidently available - and no otherwise.

Reply via email to