aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2000-11-09 15:21:39 -0800
committerRichard Henderson <rth@gcc.gnu.org>2000-11-09 15:21:39 -0800
commit338bcbd5ca822c6fd3e4588cb2ea1ab788941aca (patch)
treecf752877233ae6cba5126e53767186811035b04e /gcc
parent5362b0866b3e17b4e0db2c427da4839dbad6ca03 (diff)
downloadgcc-338bcbd5ca822c6fd3e4588cb2ea1ab788941aca.zip
gcc-338bcbd5ca822c6fd3e4588cb2ea1ab788941aca.tar.gz
gcc-338bcbd5ca822c6fd3e4588cb2ea1ab788941aca.tar.bz2
string-opt-1.c: Make stub functions static.
* gcc.c-torture/execute/string-opt-1.c: Make stub functions static. * gcc.c-torture/execute/string-opt-2.c: Likewise. * gcc.c-torture/execute/string-opt-3.c: Likewise. * gcc.c-torture/execute/string-opt-4.c: Likewise. From-SVN: r37349
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/string-opt-1.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/string-opt-2.c2
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/string-opt-3.c6
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/string-opt-4.c2
5 files changed, 13 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4a45c4f..e7c7978 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2000-11-09 Richard Henderson <rth@redhat.com>
+
+ * gcc.c-torture/execute/string-opt-1.c: Make stub functions static.
+ * gcc.c-torture/execute/string-opt-2.c: Likewise.
+ * gcc.c-torture/execute/string-opt-3.c: Likewise.
+ * gcc.c-torture/execute/string-opt-4.c: Likewise.
+
2000-11-09 Geoffrey Keating <geoffk@redhat.com>
* gcc.c-torture/compile/20001109-1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/execute/string-opt-1.c b/gcc/testsuite/gcc.c-torture/execute/string-opt-1.c
index 3bbc471..058d594 100644
--- a/gcc/testsuite/gcc.c-torture/execute/string-opt-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/string-opt-1.c
@@ -32,7 +32,7 @@ int main()
/* When optimizing, all the above cases should be transformed into
something else. So any remaining calls to the original function
should abort. */
-char *
+static char *
strstr(const char *s1, const char *s2)
{
abort();
diff --git a/gcc/testsuite/gcc.c-torture/execute/string-opt-2.c b/gcc/testsuite/gcc.c-torture/execute/string-opt-2.c
index 87144de..29e9af0 100644
--- a/gcc/testsuite/gcc.c-torture/execute/string-opt-2.c
+++ b/gcc/testsuite/gcc.c-torture/execute/string-opt-2.c
@@ -40,7 +40,7 @@ int main()
/* When optimizing, all the above cases should be transformed into
something else. So any remaining calls to the original function
should abort. */
-char *
+static char *
strpbrk(const char *s1, const char *s2)
{
abort();
diff --git a/gcc/testsuite/gcc.c-torture/execute/string-opt-3.c b/gcc/testsuite/gcc.c-torture/execute/string-opt-3.c
index b2b9e1f..1321271 100644
--- a/gcc/testsuite/gcc.c-torture/execute/string-opt-3.c
+++ b/gcc/testsuite/gcc.c-torture/execute/string-opt-3.c
@@ -63,19 +63,19 @@ int main()
/* When optimizing, all the above cases should be transformed into
something else. So any remaining calls to the original function
should abort. */
-__SIZE_TYPE__
+static __SIZE_TYPE__
strlen (const char *s)
{
abort ();
}
-int
+static int
strcmp (const char *s1, const char *s2)
{
abort ();
}
-char *
+static char *
strrchr (const char *s, int c)
{
abort ();
diff --git a/gcc/testsuite/gcc.c-torture/execute/string-opt-4.c b/gcc/testsuite/gcc.c-torture/execute/string-opt-4.c
index a4c70cf..f07ab12 100644
--- a/gcc/testsuite/gcc.c-torture/execute/string-opt-4.c
+++ b/gcc/testsuite/gcc.c-torture/execute/string-opt-4.c
@@ -28,7 +28,7 @@ int main()
/* When optimizing, all the above cases should be transformed into
something else. So any remaining calls to the original function
should abort. */
-char *
+static char *
strchr (const char *s, int c)
{
abort ();