From: Jakub Jelinek Date: Fri, 10 Jan 2014 20:37:52 +0000 (+0100) Subject: re PR tree-optimization/59745 (internal compiler error: tree check: expected tree... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f87d581ad82c70d70ad3a8e94ca5649824b4203;p=gcc.git re PR tree-optimization/59745 (internal compiler error: tree check: expected tree that contains 'typed' structure, have '' 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6be05570c14..73a7edff175 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2014-01-10 Jakub Jelinek + 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 7169b2f68f5..730bad46aa4 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; }