This is the mail archive of the gcc@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: Minor C/C++ parser clean-up request


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


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