aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2014-01-10 21:37:52 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2014-01-10 21:37:52 +0100
commit4f87d581ad82c70d70ad3a8e94ca5649824b4203 (patch)
tree68034880d924ba6b6ddf0152dd85ba5172f0e3df /gcc
parent5da969605f3461b0df9cbf950a5fc59841a83dde (diff)
downloadgcc-4f87d581ad82c70d70ad3a8e94ca5649824b4203.zip
gcc-4f87d581ad82c70d70ad3a8e94ca5649824b4203.tar.gz
gcc-4f87d581ad82c70d70ad3a8e94ca5649824b4203.tar.bz2
re PR tree-optimization/59745 (internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492)
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-predcom.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6be0557..73a7edf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c
index 7169b2f..730bad4 100644
--- a/gcc/tree-predcom.c
+++ b/gcc/tree-predcom.c
@@ -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;
}