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: [RFC / Patch] C++/26099 or front-end support to type traits


> For ideas, please see the below patch.  I glanced at the C++ front end,
> I see 8 tree codes (all the tcc_type codes) that you can reclaim using
> the technique below.

This is good.  But the reason Paolo says he's certainly going to
need one tree code, is that his TRAIT_EXPR has to go through the
template machinery and that's a place that uses tree codes like
nothing else.  See for example OFFSETOF_EXPR.

I guess freeing 7 tree codes using the technique in your patch
would be more interesting than asking Paolo to redesign his patch
to not lose 1 code.

Paolo


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