From patchwork Tue Jun 15 10:33:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PR,44464] Add a missing call to release_ssa_name Date: Tue, 15 Jun 2010 00:33:53 -0000 From: Martin Jambor X-Patchwork-Id: 55630 Message-Id: <20100615103353.GB12135@virgil.suse.cz> To: GCC Patches Cc: Richard Guenther Hi, the patch below fixes PR 44464. IPA-SRA currently leaves behind a danglig reference to old PARAM_DECLs in dead but still existing SSA_NAMEs which means we can bump into it unexpectedly later on like in the bug. Releasing the SSA_NAMEs appropriately deals with these problems. Bootstrapped and tested on x86-64-linux without any problems. OK for trunk and later on for the 4.5 branch too? Thanks, Martin 2010-06-14 Martin Jambor PR lto/44464 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name on the newly dead SSA name. Index: mine/gcc/tree-sra.c =================================================================== --- mine.orig/gcc/tree-sra.c +++ mine/gcc/tree-sra.c @@ -3883,6 +3883,7 @@ replace_removed_params_ssa_names (gimple gimple_phi_set_result (stmt, name); replace_uses_by (lhs, name); + release_ssa_name (lhs); return true; }