This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 9/N] Fix memory leak tree-if-conv.c
- From: Martin LiÅka <mliska at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 8 Dec 2015 12:32:07 +0100
- Subject: [PATCH 9/N] Fix memory leak tree-if-conv.c
- Authentication-results: sourceware.org; auth=none
- References: <cover dot 1448286565 dot git dot mliska at suse dot cz>
Hello.
Simple memory leak fix.
Patch can bootstrap and survives regression tests on x86_64-unknown-linux-gnu.
Ready for trunk?
Martin
>From f2f533ec19b36a9ead2f72b148d1aeed074ef136 Mon Sep 17 00:00:00 2001
From: marxin <marxin.liska@gmail.com>
Date: Sat, 28 Nov 2015 08:42:14 +0100
Subject: [PATCH 2/2] Fix memory leak in tree-if-conv.c
gcc/ChangeLog:
2015-12-07 Martin Liska <mliska@suse.cz>
* tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
---
gcc/tree-if-conv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c
index f43942d..05e4e13 100644
--- a/gcc/tree-if-conv.c
+++ b/gcc/tree-if-conv.c
@@ -2566,7 +2566,7 @@ ifcvt_local_dce (basic_block bb)
gimple *stmt1;
gimple *phi;
gimple_stmt_iterator gsi;
- vec<gimple *> worklist;
+ auto_vec<gimple *> worklist;
enum gimple_code code;
use_operand_p use_p;
imm_use_iterator imm_iter;
--
2.6.3