This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[testcase] C tree inlining ICE


Hi!

This testcase ICEs with tree inlining (distilled from glibc).
Ok to commit?

2001-10-15  Jakub Jelinek  <jakub@redhat.com>

	* gcc.dg/20011015-3.c: New test.

--- gcc/testsuite/gcc.dg/20011015-3.c.jj	Mon Oct 15 16:14:43 2001
+++ gcc/testsuite/gcc.dg/20011015-3.c	Mon Oct 15 16:14:27 2001
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+/* { dg-options "-O3 -std=gnu99" } */
+
+char foo (char *x)
+{
+  return *x;
+}
+
+void bar (char *x)
+{
+  void *arr[foo (x)] __attribute__((unused));
+}
+
+void baz (char *x)
+{
+  bar (x);
+}

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]