This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix stmt updating in PRE
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, rguenther at suse dot de
- Date: Sat, 11 Apr 2009 17:49:25 +0200
- Subject: Re: Fix stmt updating in PRE
- References: <20090411121359.GD32589@kam.mff.cuni.cz>
On Sat, Apr 11, 2009 at 2:14 PM, Jan Hubicka <hubicka@ucw.cz> wrote:
> Hi,
> on pretty-ipa we commonly segfault on C++ code because of the following
> bug. ?I am re-testing on mainline and will commit as obvious if it
> succeeds.
Doh.
> Honza
> ? ? ? ?* tree-ssa-pre.c (elliminate): Fix call of update_stmt.
eliminate
Thanks,
Richard.
> Index: tree-ssa-pre.c
> ===================================================================
> --- tree-ssa-pre.c ? ? ?(revision 145956)
> +++ tree-ssa-pre.c ? ? ?(working copy)
> @@ -4209,7 +4209,7 @@
> ? ? ? ? ?&& single_imm_use (lhs, &use_p, &use_stmt))
> ? ? ? ?{
> ? ? ? ? ?SET_USE (use_p, gimple_assign_rhs1 (stmt));
> - ? ? ? ? update_stmt (stmt);
> + ? ? ? ? update_stmt (use_stmt);
> ? ? ? ?}
>
> ? ? ? /* If this is a store or a now unused copy, remove it. ?*/
>