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: RFC: Faster cp_lexer_peek_token [revised]


Zack Weinberg <zack@codesourcery.com> writes:

| This patch is a revised version of the one I posted this morning,
| <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02284.html>.  See that
| message for discussion of the basic change and why it is a good idea.
| 
| The revisions correct all of the regressions in the test suite which I
| observed via testing on powerpc-darwin.  I'm going to do overnight
| testing on amd64-linux too.  Most of the regressions were due to error
| messages moving, and in many cases I decided that the new locations
| were better.  In particular, given a typical function definition
| 
| return_type function(argument list)
| {
|   body
| }
| 
| if g++ found something objectionable about the head, the diagnostic
| used to issue on the line of the opening brace; now it appears on the
| line of the head itself.  I think this is better.  

As the diagnostic maintainer, I applaude for this move.  I leave the
other C++ bits for Jason and Mark to comment on.

-- Gaby


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