summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/builtins
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-01 13:31:28 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-01 13:31:28 +0000
commit58e292f16c246d3565af35ec0b3f1c7a6b32bfb6 (patch)
tree6350f5e172983061717f38f17739924605236101 /gcc/testsuite/gcc.c-torture/execute/builtins
parentfeefddd666cf6e78c27e2867e1929eab6dc499e9 (diff)
downloadgcc-58e292f16c246d3565af35ec0b3f1c7a6b32bfb6.tar.gz
* gcc.c-torture/execute/builtins/abs-1-lib.c,
gcc.c-torture/execute/builtins/fputs-lib.c, gcc.c-torture/execute/builtins/lib/fprintf.c, gcc.c-torture/execute/builtins/lib/main.c, gcc.c-torture/execute/builtins/lib/memcmp.c, gcc.c-torture/execute/builtins/lib/memmove.c, gcc.c-torture/execute/builtins/lib/mempcpy.c, gcc.c-torture/execute/builtins/lib/memset.c, gcc.c-torture/execute/builtins/lib/printf.c, gcc.c-torture/execute/builtins/lib/sprintf.c, gcc.c-torture/execute/builtins/lib/stpcpy.c, gcc.c-torture/execute/builtins/lib/strchr.c, gcc.c-torture/execute/builtins/lib/strcmp.c, gcc.c-torture/execute/builtins/lib/strcpy.c, gcc.c-torture/execute/builtins/lib/strcspn.c, gcc.c-torture/execute/builtins/lib/strlen.c, gcc.c-torture/execute/builtins/lib/strncat.c, gcc.c-torture/execute/builtins/lib/strncmp.c, gcc.c-torture/execute/builtins/lib/strncpy.c, gcc.c-torture/execute/builtins/lib/strrchr.c, gcc.c-torture/execute/builtins/lib/strspn.c, gcc.c-torture/execute/builtins/lib/strstr.c, gcc.c-torture/execute/builtins/memops-asm-lib.c, gcc.c-torture/execute/builtins/strlen-2.c, gcc.c-torture/execute/builtins/strstr-asm-lib.c: Add missing prototypes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97385 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/builtins')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/abs-1-lib.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/fputs-lib.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/fprintf.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/memcmp.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/memmove.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/mempcpy.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/memset.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/printf.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/stpcpy.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/strchr.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcmp.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcpy.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcspn.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/strlen.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncat.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncmp.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncpy.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/strrchr.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/strspn.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/lib/strstr.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm-lib.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/strlen-2.c1
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/builtins/strstr-asm-lib.c8
25 files changed, 31 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/abs-1-lib.c b/gcc/testsuite/gcc.c-torture/execute/builtins/abs-1-lib.c
index 9891e10c039..57446b263c9 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/abs-1-lib.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/abs-1-lib.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int abs_called;
extern int inside_main;
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/fputs-lib.c b/gcc/testsuite/gcc.c-torture/execute/builtins/fputs-lib.c
index 48a955309c1..beb8325fca5 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/fputs-lib.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/fputs-lib.c
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stddef.h>
+extern void abort (void);
extern int inside_main;
extern size_t strlen(const char *);
int
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/fprintf.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/fprintf.c
index 80c240cc8e7..f32cf3a050b 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/fprintf.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/fprintf.c
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdarg.h>
+extern void abort (void);
extern int inside_main;
int
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c
index 6f3c3170cc1..1ca606565a8 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/main.c
@@ -1,3 +1,4 @@
+extern void abort(void);
extern void main_test (void);
int inside_main;
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/memcmp.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/memcmp.c
index c8c70f9c3d8..94c0a576634 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/memcmp.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/memcmp.c
@@ -1,3 +1,4 @@
+extern void abort(void);
extern int inside_main;
int
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/memmove.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/memmove.c
index 8cfa0701d45..03faf5e6262 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/memmove.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/memmove.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
void *
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/mempcpy.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/mempcpy.c
index e202594073f..67ee3cbe413 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/mempcpy.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/mempcpy.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
void *
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/memset.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/memset.c
index d5326ffeb2b..615dff6e7c0 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/memset.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/memset.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
void *
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/printf.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/printf.c
index be2a63bc61e..e67003e1dd4 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/printf.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/printf.c
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdarg.h>
+extern void abort (void);
extern int inside_main;
int
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c
index 0c0cd5b9345..7aa2fd71530 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdarg.h>
+extern void abort (void);
extern int inside_main;
int
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/stpcpy.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/stpcpy.c
index b0961b6cc16..e6e1a6dae9c 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/stpcpy.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/stpcpy.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
char *
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strchr.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strchr.c
index f0c7f0fc4c5..7ca78d1f356 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strchr.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strchr.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
char *
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcmp.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcmp.c
index 61eb250166a..220499ab317 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcmp.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcmp.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
int
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcpy.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcpy.c
index 0ee27c669ac..45c6a45e4da 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcpy.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcpy.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
char *
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcspn.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcspn.c
index 767c89a6351..53f609114bb 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcspn.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strcspn.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
__SIZE_TYPE__
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strlen.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strlen.c
index 7b89945837f..3ead79d1de5 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strlen.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strlen.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
__SIZE_TYPE__
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncat.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncat.c
index 59d3cc0ae0a..84f26260792 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncat.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncat.c
@@ -1,3 +1,4 @@
+extern void abort(void);
extern int inside_main;
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncmp.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncmp.c
index c0b890677e5..6599af79044 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncmp.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncmp.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncpy.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncpy.c
index a96f7cb925f..b297345e6ca 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncpy.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strncpy.c
@@ -1,3 +1,4 @@
+extern void abort(void);
extern int inside_main;
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strrchr.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strrchr.c
index 30a567a9993..c2f7107064c 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strrchr.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strrchr.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
char *
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strspn.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strspn.c
index 29477cc764c..126c44f263b 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strspn.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strspn.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
__SIZE_TYPE__
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strstr.c b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strstr.c
index 737a48f63dc..d803f1ee94b 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strstr.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/lib/strstr.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
char *
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm-lib.c b/gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm-lib.c
index 16369a21794..4f66ffc48c2 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm-lib.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/memops-asm-lib.c
@@ -1,3 +1,4 @@
+extern void abort (void);
extern int inside_main;
typedef __SIZE_TYPE__ size_t;
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/strlen-2.c b/gcc/testsuite/gcc.c-torture/execute/builtins/strlen-2.c
index 29569b769a9..e15ad663601 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/strlen-2.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/strlen-2.c
@@ -5,6 +5,7 @@
Written by Jakub Jelinek, June 23, 2003. */
typedef __SIZE_TYPE__ size_t;
+extern size_t strlen (const char *);
extern char *strcpy (char *, const char *);
extern int memcmp (const void *, const void *, size_t);
extern void abort (void);
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/strstr-asm-lib.c b/gcc/testsuite/gcc.c-torture/execute/builtins/strstr-asm-lib.c
index a0318212e67..a031a56a956 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/strstr-asm-lib.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/strstr-asm-lib.c
@@ -1,10 +1,16 @@
+extern void abort (void);
+typedef __SIZE_TYPE__ size_t;
+extern size_t strlen(const char *);
+extern char *strchr(const char *, int);
+extern int strcmp(const char *, const char *);
+extern int strncmp(const char *, const char *, size_t);
extern int inside_main;
extern const char *p;
char *
my_strstr (const char *s1, const char *s2)
{
- __SIZE_TYPE__ len = strlen (s2);
+ const size_t len = strlen (s2);
#ifdef __OPTIMIZE__
/* If optimizing, we should be called only in the strstr (foo + 2, p)