This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Cleanups of TARGET_EXPR
- From: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 6 Jan 2006 21:19:19 +0100
- Subject: Cleanups of TARGET_EXPR
Hello,
what exactly is the semantics of the cleanup for TARGET_EXPR?
Documentation says:
> Often, a @code{TARGET_EXPR} occurs on the right-hand side of an
> assignment, or as the second operand to a comma-expression which is
> itself the right-hand side of an assignment, etc. In this case, we say
> that the @code{TARGET_EXPR} is ``normal''; otherwise, we say it is
> ``orphaned''.
...
> If this expression is orphaned, then this expression must be executed
> when the statement containing this expression is complete.
What does "etc." in the definition of ``normal'' mean? Is say target_expr in
a = b ? TARGET_EXPR : something;
orphaned? If TARGET_EXPR is not orphaned, is it allowed to run its cleanup?
Zdenek