diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-06-17 18:05:56 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-06-17 18:05:56 +0000 |
commit | 7e6da23d65593171883995ccc39eeb53753a6079 (patch) | |
tree | bace692f7d5a16425330225c319bcda7c586ba3b | |
parent | 5acbc91d07782bea8af451ea9dda6a525192da48 (diff) | |
download | gcc-7e6da23d65593171883995ccc39eeb53753a6079.tar.gz |
Fix memory leak in tree-ssa-reassoc.c
* tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237559 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/tree-ssa-reassoc.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a93464d33a7..42850c61b44 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2016-06-17 Martin Liska <mliska@suse.cz> + * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec. + +2016-06-17 Martin Liska <mliska@suse.cz> + * predict.def: PRED_LOOP_EXIT from 92 to 85. 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com> diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index e32d503bfef..cdfe06fbfae 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -1807,7 +1807,7 @@ transform_add_to_multiply (vec<operand_entry *> *ops) tree op = NULL_TREE; int j; int i, start = -1, end = 0, count = 0; - vec<std::pair <int, int> > indxs = vNULL; + auto_vec<std::pair <int, int> > indxs; bool changed = false; if (!INTEGRAL_TYPE_P (TREE_TYPE ((*ops)[0]->op)) |