]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/31863 (g++-4.1: out of memory with -O1/-O2)
authorRichard Guenther <rguenther@suse.de>
Tue, 18 Sep 2007 11:22:47 +0000 (11:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 18 Sep 2007 11:22:47 +0000 (11:22 +0000)
2007-09-18  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/31863
* tree-ssa-structalias.c (create_variable_info_for): Always
free the fieldstack.

From-SVN: r128573

gcc/ChangeLog
gcc/tree-ssa-structalias.c

index f972d7b297bbb731fe8d3a652269be1682f08dfc..483ab37de8b1eb35d7639578eb366a33672f7cb4 100644 (file)
@@ -1,3 +1,9 @@
+2007-09-18  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/31863
+       * tree-ssa-structalias.c (create_variable_info_for): Always
+       free the fieldstack.
+
 2007-09-18  Dorit Nuzman  <dorit@il.ibm.com>
 
        * opts.c (decode_options): Enable vectorization under -O3.
index 3e588bdfcdb499ad046a061a08219f200337ba90..e2019f5e3f26f6f697ed3e6a51ab83edcab515a6 100644 (file)
@@ -4500,8 +4500,10 @@ create_variable_info_for (tree decl, const char *name)
 
          stats.total_vars++;
        }
-      VEC_free (fieldoff_s, heap, fieldstack);
     }
+
+  VEC_free (fieldoff_s, heap, fieldstack);
+
   return index;
 }