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: cpplib: reusing cached include files


Per Bothner <per@bothner.com> writes:

> cpplib contains code to cache the contents of an include file.
> However, this code is currently disasbled, presumably because
> it is incompatble with _cpp_clean_line.  However, for the compile
> server I really want to be able to re-used the cached buffer.
> The following patch seems to more-or-less work.  It's not quite
> right, because I haven't attempted to get the line numbers right.
> However, it shouldn't be too difficult to fix that by replacing
> some of the spaces I've added by newlines instead.

What we want to do is cache the results of _cpp_clean_line, not the
raw buffers.

zw


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