Merging PCH to mainline

Geoff Keating geoffk@geoffk.org
Fri Jan 10 20:18:00 GMT 2003


> Cc: gcc-patches@gcc.gnu.org
> Date: Fri, 10 Jan 2003 14:53:48 -0500
> From: David Edelsohn <dje@watson.ibm.com>
> X-OriginalArrivalTime: 10 Jan 2003 19:53:23.0375 (UTC) FILETIME=[EED2F3F0:01C2B8E1]
> 
> 	Why shouldn't main_input_filename be restored properly so that the
> strings will be defined as before, which is good enough?

At the point where this is emitted, during building the PCH file, the
final main input filename is not available, since (among other things)
there will usually be multiple main input files using the same PCH
file.

The main input filename is not saved or restored for this reason.

> 	And if the filename in the debugging information is changed, one
> will not be able to debug PCH-compiled programs.

I don't understand.  What do you think is wrong exactly?

-- 
- Geoffrey Keating <geoffk@geoffk.org>



More information about the Gcc-patches mailing list