From: Andrew Pinski Date: Sat, 6 Jan 2007 00:26:24 +0000 (-0800) Subject: re PR bootstrap/30385 (IMM ERROR while building stage2-libiberty) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70973361c13cf27b33d9a19d9aad18c585bfdda7;p=gcc.git re PR bootstrap/30385 (IMM ERROR while building stage2-libiberty) 2007-01-05 Andrew Pinski PR tree-opt/30385 * gcc.dg/torture/inline-1.c: New test. From-SVN: r120519 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5372427a7cf..783d2c61cd5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-01-05 Andrew Pinski + + PR tree-opt/30385 + * gcc.dg/torture/inline-1.c: New test. + 2007-01-05 Manuel Lopez-Ibanez PR c/19978 diff --git a/gcc/testsuite/gcc.dg/torture/inline-1.c b/gcc/testsuite/gcc.dg/torture/inline-1.c new file mode 100644 index 00000000000..c7144ca68e9 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/inline-1.c @@ -0,0 +1,16 @@ +/* { dg-do compile } */ +/* { dg-options "--param ggc-min-heapsize=0 --param ggc-min-expand=0" } */ +/* This used to ICE because we forgot to update the statement after folding + and the eh info. */ +/* PR tree-opt/30385 */ + +static inline void g(int t) +{ + int a; + while (a < f()) + ; +} +void h(int t) +{ + g(t); +}