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 to c-commonc.c, preliminary for PR/3865 fix


On Sat, Aug 31, 2002 at 08:10:42PM +0100, Neil Booth wrote:
> > It's an interesting idea.  Didn't we have problems with that kind of
> > optimization before?  That was with macros defined to the empty
> > string, though, maybe defined to a single token wouldn't be as much of
> > a problem.
> > 
> > I was mainly thinking about reducing initialization overhead, not
> > macro expansion overhead.
> 
> I think you misunderstood.  I _was_ talking about init overhead; we
> still have to push, lex and pop the string buffer.

Oh.  Yes, I misunderstood.  This would end up creating the normal data
structure for a preprocessor macro, just short circuit the process?
Sounds like a good idea.

zw


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