This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: OpenBSD pch, take 2


The very nasty thing is that they will *appear* to work. Namely, loading
a pch file will work 95% of the time... and fail whenever the file cannot
be mmaped at the same address due to randomization issues.
So, mark them as completely unreliable.

You may want to find the largest VMA and make the PCH reside in the 200 MB in the middle of it, or allocate the topmost free 200 MB in the address space, etc.


Linux has similar problems, see host-linux.c. If you bring the percentage up to 99% or so, it can be ok because PCH should only cause a compilation slowdown rather than incorrect results.

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]