aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2015-10-26 09:36:04 -0600
committerJeff Law <law@gcc.gnu.org>2015-10-26 09:36:04 -0600
commitc67e5194634c5c3dfd16580e862fb9d4a4552bc9 (patch)
treea68e04085366e1abc4cc40f951f5ad25faa89a6e /gcc/testsuite/gcc.c-torture/compile
parent335dde2981e5680619d25bf934527c9549959569 (diff)
downloadgcc-c67e5194634c5c3dfd16580e862fb9d4a4552bc9.zip
gcc-c67e5194634c5c3dfd16580e862fb9d4a4552bc9.tar.gz
gcc-c67e5194634c5c3dfd16580e862fb9d4a4552bc9.tar.bz2
[PATCH] [PR tree-optimization/68013] Make sure first block in FSM path
is in VISITED_BBs PR tree-optimization/68013 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths): Make sure the first block in the path is in VISITED_BBs. PR tree-optimization/68013 * gcc.c-torture/compile/pr68013.c: New test. From-SVN: r229375
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr68013.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr68013.c b/gcc/testsuite/gcc.c-torture/compile/pr68013.c
new file mode 100644
index 0000000..cc500da
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr68013.c
@@ -0,0 +1,16 @@
+int a, b, c, d, e, f;
+
+void
+fn1 ()
+{
+ for (; e;)
+ {
+ e = f;
+ for (; b;)
+ {
+ b = a;
+ f = a || d ? 0 : c;
+ }
+ d = 0;
+ }
+}