This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa-branch]: Patch to make sure simplified pieces offor_expr is unshared.
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 27 Jul 2002 09:18:36 -0400 (EDT)
- Subject: Re: [tree-ssa-branch]: Patch to make sure simplified pieces offor_expr is unshared.
- Reply-to: dberlin at dberlin dot org
On Sat, 27 Jul 2002, Jason Merrill wrote:
> You should only need to copy it the first time.
Then it would just be shared elsewhere (I tested this, and it was).
Remember, we are asking for a tree that is on the list of trees to add to
pre-conditions/etc.
Thus, it'll be added somewhere else *besides* EXPR_STMT_EXPR
(FOR_INIT_STMT) and FOR_EXPR (stmt).
If you don't copy it in both cases, one of them will still be shared.
>
> Jason
>
>