re PR bootstrap/30385 (IMM ERROR while building stage2-libiberty)
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Sat, 6 Jan 2007 00:26:24 +0000 (16:26 -0800)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sat, 6 Jan 2007 00:26:24 +0000 (16:26 -0800)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/inline-1.c [new file with mode: 0644]

index 5372427a7cfc32d3761a0259d7685ac910129b20..783d2c61cd589813adcf1362bf38eb9825e1c7dc 100644 (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
diff --git a/gcc/testsuite/gcc.dg/torture/inline-1.c b/gcc/testsuite/gcc.dg/torture/inline-1.c
new file mode 100644 (file)
index 0000000..c7144ca
--- /dev/null
@@ -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);
+}