Minor C/C++ parser clean-up request
Zack Weinberg
zack@codesourcery.com
Sun Jun 1 06:28:00 GMT 2003
Roger Sayle <roger@eyesopen.com> writes:
> If the parsers were tidied up such that statement trees were must
> be fully constructed before they are passed to "add_stmt", this
> routine could call "fold_stmt" itself, and allow it to do a much
> better task of maintaining DECL_NUM_STMTS. Indeed, if it knew
> nothing was going to change behind its back, it could use a better
> parameterized model of function size, estimating the number of
> instructions in the current function from the types of the
> folded statements being added.
>
>
> Might I propose a polite request that we try to move towards
> consistently building trees in a write-only bottom-up fashion.
I think this is a good idea. You should maybe talk to Neil Booth who
is looking at a C parser rewrite.
zw
More information about the Gcc
mailing list