This is the mail archive of the gcc-patches@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: [PATCH] Symbol Separation - Take 2



On Saturday, July 19, 2003, at 6:56 PM, Daniel Jacobowitz wrote:


Cpplib is essentially a preprocessor and token-stream library.  Soon it
will be built completely independently of GCC, and probably used in
other projects.  In what way does a sophisticated mechanism for
managing debug information belong to it?

Lets make standard preprocessor, a smart preprocessor.


I want cpplib to tell its user, "Hey, while including and preprocessing
foo.h, I found context info. foo.h.cinfo and it is valid."

After that I use call backs to inform compiler that there is somewhere
(in user's control)  debugging info. repository available for foo.h
(convention is to name it as foo.h.o), so do not bother to
generate debugging info for foo.h again.

My patch adds powerful mechanism in cpplib to save, read  and validate
include header context info. (based on PCH implementation).

One can use header validation for many purposes.
- I use to make and to validate symbol repository.
- Geoff uses it to validate PCH.
- It can be used to save and re-use pre-processed token streams. GCC has
PCH but other projects may want to take advantage of such pre-processed
token streams.
- Let me go overboard. It allows compiler to save and use various notes
(like clip boards) about particular header during entire project compilation. Say,
list of templates instantiated for template BAR from foo.h.


-Devang


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