aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgloop.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-06-10 07:30:45 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-06-10 07:30:45 +0000
commit200eafbfaeb8e4f9a14efa50c8427ab9004b6400 (patch)
tree600e87459eef1037790c2b70bf4c9d5a7106f49a /gcc/cfgloop.c
parent5eeb039f6ae9508caf0175cb6f2733aeb7f2c389 (diff)
downloadgcc-200eafbfaeb8e4f9a14efa50c8427ab9004b6400.zip
gcc-200eafbfaeb8e4f9a14efa50c8427ab9004b6400.tar.gz
gcc-200eafbfaeb8e4f9a14efa50c8427ab9004b6400.tar.bz2
re PR tree-optimization/71477 (gcc ICE at -O3 on valid code on x86_64-linux-gnu with “seg fault”)
2016-06-10 Richard Biener <rguenther@suse.de> PR middle-end/71477 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound. * gcc.dg/torture/pr71477.c: New testcase. From-SVN: r237287
Diffstat (limited to 'gcc/cfgloop.c')
-rw-r--r--gcc/cfgloop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c
index 27ccfb2..5650f0d 100644
--- a/gcc/cfgloop.c
+++ b/gcc/cfgloop.c
@@ -331,6 +331,7 @@ alloc_loop (void)
loop->exits->next = loop->exits->prev = loop->exits;
loop->can_be_parallel = false;
loop->nb_iterations_upper_bound = 0;
+ loop->nb_iterations_likely_upper_bound = 0;
loop->nb_iterations_estimate = 0;
return loop;
}