This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ast-optimizer-branch]: Simplify STMT_EXPR's
On Thu, 02 May 2002, Richard Henderson wrote:
> On Thu, May 02, 2002 at 03:12:52PM -0400, Daniel Berlin wrote:
> > > > a
> > > > b = ({<.....> <value>})
> > > >
> > > > becomes
> > > >
> > > > a
> > > > {<....> <new temporary> = <value>}
> > > > b = <new temporary>
>
> Doesn't this mean we have to come up with sensible semantics for
> C++ types with destructors here, wrt lifetime ot temporaries?
>
C++ is another can of worms. Particularly since SIMPLE doesn't
deal with C++. We should probably look at Jimple (the Java
version of SIMPLE).
Diego.