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: [rfa] one-liner in lex.c


On Thu, 2004-09-09 at 11:07, Michael Snyder wrote:
> Hi folks,
> 
> Looks like your patch submission process is fairly similar to gdb's...
> 
> Adding this 'else' to the inner loop in _cpp_clean_line seems pretty 
> obvious.
> Since it's on the critical path, it might even yield a trivial performance 
> win.

As Paul said, there's no performance win here that I can see, but for
clarity the else should probably be there.

For the ChangeLog entry you just want to state what you did, not the
reasoning behind it though. So it should probably read:

2004-09-09  Michael Snyder  <msnyder@redhat.com>
 
        * lex.c (_cpp_clean_line): Add 'else' in inner loop.

instead.

Note, I'm not approving this since it's not my area :)

-eric

-- 
Eric Christopher <echristo@redhat.com>


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