re PR tree-optimization/59745 (internal compiler error: tree check: expected tree...
authorJakub Jelinek <jakub@redhat.com>
Fri, 10 Jan 2014 20:37:52 +0000 (21:37 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 10 Jan 2014 20:37:52 +0000 (21:37 +0100)
PR tree-optimization/59745
* tree-predcom.c (tree_predictive_commoning_loop): Call
free_affine_expand_cache if giving up because components is NULL.

From-SVN: r206540

gcc/ChangeLog
gcc/tree-predcom.c

index 6be0557..73a7edf 100644 (file)
@@ -1,5 +1,9 @@
 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
 
+       PR tree-optimization/59745
+       * tree-predcom.c (tree_predictive_commoning_loop): Call
+       free_affine_expand_cache if giving up because components is NULL.
+
        * target-globals.c (save_target_globals): Allocate < 4KB structs using
        GC in payload of target_globals struct instead of allocating them on
        the heap and the larger structs separately using GC.
index 7169b2f..730bad4 100644 (file)
@@ -2447,6 +2447,7 @@ tree_predictive_commoning_loop (struct loop *loop)
   if (!components)
     {
       free_data_refs (datarefs);
+      free_affine_expand_cache (&name_expansions);
       return false;
     }