This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Simplifying TARGET_EXPR
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Richard Henderson <rth at redhat dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Sun, 21 Jul 2002 14:30:15 -0700
- Subject: Re: [tree-ssa] Simplifying TARGET_EXPR
--On Saturday, July 20, 2002 05:09:42 PM +0100 Jason Merrill
<jason@redhat.com> wrote:
I'm interested in what y'all think about the second issue; it's something
I've run into previously when thinking about expanding NEW_EXPR.
One problem with (b) is that using it requires the frontend to know about
passing by invisible reference.
I think (b) is by far better than (a).
(What I'd really like to see is the elimination of TARGET_EXPR in the
front end before we reach the optimizers and code generators. This
might miss some opportunities for elimination of copy constructors,
but, in practice, very few. And, to be honest, I'm nervous about the
compiler changing the number of objects constructed and destructed
when optimization is enabled; that makes debugging optimized code
that much harder.)
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com