[PATCH] New predicate covering NOP_EXPR and CONVERT_EXPR

Giovanni Bajo rasky@develer.com
Fri Dec 2 18:59:00 GMT 2005


Richard Guenther <rguenther@suse.de> wrote:

> I'll try to get the number of these required changes down by using
> fold_convert where appropriate in various places.

Make sure to not introduce more calls to fold() (or fold_convert()) within
the C++ frontend, though: we've long being agreeing that we should remove
all uses of fold() in the C++ frontend, so introducing more would just make
that project harder in future.

I think Mark mentioned that he was working on a C++-specific cxx_fold() that
was able to do constant expression folding as allowed by the C++ rules
(which is exactly what we need, and nothing more). Not sure if that patch
ever finished.
-- 
Giovanni Bajo



More information about the Java-patches mailing list