This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] New predicate covering NOP_EXPR and CONVERT_EXPR
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