From: Jakub Jelinek Date: Wed, 17 Jan 2018 11:04:11 +0000 (+0100) Subject: re PR rtl-optimization/83771 (ICE: verify_flow_info failed (error: non-cold basic... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b45f2600e276565fc59a092f9d38493d605da54;p=gcc.git 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 --- 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); +}