Commit 338bcbd5 by Richard Henderson Committed by Richard Henderson

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
parent 5362b086
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> 2000-11-09 Geoffrey Keating <geoffk@redhat.com>
* gcc.c-torture/compile/20001109-1.c: New test. * gcc.c-torture/compile/20001109-1.c: New test.
......
...@@ -32,7 +32,7 @@ int main() ...@@ -32,7 +32,7 @@ int main()
/* When optimizing, all the above cases should be transformed into /* When optimizing, all the above cases should be transformed into
something else. So any remaining calls to the original function something else. So any remaining calls to the original function
should abort. */ should abort. */
char * static char *
strstr(const char *s1, const char *s2) strstr(const char *s1, const char *s2)
{ {
abort(); abort();
......
...@@ -40,7 +40,7 @@ int main() ...@@ -40,7 +40,7 @@ int main()
/* When optimizing, all the above cases should be transformed into /* When optimizing, all the above cases should be transformed into
something else. So any remaining calls to the original function something else. So any remaining calls to the original function
should abort. */ should abort. */
char * static char *
strpbrk(const char *s1, const char *s2) strpbrk(const char *s1, const char *s2)
{ {
abort(); abort();
......
...@@ -63,19 +63,19 @@ int main() ...@@ -63,19 +63,19 @@ int main()
/* When optimizing, all the above cases should be transformed into /* When optimizing, all the above cases should be transformed into
something else. So any remaining calls to the original function something else. So any remaining calls to the original function
should abort. */ should abort. */
__SIZE_TYPE__ static __SIZE_TYPE__
strlen (const char *s) strlen (const char *s)
{ {
abort (); abort ();
} }
int static int
strcmp (const char *s1, const char *s2) strcmp (const char *s1, const char *s2)
{ {
abort (); abort ();
} }
char * static char *
strrchr (const char *s, int c) strrchr (const char *s, int c)
{ {
abort (); abort ();
......
...@@ -28,7 +28,7 @@ int main() ...@@ -28,7 +28,7 @@ int main()
/* When optimizing, all the above cases should be transformed into /* When optimizing, all the above cases should be transformed into
something else. So any remaining calls to the original function something else. So any remaining calls to the original function
should abort. */ should abort. */
char * static char *
strchr (const char *s, int c) strchr (const char *s, int c)
{ {
abort (); abort ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment