This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ patch] Fix sharing problem
- From: Jason Merrill <jason at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 03 Jan 2004 22:28:51 -0500
- Subject: Re: [C++ patch] Fix sharing problem
- References: <20040103175031.GC11524@kam.mff.cuni.cz>
On Sat, 3 Jan 2004 18:50:31 +0100, Jan Hubicka <jh@suse.cz> wrote:
> ! args = TREE_CHAIN (cxx_unsave_expr_now (TREE_OPERAND (call_expr, 1)));
This is wrong; it will reevaluate any calls in the placement argument. The
stabilize_call patch on the tree-ssa branch fixes the sharing problem; I
didn't apply it to the trunk because I didn't think it was fixing a bug.
Perhaps I should do so.
Jason