From: Andrew Pinski Date: Fri, 24 Sep 2004 13:29:25 +0000 (+0000) Subject: re PR tree-optimization/17624 (ICE: SSA corruption (another one)) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4827be7a8d8a4ec0fc3aa093ec24c8e6190e8168;p=gcc.git re PR tree-optimization/17624 (ICE: SSA corruption (another one)) 2004-09-24 Andrew Pinski PR tree-opt/17624 * g++.dg/opt/pr17624.C: New test. From-SVN: r88034 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b687ac245aa..8b4d0716598 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-09-24 Andrew Pinski + + PR tree-opt/17624 + * g++.dg/opt/pr17624.C: New test. + 2004-09-24 Joseph S. Myers PR c/6980 diff --git a/gcc/testsuite/g++.dg/opt/pr17624.C b/gcc/testsuite/g++.dg/opt/pr17624.C new file mode 100644 index 00000000000..07fbf14da36 --- /dev/null +++ b/gcc/testsuite/g++.dg/opt/pr17624.C @@ -0,0 +1,23 @@ +// { dg-do compile } +// { dg-options "-O2" } + +extern void foo (void); +int c; +void foo (int n) +{ + int j = 0; + try + { + for(;;) + { + foo (); + if (j ++ == n) + break; + foo (); + } + } + catch (...) + { + c = j; + } +}