re PR bootstrap/30385 (IMM ERROR while building stage2-libiberty)

2007-01-05  Andrew Pinski  <Andrew_Pinski@playstation.sony.com>

        PR tree-opt/30385
        * gcc.dg/torture/inline-1.c: New test.

From-SVN: r120519
This commit is contained in:
Andrew Pinski 2007-01-05 16:26:24 -08:00 committed by Andrew Pinski
parent 05abfbf20b
commit 70973361c1
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-01-05 Andrew Pinski <Andrew_Pinski@playstation.sony.com>
PR tree-opt/30385
* gcc.dg/torture/inline-1.c: New test.
2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c/19978

View File

@ -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);
}