Per Bothner <[EMAIL PROTECTED]> writes:
> Daniel Jacobowitz wrote:
> > That's exactly what Geoff said. There are two relevant properties of
> > GCed memory here:
> > - Anything in GCed memory will be saved to the PCH
> > - Anything in GCed memory will be overwritten by loading the PCH.
>
>
Per Bothner <[EMAIL PROTECTED]> writes:
> Geoff Keating wrote:
> >> * Any source_location values handed out before the #include
> >> that restores the gch will become invalid. They will be re-mapped
> >> to that in the pre-compiled header. Presumably that's ok - there's
> >> no declartions or
Daniel Jacobowitz wrote:
> That's exactly what Geoff said. There are two relevant properties of
GCed memory here:
- Anything in GCed memory will be saved to the PCH
- Anything in GCed memory will be overwritten by loading the PCH.
So the corrollary: After a restore any pointers from non-gc'd
On Thu, Mar 31, 2005 at 01:25:45PM -0800, Per Bothner wrote:
> Geoff Keating wrote:
> >> * Any source_location values handed out before the #include
> >>that restores the gch will become invalid. They will be re-mapped
> >>to that in the pre-compiled header. Presumably that's ok - there's
> >>no
Geoff Keating wrote:
>> * Any source_location values handed out before the #include
that restores the gch will become invalid. They will be re-mapped
to that in the pre-compiled header. Presumably that's ok - there's
no declartions or expressions in the main file at that point, or
the restore wo
On 30/03/2005, at 10:36 PM, Per Bothner wrote:
* Note that we compile the gch file as it were the main file
- i.e. it has the MAIN_FILE_P property, and it is not included
from any file. This means the restored line_table is slightly
anomalous. One solution to this is when we generate the gch file
On Mar 30, 2005, at 10:36 PM, Per Bothner wrote:
* Note that we compile the gch file as it were the main file
- i.e. it has the MAIN_FILE_P property, and it is not included
from any file.
Another side effect, it bypasses system header check.
gcc -x c-header /usr/include/stdio.h
Here, stdio.h is
I think I have a better handle of where the pch regressions with
--enable-mapped-location are coming from. This is a follow-up
to some debugging/experimentation that Zack did - in September!
I agree with Zack that the problem is that the line_table
data structure needs to saved into the gch file a