]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Fri, 3 May 2002 20:46:23 +0000 (20:46 +0000)
committerNo Author <no-author@gcc.gnu.org>
Fri, 3 May 2002 20:46:23 +0000 (20:46 +0000)
'gcc-3_1-branch'.

From-SVN: r53126

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

diff --git a/gcc/testsuite/gcc.dg/20020503-1.c b/gcc/testsuite/gcc.dg/20020503-1.c
new file mode 100644 (file)
index 0000000..5f9168e
--- /dev/null
@@ -0,0 +1,12 @@
+/* PR target/6542
+   This testcase caused ICE on SPARC because the function uses no registers
+   after optimizing, so even if -mflat make all registers not permitted
+   for leaf functions, the function was still leaf, but LEAF_REG_REMAP
+   returned -1 for some registers (like %o0).  */
+/* { dg-do compile } */
+/* { do-options "-O2 -g" } */
+/* { do-options "-O2 -g -mflat" { target sparc*-*-* } } */
+
+void foo (char *a, char *b, char *c, char *d)
+{
+}