2007-01-05 Andrew Pinski <Andrew_Pinski@playstation.sony.com>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Jan 2007 00:26:24 +0000 (00:26 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Jan 2007 00:26:24 +0000 (00:26 +0000)
        PR tree-opt/30385
        * gcc.dg/torture/inline-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120519 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 5372427..783d2c6 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);
+}