This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Eager newline handling for cpplib [patch]
- To: Per Bothner <bothner at cygnus dot com>
- Subject: Re: Eager newline handling for cpplib [patch]
- From: Zack Weinberg <zack at rabi dot columbia dot edu>
- Date: Sat, 13 Mar 1999 23:47:26 -0500
- cc: egcs-patches at cygnus dot com, brolley at cygnus dot com, eggert at twinsun dot com
On Sat, 13 Mar 1999 17:20:35 -0800, Per Bothner wrote:
>> cpplib's performance is now neck and neck with cccp.
>
>Great! Thanks for adopting cpplib!
>
>How close do you think we are to switching over to using
>cppmain instead of cccp as the default for cpp?
Now it's just missing features: -lint, -dM (possibly other -d
switches), multibyte characters and \u escapes, C89 Amendment 1
digraphs, C9x varargs macros, possibly others. I have code to do \u
escapes almost everywhere (except in macro names) and multibyte
characters should be pretty easy. We did agree that we won't do
multibyte on systems that don't have the reentrant functions, right?
The big issue is that the macro-expansion code is a mess, and won't
take well to the addition of digraphs or UCNs. I think it might be
easier to rewrite from scratch; I have some design ideas but nothing
concrete.
I still don't know if it works on 64-bit platforms. I think it needs
a lot more testing in general before we trust it to replace cccp.
Making it the default at the beginning of the 1.3 series might be
possible.
zw