From 1b45f2600e276565fc59a092f9d38493d605da54 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 17 Jan 2018 12:04:11 +0100 Subject: [PATCH] re PR rtl-optimization/83771 (ICE: verify_flow_info failed (error: non-cold basic block 3 reachable only by paths crossing the cold partition)) PR rtl-optimization/83771 * gcc.dg/pr83771.c: New test. From-SVN: r256781 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/pr83771.c | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/pr83771.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 448b44a9caa..9449d5e8f69 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-01-17 Jakub Jelinek + + PR rtl-optimization/83771 + * gcc.dg/pr83771.c: New test. + 2018-01-17 Eric Botcazou PR tree-optimization/81184 diff --git a/gcc/testsuite/gcc.dg/pr83771.c b/gcc/testsuite/gcc.dg/pr83771.c new file mode 100644 index 00000000000..a5a386e20eb --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr83771.c @@ -0,0 +1,19 @@ +/* PR rtl-optimization/83771 */ +/* { dg-do compile } */ +/* { dg-options "-O3 -fmodulo-sched -fno-ssa-phiopt" } */ + +long int a; +int b; +int foo (int); + +void +bar (void) +{ + int c; + do + { + c = a / (!!b == 1); + c = !!c + 1; + } + while (foo (c) < 1); +} -- 2.30.2