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] Fix PR preprocessor/6489 (take 2)


On Thu, May 02, 2002 at 09:39:41AM -0400, Jakub Jelinek wrote:
> 
> It handles stuff like #include <foo.h>^M but not \^M. \^M is handled in
> > 50 cases in that spaghetti code, I've started working on a patch but
> it would be huge (what I wrote was about 14K patch and was far from
> finishing it).
> Is cpp -traditional actually performance critical?
> Wonder if a simple pass over a newly read buffer which would
> canonicalize line endings wouldn't be much cleaner and shorter
> (and obviously correct)...

No, it's not performance critical -- and Neil wants to fold it back
into cpplib, which would make the whole issue go away.  A prescan pass
would do in the meantime, and as you say, be much easier to validate.

zw


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