[C++] Remove uses of TREE_COMPLEXITY from the C++ front end

Joseph S. Myers jsm@polyomino.org.uk
Tue Jun 15 21:28:00 GMT 2004


On Sat, 12 Jun 2004, Steven Bosscher wrote:

> The whole point is to remove it from the C front end eventually.
> I plan to do this by using a tree annotation for that, ie. some
> mechanism to allow the front ends to use tree annotations (but
> other suggestions are welcome).

I have a proposal for keeping this sort of information in separate
structures outside the trees altogether discussed in comment #15 to bug
14711 (and something similar proposed by Roger Sayle in
<http://gcc.gnu.org/ml/gcc-patches/2004-06/msg00332.html>) and slightly
expanded at <http://www.srcf.ucam.org/~jsm28/gcc/#parsestruct> but won't
object to use of tree annotations to provide at least an interim fix
(presuming they do provide the desired memory savings from getting rid of
this complexity field) that avoids the need for more wide-ranging
front-end changes of more general use.

-- 
Joseph S. Myers
jsm@polyomino.org.uk



More information about the Gcc-patches mailing list