summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-06 00:26:24 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-06 00:26:24 +0000
commita9a6a36ac96b3ba62f6e9b600e3f5ae6a792b930 (patch)
tree18a3fbf2443d59e9e239adab8773707e4ce0629a /gcc
parentca8f4a0daa56c7195c78e37266c2f27c233a1aa2 (diff)
downloadgcc-a9a6a36ac96b3ba62f6e9b600e3f5ae6a792b930.tar.gz
2007-01-05 Andrew Pinski <Andrew_Pinski@playstation.sony.com>
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/torture/inline-1.c16
2 files changed, 21 insertions, 0 deletions
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 <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
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);
+}