Re: [PATCH 0/4] config: Allow a host to opt out of PCH.

2021-11-08 Thread Jakub Jelinek via Gcc-patches
On Fri, Nov 05, 2021 at 04:37:09PM +, Iain Sandoe wrote: > It is hard to judge the relative effort in the two immediately visible > solutions: > > 1. relocatable PCH > 2. taking the tree streamer from the modules implementation, moving its home > to c-family and adding hooks so that each

Re: [PATCH 0/4] config: Allow a host to opt out of PCH.

2021-11-07 Thread Iain Sandoe
> On 8 Nov 2021, at 07:16, Richard Biener wrote: > > On Fri, Nov 5, 2021 at 5:37 PM Iain Sandoe wrote: >> >> >> >>> On 5 Nov 2021, at 15:25, Jakub Jelinek wrote: >>> >>> On Fri, Nov 05, 2021 at 11:31:58AM +0100, Richard Biener wrote: On Fri, Nov 5, 2021 at 10:54 AM Jakub Jelinek wr

Re: [PATCH 0/4] config: Allow a host to opt out of PCH.

2021-11-07 Thread Richard Biener via Gcc-patches
On Fri, Nov 5, 2021 at 5:37 PM Iain Sandoe wrote: > > > > > On 5 Nov 2021, at 15:25, Jakub Jelinek wrote: > > > > On Fri, Nov 05, 2021 at 11:31:58AM +0100, Richard Biener wrote: > >> On Fri, Nov 5, 2021 at 10:54 AM Jakub Jelinek wrote: > >>> > >>> On Fri, Nov 05, 2021 at 10:42:05AM +0100, Richar

Re: [PATCH 0/4] config: Allow a host to opt out of PCH.

2021-11-05 Thread Iain Sandoe
> On 5 Nov 2021, at 15:25, Jakub Jelinek wrote: > > On Fri, Nov 05, 2021 at 11:31:58AM +0100, Richard Biener wrote: >> On Fri, Nov 5, 2021 at 10:54 AM Jakub Jelinek wrote: >>> >>> On Fri, Nov 05, 2021 at 10:42:05AM +0100, Richard Biener via Gcc-patches >>> wrote: I had the impression w

Re: [PATCH 0/4] config: Allow a host to opt out of PCH.

2021-11-05 Thread Jakub Jelinek via Gcc-patches
On Fri, Nov 05, 2021 at 11:31:58AM +0100, Richard Biener wrote: > On Fri, Nov 5, 2021 at 10:54 AM Jakub Jelinek wrote: > > > > On Fri, Nov 05, 2021 at 10:42:05AM +0100, Richard Biener via Gcc-patches > > wrote: > > > I had the impression we have support for PCH file relocation to deal with > > >

Re: [PATCH 0/4] config: Allow a host to opt out of PCH.

2021-11-05 Thread Richard Biener via Gcc-patches
On Fri, Nov 5, 2021 at 10:54 AM Jakub Jelinek wrote: > > On Fri, Nov 05, 2021 at 10:42:05AM +0100, Richard Biener via Gcc-patches > wrote: > > I had the impression we have support for PCH file relocation to deal with > > ASLR > > at least on some platforms. > > Unfortunately we do not, e.g. if y

Re: [PATCH 0/4] config: Allow a host to opt out of PCH.

2021-11-05 Thread Jakub Jelinek via Gcc-patches
On Fri, Nov 05, 2021 at 10:42:05AM +0100, Richard Biener via Gcc-patches wrote: > I had the impression we have support for PCH file relocation to deal with ASLR > at least on some platforms. Unfortunately we do not, e.g. if you build cc1/cc1plus as PIE on x86_64-linux, PCH will stop working unless

Re: [PATCH 0/4] config: Allow a host to opt out of PCH.

2021-11-05 Thread Richard Biener via Gcc-patches
On Thu, Nov 4, 2021 at 9:03 PM Iain Sandoe via Gcc-patches wrote: > > GCC (currently) has an implementation of pre-compiled-headers, that relies > on being able to launch the compiler executable at the same address each > time. This constraint is not permitted by some system security models. > >