From 7af9b2ff1969d36bcaf779b6f2a7ecc08806cb60 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 8 Oct 2015 14:47:46 -0600 Subject: [PATCH] [PATCH] [3/n] Fix minor SSA_NAME leaks * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to unlink_stmt_vdef and release_ssa_name_fn. From-SVN: r228625 --- gcc/ChangeLog | 3 +++ gcc/tree-stdarg.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 64309c19900..31e2f3000c0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2015-10-08 Jeff Law + * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to + unlink_stmt_vdef and release_ssa_name_fn. + * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to release_defs. diff --git a/gcc/tree-stdarg.c b/gcc/tree-stdarg.c index d69fa060497..3e6d98c686c 100644 --- a/gcc/tree-stdarg.c +++ b/gcc/tree-stdarg.c @@ -1080,6 +1080,8 @@ expand_ifn_va_arg_1 (function *fun) /* Remove the IFN_VA_ARG gimple_call. It's the last stmt in the bb. */ + unlink_stmt_vdef (stmt); + release_ssa_name_fn (fun, gimple_vdef (stmt)); gsi_remove (&i, true); gcc_assert (gsi_end_p (i)); -- 2.30.2