aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-11-25 04:27:59 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-11-25 04:27:59 +0000
commit9eca082e508996b79dd3788d6223cded6055841b (patch)
treee343de9db05ef3f6fd154c886ed657eed0aec455 /gcc/testsuite
parent3a163b1a99ff25ae2d6ce3e901fbf2656498a0ce (diff)
downloadgcc-9eca082e508996b79dd3788d6223cded6055841b.zip
gcc-9eca082e508996b79dd3788d6223cded6055841b.tar.gz
gcc-9eca082e508996b79dd3788d6223cded6055841b.tar.bz2
* gcc.c-torture/compile/20001123-2.c: New.
From-SVN: r37729
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20001123-2.c21
2 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 10385ce..586f941 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2000-11-25 Alexandre Oliva <aoliva@redhat.com>
+
+ * gcc.c-torture/compile/20001123-2.c: New.
+
2000-11-24 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* g++.old-dega/g++.pt/ttp62.C: Call abort() on failure.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20001123-2.c b/gcc/testsuite/gcc.c-torture/compile/20001123-2.c
new file mode 100644
index 0000000..dcb5dd1
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20001123-2.c
@@ -0,0 +1,21 @@
+/* Copyright 2000 Free Software Foundation
+
+ by Alexandre Oliva <aoliva@redhat.com>
+
+ Based on zlib/gzio.c.
+
+ This used to generate duplicate labels when compiled with
+ sh-elf-gcc -O2 -m3 -fPIC.
+
+ Bug reported by NIIBE Yutaka <gniibe@m17n.org>. */
+
+void foo (void);
+
+void
+bar ()
+{
+ unsigned len;
+
+ for (len = 0; len < 2; len++)
+ foo ();
+}