From 338bcbd5ca822c6fd3e4588cb2ea1ab788941aca Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 9 Nov 2000 15:21:39 -0800 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.c-torture/execute/string-opt-1.c | 2 +- gcc/testsuite/gcc.c-torture/execute/string-opt-2.c | 2 +- gcc/testsuite/gcc.c-torture/execute/string-opt-3.c | 6 +++--- gcc/testsuite/gcc.c-torture/execute/string-opt-4.c | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4a45c4f9771..e7c7978e09b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2000-11-09 Richard Henderson + + * 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 * 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 3bbc471f850..058d5943f58 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 87144ded67c..29e9af07d91 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 b2b9e1fe7d9..132127137cd 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 a4c70cfda6b..f07ab12dfb7 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 (); -- 2.30.2