From bf1abda157fc40b9020da82ea35c087f2a442a95 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 10 May 2016 12:17:58 +0200 Subject: [PATCH] Handle memory leak in tree-inline.c. * tree-inline.c (remap_dependence_clique): Do not remap debugging statements. From-SVN: r236070 --- gcc/ChangeLog | 5 +++++ gcc/tree-inline.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 209305005e2..38b3869bce2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-05-10 Martin Liska + + * tree-inline.c (remap_dependence_clique): Do not remap + debugging statements. + 2016-05-10 Andreas Krebbel * config/s390/s390.md ("*vec_cmpdf_cconly") diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 2ee3f630b14..e571140d9db 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -840,7 +840,7 @@ is_parm (tree decl) static unsigned short remap_dependence_clique (copy_body_data *id, unsigned short clique) { - if (clique == 0) + if (clique == 0 || processing_debug_stmt) return 0; if (!id->dependence_map) id->dependence_map = new hash_map; -- 2.30.2