This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testcase] C tree inlining ICE
- To: aoliva at redhat dot com
- Subject: [testcase] C tree inlining ICE
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Mon, 15 Oct 2001 16:09:29 +0200
- Cc: gcc-patches at gcc dot gnu dot org
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
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