ANSIfy cp/parser.c

Nathanael Nerode neroden@twcny.rr.com
Sat Jan 11 18:28:00 GMT 2003


Neil Booth wrote:
> Gabriel Dos Reis wrote:-
>>Yeah, the topic of going away from the "everything is a tree" paradigm
>>has been sporadically mentioned, but there seems to be no much thought
>>on it...
> 
> 
> I believe it's 60% of the cause of GCC's current fragility, and that
> reducing its influence or ridding ourselves of it entirely will help
> improve GCC's quality tremendously.

Here's a thought. :-)

Start by splitting the 'tree' type into a 'code tree' type and a 
'declaration tree' type.  The confusion between these two seems to me to 
cause the most trouble. :-(  They're also the two which actually need 
some type of arbitrarily deep, polymorphic data structure; nothing else 
does.  Convert everything which isn't one of these (shouldn't be too 
much) into other types.

For the first pass, the 'code tree' and 'declaration tree' types can be 
intermungable to a certain extent, and we can try to disentangle them 
bit by bit.

--Nathanael



More information about the Gcc-patches mailing list