diff options
author | Richard Biener <rguenther@suse.de> | 2013-04-29 09:09:08 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2013-04-29 09:09:08 +0000 |
commit | ea78906a44deed40a23a5ef2362310e4d116c798 (patch) | |
tree | 05821b7b1c508f54cc00d84ecea7b4e4d56626c1 /gcc/loop-init.c | |
parent | 96cc0ef46bd4bfa5585a0ab900e76b11245e11b7 (diff) | |
download | gcc-ea78906a44deed40a23a5ef2362310e4d116c798.zip gcc-ea78906a44deed40a23a5ef2362310e4d116c798.tar.gz gcc-ea78906a44deed40a23a5ef2362310e4d116c798.tar.bz2 |
re PR tree-optimization/57081 (Segmentation fault in simple_iv (tree-scalar-evolution.c:3151))
2013-04-29 Richard Biener <rguenther@suse.de>
PR tree-optimization/57081
* loop-init.c: Include tree-flow.h.
(loop_optimizer_finalize): Free number of iteration estimates.
* Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
* gcc.dg/torture/pr57081.c: New testcase.
From-SVN: r198392
Diffstat (limited to 'gcc/loop-init.c')
-rw-r--r-- | gcc/loop-init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/loop-init.c b/gcc/loop-init.c index 664ff29..1f605c9 100644 --- a/gcc/loop-init.c +++ b/gcc/loop-init.c @@ -30,6 +30,7 @@ along with GCC; see the file COPYING3. If not see #include "flags.h" #include "df.h" #include "ggc.h" +#include "tree-flow.h" /* Apply FLAGS to the loop state. */ @@ -142,6 +143,8 @@ loop_optimizer_finalize (void) if (loops_state_satisfies_p (LOOPS_HAVE_RECORDED_EXITS)) release_recorded_exits (); + free_numbers_of_iterations_estimates (); + /* If we should preserve loop structure, do not free it but clear flags that advanced properties are there as we are not preserving that in full. */ |