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++


Zack Weinberg wrote:

We don't yet know if we're picking up one of those compilers, but I
think it's a safe bet that we aren't doing it for 3.5 - not when we're
already in stage 2.

Well, plugging in the Eclipse compiler, as a separate pass, should be a modest project technically. Since I think using the Eclipse compiler (either as a stand-alone pass or somehow linked in) is the best long-term solution, I think it would be good to explore that.

Of course there are political complications due to licenses and
copyrights, but I don't think there are any *legal* problems.

The bytecode-to-native compiler would still need to be changed,
of course, but that's a much more modest project.

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. -- --Per Bothner per@bothner.com http://per.bothner.com/


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