abs-1-lib.c, [...]: Add missing prototypes.

* 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.

From-SVN: r97385
This commit is contained in:
Kaveh R. Ghazi 2005-04-01 13:31:28 +00:00 committed by Kaveh Ghazi
parent 1ea96b3411
commit 944c43928a
26 changed files with 60 additions and 1 deletions

View File

@ -1,3 +1,32 @@
2005-04-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* 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.
2005-04-01 Danny Smith <dannysmith@users.sourceforge.net>
* g++.dg/ext/selectany1.C: New file. Test for linkonce sections.

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int abs_called;
extern int inside_main;

View File

@ -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

View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdarg.h>
extern void abort (void);
extern int inside_main;
int

View File

@ -1,3 +1,4 @@
extern void abort(void);
extern void main_test (void);
int inside_main;

View File

@ -1,3 +1,4 @@
extern void abort(void);
extern int inside_main;
int

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
void *

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
void *

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
void *

View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdarg.h>
extern void abort (void);
extern int inside_main;
int

View File

@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdarg.h>
extern void abort (void);
extern int inside_main;
int

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
char *

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
char *

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
int

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
char *

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
__SIZE_TYPE__

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
__SIZE_TYPE__

View File

@ -1,3 +1,4 @@
extern void abort(void);
extern int inside_main;
typedef __SIZE_TYPE__ size_t;

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
typedef __SIZE_TYPE__ size_t;

View File

@ -1,3 +1,4 @@
extern void abort(void);
extern int inside_main;
typedef __SIZE_TYPE__ size_t;

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
char *

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
__SIZE_TYPE__

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
char *

View File

@ -1,3 +1,4 @@
extern void abort (void);
extern int inside_main;
typedef __SIZE_TYPE__ size_t;

View File

@ -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);

View File

@ -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)