Handle memory leak in tree-inline.c.
authorMartin Liska <mliska@suse.cz>
Tue, 10 May 2016 10:17:58 +0000 (12:17 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 10 May 2016 10:17:58 +0000 (10:17 +0000)
* tree-inline.c (remap_dependence_clique): Do not remap
debugging statements.

From-SVN: r236070

gcc/ChangeLog
gcc/tree-inline.c

index 209305005e2f152e3a6f7ea35ebda1bf1ccd0361..38b3869bce20cc9f649c5e2a9ed13a2aa3fc7580 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-10  Martin Liska  <mliska@suse.cz>
+
+       * tree-inline.c (remap_dependence_clique): Do not remap
+       debugging statements.
+
 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
 
        * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
index 2ee3f630b147e31db1fb42343ba0e24f655804b2..e571140d9dbbdde276b370a45e19600fdc86e975 100644 (file)
@@ -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<dependence_hash, unsigned short>;