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: Patches to remove TREE_COMPLEXITY for C and C++


On Mon, 19 Jul 2004, Per Bothner wrote:

> > Whereas it would be really nice if the complexity
> > field could go away in 3.5.  So I'd encourage doing this work now.
> 
> Well, it's quite a hefty amount of work to do as an unpaid volunteer.
> A complication is that name resolution uses EXPR_WITH_FILE_LOCATION
> in a rather kludgy way.  It was written by Alex Petit-Bianco, and
> I don't know if anyone understands the code - I don't.

Likewise.  The reimplementation of (the parts that used to be implemented
of) -Wparentheses for C++ was simple enough and fitted closely enough in
my patch to include it.  Getting rid of the many uses in Java seemed large
and unrelated enough that it seemed best not to try to get the final
removal of TREE_COMPLEXITY in the patch.  Even without it there was the
0.6% compile-time improvement for C I noted - small, but not in the noise.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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