diff options
author | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-30 19:41:37 +0000 |
---|---|---|
committer | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-30 19:41:37 +0000 |
commit | 5bf6d17616df298ccaa74f01a0f103b70f21ed3f (patch) | |
tree | f9fff6b66f38d9c71b9380d1bf5cca725944d4d1 /gcc/fixinc | |
parent | 86720eb23303de52b0345b582b0121093a93d04b (diff) | |
download | gcc-5bf6d17616df298ccaa74f01a0f103b70f21ed3f.tar.gz |
diff of diff does not work well, so use expected test result files
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34270 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc')
53 files changed, 699 insertions, 0 deletions
diff --git a/gcc/fixinc/tests/base/X11/Intrinsic.h b/gcc/fixinc/tests/base/X11/Intrinsic.h new file mode 100644 index 00000000000..49754bbb6f0 --- /dev/null +++ b/gcc/fixinc/tests/base/X11/Intrinsic.h @@ -0,0 +1,5 @@ + + +#if defined( ARM_NORCROFT_HINT_CHECK ) +p_type mumble; +#endif /* ARM_NORCROFT_HINT_CHECK */ diff --git a/gcc/fixinc/tests/base/X11/ShellP.h b/gcc/fixinc/tests/base/X11/ShellP.h new file mode 100644 index 00000000000..a89992b61ee --- /dev/null +++ b/gcc/fixinc/tests/base/X11/ShellP.h @@ -0,0 +1,12 @@ + + +#if defined( X11_CLASS_CHECK ) +struct { +#ifdef __cplusplus + char *c_class; +#else + char *class; +#endif +} mumble; + +#endif /* X11_CLASS_CHECK */ diff --git a/gcc/fixinc/tests/base/X11/Xmu.h b/gcc/fixinc/tests/base/X11/Xmu.h new file mode 100644 index 00000000000..033a29d235c --- /dev/null +++ b/gcc/fixinc/tests/base/X11/Xmu.h @@ -0,0 +1,7 @@ + + +#if defined( X11_SPRINTF_CHECK ) +#ifndef __STDC__ +extern char * sprintf(); +#endif /* !defined __STDC__ */ +#endif /* X11_SPRINTF_CHECK */ diff --git a/gcc/fixinc/tests/base/Xm/BaseClassI.h b/gcc/fixinc/tests/base/Xm/BaseClassI.h new file mode 100644 index 00000000000..464f2df1d44 --- /dev/null +++ b/gcc/fixinc/tests/base/Xm/BaseClassI.h @@ -0,0 +1,6 @@ + + +#if defined( X11_CLASS_USAGE_CHECK ) +extern mumble (int c_class); + +#endif /* X11_CLASS_USAGE_CHECK */ diff --git a/gcc/fixinc/tests/base/Xm/Traversal.h b/gcc/fixinc/tests/base/Xm/Traversal.h new file mode 100644 index 00000000000..783b7181f23 --- /dev/null +++ b/gcc/fixinc/tests/base/Xm/Traversal.h @@ -0,0 +1,12 @@ + + +#if defined( X11_NEW_CHECK ) +struct wedge { +#ifdef __cplusplus + Widget old, c_new; +#else + Widget old, new; /* fix the new */ +#endif +}; +extern Wedged( Widget c_new, Widget old ); +#endif /* X11_NEW_CHECK */ diff --git a/gcc/fixinc/tests/base/ansi/math.h b/gcc/fixinc/tests/base/ansi/math.h new file mode 100644 index 00000000000..11f160f9ee9 --- /dev/null +++ b/gcc/fixinc/tests/base/ansi/math.h @@ -0,0 +1,5 @@ + + +#if defined( NEXT_MATH_PREFIX_CHECK ) +extern double mumble(); +#endif /* NEXT_MATH_PREFIX_CHECK */ diff --git a/gcc/fixinc/tests/base/ansi/stdlib.h b/gcc/fixinc/tests/base/ansi/stdlib.h new file mode 100644 index 00000000000..69045d7dbce --- /dev/null +++ b/gcc/fixinc/tests/base/ansi/stdlib.h @@ -0,0 +1,5 @@ + + +#if defined( NEXT_VOLITILE_CHECK ) +extern void abort(); +#endif /* NEXT_VOLITILE_CHECK */ diff --git a/gcc/fixinc/tests/base/assert.h b/gcc/fixinc/tests/base/assert.h new file mode 100644 index 00000000000..1a268671fb5 --- /dev/null +++ b/gcc/fixinc/tests/base/assert.h @@ -0,0 +1,24 @@ +#ifndef FIXINC_BROKEN_ASSERT_STDLIB_CHECK +#define FIXINC_BROKEN_ASSERT_STDLIB_CHECK 1 + +#ifdef __cplusplus +#include <stdlib.h> +#endif +#ifndef FIXINC_BROKEN_ASSERT_STDIO_CHECK +#define FIXINC_BROKEN_ASSERT_STDIO_CHECK 1 + +#include <stdio.h> + + +#if defined( BROKEN_ASSERT_STDIO_CHECK ) +extern FILE* stderr; +#endif /* BROKEN_ASSERT_STDIO_CHECK */ + + +#if defined( BROKEN_ASSERT_STDLIB_CHECK ) +extern void exit ( int ); +#endif /* BROKEN_ASSERT_STDLIB_CHECK */ + +#endif /* FIXINC_BROKEN_ASSERT_STDIO_CHECK */ + +#endif /* FIXINC_BROKEN_ASSERT_STDLIB_CHECK */ diff --git a/gcc/fixinc/tests/base/bsd/libc.h b/gcc/fixinc/tests/base/bsd/libc.h new file mode 100644 index 00000000000..4ced1e7f452 --- /dev/null +++ b/gcc/fixinc/tests/base/bsd/libc.h @@ -0,0 +1,5 @@ + + +#if defined( NEXT_TEMPLATE_CHECK ) +extern mumble( char *); /* fix */ +#endif /* NEXT_TEMPLATE_CHECK */ diff --git a/gcc/fixinc/tests/base/c_asm.h b/gcc/fixinc/tests/base/c_asm.h new file mode 100644 index 00000000000..b394b34f3c3 --- /dev/null +++ b/gcc/fixinc/tests/base/c_asm.h @@ -0,0 +1,11 @@ + + +#if defined( DEC_INTERN_ASM_CHECK ) +#ifdef __DECC +float fasm { + ... asm stuff ... +}; +#pragma intrinsic( dasm ) +#endif +/* END ASM TEST*/ +#endif /* DEC_INTERN_ASM_CHECK */ diff --git a/gcc/fixinc/tests/base/curses.h b/gcc/fixinc/tests/base/curses.h new file mode 100644 index 00000000000..02a6af0ba21 --- /dev/null +++ b/gcc/fixinc/tests/base/curses.h @@ -0,0 +1,25 @@ + + +#if defined( AVOID_BOOL_DEFINE_CHECK ) +#ifndef __cplusplus +# define bool char +#endif + +#endif /* AVOID_BOOL_DEFINE_CHECK */ + + +#if defined( AVOID_BOOL_TYPE_CHECK ) +#ifndef __cplusplus +typedef unsigned int bool ; /* bool type */ +#endif +#endif /* AVOID_BOOL_TYPE_CHECK */ + + +#if defined( BAD_STRUCT_TERM_CHECK ) +struct term; +#endif /* BAD_STRUCT_TERM_CHECK */ + + +#if defined( LYNX_VOID_INT_CHECK ) +/* curses foiled again */ +#endif /* LYNX_VOID_INT_CHECK */ diff --git a/gcc/fixinc/tests/base/fcntl.h b/gcc/fixinc/tests/base/fcntl.h new file mode 100644 index 00000000000..a937d86fe6f --- /dev/null +++ b/gcc/fixinc/tests/base/fcntl.h @@ -0,0 +1,5 @@ + + +#if defined( LYNXOS_FCNTL_PROTO_CHECK ) +extern int fcntl(int, int, ...); +#endif /* LYNXOS_FCNTL_PROTO_CHECK */ diff --git a/gcc/fixinc/tests/base/hsfs/hsfs_spec.h b/gcc/fixinc/tests/base/hsfs/hsfs_spec.h new file mode 100644 index 00000000000..2fb9ed5586d --- /dev/null +++ b/gcc/fixinc/tests/base/hsfs/hsfs_spec.h @@ -0,0 +1,5 @@ + + +#if defined( SUN_BOGUS_IFDEF_CHECK ) +#if __i386__ || __vax__ || __sun4c__ +#endif /* SUN_BOGUS_IFDEF_CHECK */ diff --git a/gcc/fixinc/tests/base/inttypes.h b/gcc/fixinc/tests/base/inttypes.h new file mode 100644 index 00000000000..a1086e951cd --- /dev/null +++ b/gcc/fixinc/tests/base/inttypes.h @@ -0,0 +1,6 @@ + + +#if defined( HPUX11_UINT32_C_CHECK ) +#define CONCAT_U__(__c) __CONCAT__(__c,u) +#define UINT32_C(__c) __CONCAT__(__c,ul) +#endif /* HPUX11_UINT32_C_CHECK */ diff --git a/gcc/fixinc/tests/base/libgen.h b/gcc/fixinc/tests/base/libgen.h new file mode 100644 index 00000000000..a645acc2656 --- /dev/null +++ b/gcc/fixinc/tests/base/libgen.h @@ -0,0 +1,7 @@ + + +#if defined( BAD_LVAL_CHECK ) +#pragma extern_prefix "_FOO" +#define something _FOOsomething +#define mumble _FOOmumble +#endif /* BAD_LVAL_CHECK */ diff --git a/gcc/fixinc/tests/base/limits.h b/gcc/fixinc/tests/base/limits.h new file mode 100644 index 00000000000..5e16a49c436 --- /dev/null +++ b/gcc/fixinc/tests/base/limits.h @@ -0,0 +1,7 @@ + + +#if defined( LIMITS_IFNDEFS_CHECK ) +#ifndef DBL_DIG + # define DBL_DIG 0 /* somthin' */ +#endif +#endif /* LIMITS_IFNDEFS_CHECK */ diff --git a/gcc/fixinc/tests/base/machine/ansi.h b/gcc/fixinc/tests/base/machine/ansi.h new file mode 100644 index 00000000000..8e5570e9c9c --- /dev/null +++ b/gcc/fixinc/tests/base/machine/ansi.h @@ -0,0 +1,5 @@ + + +#if defined( MACHINE_ANSI_H_VA_LIST_CHECK ) + # define _BSD_VA_LIST_ __builtin_va_list +#endif /* MACHINE_ANSI_H_VA_LIST_CHECK */ diff --git a/gcc/fixinc/tests/base/malloc.h b/gcc/fixinc/tests/base/malloc.h new file mode 100644 index 00000000000..6181891ed9d --- /dev/null +++ b/gcc/fixinc/tests/base/malloc.h @@ -0,0 +1,9 @@ + + +#if defined( SUN_MALLOC_CHECK ) +typedef void * malloc_t; +void free(); +void* malloc(); +void* calloc(); +void* realloc(); +#endif /* SUN_MALLOC_CHECK */ diff --git a/gcc/fixinc/tests/base/math.h b/gcc/fixinc/tests/base/math.h new file mode 100644 index 00000000000..9b2c80d2578 --- /dev/null +++ b/gcc/fixinc/tests/base/math.h @@ -0,0 +1,101 @@ +#ifndef FIXINC_SUNOS_MATHERR_DECL_CHECK +#define FIXINC_SUNOS_MATHERR_DECL_CHECK 1 + +struct exception; +#ifndef FIXINC_MATH_EXCEPTION_CHECK +#define FIXINC_MATH_EXCEPTION_CHECK 1 + +#ifdef __cplusplus +#define exception __math_exception +#endif + + +#if defined( BROKEN_CABS_CHECK ) +#ifdef __STDC__ + +#else + +#endif + /* This is a comment + and it ends here. */ +#endif /* BROKEN_CABS_CHECK */ + + +#if defined( FIX_HEADER_BREAKAGE_CHECK ) +extern double floor(), ceil(), fmod(), fabs _PARAMS((double)); +#endif /* FIX_HEADER_BREAKAGE_CHECK */ + + +#if defined( HPUX11_FABSF_CHECK ) +#ifdef _PA_RISC +#ifndef __cplusplus +# define fabsf(x) ((float)fabs((double)(float)(x))) +#endif +#endif +#endif /* HPUX11_FABSF_CHECK */ + + +#if defined( HPUX8_BOGUS_INLINES_CHECK ) +extern "C" int abs(int); + +#endif /* HPUX8_BOGUS_INLINES_CHECK */ + + +#if defined( ISC_FMOD_CHECK ) +extern double fmod(double, double); +#endif /* ISC_FMOD_CHECK */ + + +#if defined( M88K_BAD_HYPOT_OPT_CHECK ) +extern double hypot(); +/* Workaround a stupid Motorola optimization if one + of x or y is 0.0 and the other is negative! */ +#ifdef __STDC__ +static __inline__ double fake_hypot (double x, double y) +#else +static __inline__ double fake_hypot (x, y) + double x, y; +#endif +{ + return fabs (hypot (x, y)); +} +#define hypot fake_hypot +#endif /* M88K_BAD_HYPOT_OPT_CHECK */ + + +#if defined( MATH_EXCEPTION_CHECK ) +typedef struct exception t_math_exception; +#endif /* MATH_EXCEPTION_CHECK */ + + +#if defined( MATH_HUGE_VAL_IFNDEF_CHECK ) +#ifndef HUGE_VAL +# define HUGE_VAL 3.4e+40 +#endif +#endif /* MATH_HUGE_VAL_IFNDEF_CHECK */ + + +#if defined( RS6000_DOUBLE_CHECK ) +#ifndef __cplusplus +extern int class(); +#endif +#endif /* RS6000_DOUBLE_CHECK */ + + +#if defined( SUNOS_MATHERR_DECL_CHECK ) +extern int matherr(); +#endif /* SUNOS_MATHERR_DECL_CHECK */ + + +#if defined( SVR4__P_CHECK ) +#ifndef __P +#define __P(a) a +#endif +#endif /* SVR4__P_CHECK */ +#ifdef __cplusplus +#undef exception +#endif + +#endif /* FIXINC_MATH_EXCEPTION_CHECK */ + +#endif /* FIXINC_SUNOS_MATHERR_DECL_CHECK */ diff --git a/gcc/fixinc/tests/base/netdnet/dnetdb.h b/gcc/fixinc/tests/base/netdnet/dnetdb.h new file mode 100644 index 00000000000..da43628a1b3 --- /dev/null +++ b/gcc/fixinc/tests/base/netdnet/dnetdb.h @@ -0,0 +1,5 @@ + + +#if defined( NODEENT_SYNTAX_CHECK ) +char *na_addr ; +#endif /* NODEENT_SYNTAX_CHECK */ diff --git a/gcc/fixinc/tests/base/netinet/ip.h b/gcc/fixinc/tests/base/netinet/ip.h new file mode 100644 index 00000000000..840533ef305 --- /dev/null +++ b/gcc/fixinc/tests/base/netinet/ip.h @@ -0,0 +1,10 @@ + + +#if defined( IP_MISSING_SEMI_CHECK ) +struct mumble { + union { + int x; + }; +}; /* mumbled struct */ + +#endif /* IP_MISSING_SEMI_CHECK */ diff --git a/gcc/fixinc/tests/base/pixrect/memvar.h b/gcc/fixinc/tests/base/pixrect/memvar.h new file mode 100644 index 00000000000..9016455b050 --- /dev/null +++ b/gcc/fixinc/tests/base/pixrect/memvar.h @@ -0,0 +1,9 @@ + + +#if defined( SUN_CATMACRO_CHECK ) +#ifdef __STDC__ +# define CAT(a,b) a##b +#else +#define CAT(a,b) a/**/b +#endif +#endif /* SUN_CATMACRO_CHECK */ diff --git a/gcc/fixinc/tests/base/pthread.h b/gcc/fixinc/tests/base/pthread.h new file mode 100644 index 00000000000..6bc081b9dde --- /dev/null +++ b/gcc/fixinc/tests/base/pthread.h @@ -0,0 +1,5 @@ + + +#if defined( PTHREAD_PAGE_SIZE_CHECK ) +extern int __page_size; +#endif /* PTHREAD_PAGE_SIZE_CHECK */ diff --git a/gcc/fixinc/tests/base/reg_types.h b/gcc/fixinc/tests/base/reg_types.h new file mode 100644 index 00000000000..2a1aad763e4 --- /dev/null +++ b/gcc/fixinc/tests/base/reg_types.h @@ -0,0 +1,11 @@ + + +#if defined( OSF_NAMESPACE_A_CHECK ) +typedef struct { + int stuff, mo_suff; +} regex_t; +extern __regex_t re; +extern __regoff_t ro; +extern __regmatch_t rm; + +#endif /* OSF_NAMESPACE_A_CHECK */ diff --git a/gcc/fixinc/tests/base/regex.h b/gcc/fixinc/tests/base/regex.h new file mode 100644 index 00000000000..87f49cb9115 --- /dev/null +++ b/gcc/fixinc/tests/base/regex.h @@ -0,0 +1,8 @@ + + +#if defined( OSF_NAMESPACE_C_CHECK ) +#include <reg_types.h> +typedef __regex_t regex_t; +typedef __regoff_t regoff_t; +typedef __regmatch_t regmatch_t; +#endif /* OSF_NAMESPACE_C_CHECK */ diff --git a/gcc/fixinc/tests/base/rpc/auth.h b/gcc/fixinc/tests/base/rpc/auth.h new file mode 100644 index 00000000000..02fc0b35222 --- /dev/null +++ b/gcc/fixinc/tests/base/rpc/auth.h @@ -0,0 +1,17 @@ + + +#if defined( STRUCT_SOCKADDR_CHECK ) +struct sockaddr; +extern AUTH* authdes_create( struct sockaddr* ); +#endif /* STRUCT_SOCKADDR_CHECK */ + + +#if defined( SUN_AUTH_PROTO_CHECK ) +struct auth_t { +#ifdef __cplusplus + int (*name)(...); /* C++ bad */ +#else + int (*name)(); /* C++ bad */ +#endif +}; +#endif /* SUN_AUTH_PROTO_CHECK */ diff --git a/gcc/fixinc/tests/base/rpc/rpc.h b/gcc/fixinc/tests/base/rpc/rpc.h new file mode 100644 index 00000000000..1a64db35817 --- /dev/null +++ b/gcc/fixinc/tests/base/rpc/rpc.h @@ -0,0 +1,5 @@ + + +#if defined( NESTED_AUTH_DES_CHECK ) +/*#include <rpc/auth_des.h> */ /* skip this */ +#endif /* NESTED_AUTH_DES_CHECK */ diff --git a/gcc/fixinc/tests/base/rpc/xdr.h b/gcc/fixinc/tests/base/rpc/xdr.h new file mode 100644 index 00000000000..bc61af7aec0 --- /dev/null +++ b/gcc/fixinc/tests/base/rpc/xdr.h @@ -0,0 +1,6 @@ + + +#if defined( STRUCT_FILE_CHECK ) +struct __file_s; +extern void xdrstdio_create( struct __file_s* ); +#endif /* STRUCT_FILE_CHECK */ diff --git a/gcc/fixinc/tests/base/rpcsvc/rstat.h b/gcc/fixinc/tests/base/rpcsvc/rstat.h new file mode 100644 index 00000000000..52a602eae76 --- /dev/null +++ b/gcc/fixinc/tests/base/rpcsvc/rstat.h @@ -0,0 +1,7 @@ + + +#if defined( STATSSWTCH_CHECK ) +struct statswtch { + int boottime; +}; +#endif /* STATSSWTCH_CHECK */ diff --git a/gcc/fixinc/tests/base/rpcsvc/rusers.h b/gcc/fixinc/tests/base/rpcsvc/rusers.h new file mode 100644 index 00000000000..4f817885edf --- /dev/null +++ b/gcc/fixinc/tests/base/rpcsvc/rusers.h @@ -0,0 +1,7 @@ + + +#if defined( SUN_RUSERS_SEMI_CHECK ) +struct mumble + int _cnt; +}; +#endif /* SUN_RUSERS_SEMI_CHECK */ diff --git a/gcc/fixinc/tests/base/sparc/asm_linkage.h b/gcc/fixinc/tests/base/sparc/asm_linkage.h new file mode 100644 index 00000000000..ccfce571fbb --- /dev/null +++ b/gcc/fixinc/tests/base/sparc/asm_linkage.h @@ -0,0 +1,5 @@ + + +#if defined( KANDR_CONCAT_CHECK ) +#define __CONCAT__(a,b) a##b +#endif /* KANDR_CONCAT_CHECK */ diff --git a/gcc/fixinc/tests/base/stdio.h b/gcc/fixinc/tests/base/stdio.h new file mode 100644 index 00000000000..a050aa3487b --- /dev/null +++ b/gcc/fixinc/tests/base/stdio.h @@ -0,0 +1,35 @@ +#ifndef FIXINC_STDIO_STDARG_H_CHECK +#define FIXINC_STDIO_STDARG_H_CHECK 1 + +#define __need___va_list +#include <stdarg.h> + + +#if defined( ALPHA_GETOPT_CHECK ) +extern int getopt(int, char *const[], const char *); +#endif /* ALPHA_GETOPT_CHECK */ + + +#if defined( ISC_OMITS_WITH_STDC_CHECK ) +#if !defined(_POSIX_SOURCE) /* ? ! */ +int foo; +#endif +#endif /* ISC_OMITS_WITH_STDC_CHECK */ + + +#if defined( READ_RET_TYPE_CHECK ) +extern unsigned int fread(), fwrite(); +extern int fclose(), fflush(), foo(); +#endif /* READ_RET_TYPE_CHECK */ + + +#if defined( RS6000_PARAM_CHECK ) +extern int rename(const char *_old, const char *_new); +#endif /* RS6000_PARAM_CHECK */ + + +#if defined( STDIO_STDARG_H_CHECK ) + +#endif /* STDIO_STDARG_H_CHECK */ + +#endif /* FIXINC_STDIO_STDARG_H_CHECK */ diff --git a/gcc/fixinc/tests/base/stdlib.h b/gcc/fixinc/tests/base/stdlib.h new file mode 100644 index 00000000000..bfe76c40efd --- /dev/null +++ b/gcc/fixinc/tests/base/stdlib.h @@ -0,0 +1,40 @@ + + +#if defined( ARM_WCHAR_CHECK ) +# ifndef _GCC_WCHAR_T /* we don't have wchar_t yet, ... */ +# define _GCC_WCHAR_T short +# endif /* __wchar_t */ +#endif /* ARM_WCHAR_CHECK */ + + +#if defined( INT_ABORT_FREE_AND_EXIT_CHECK ) +extern void abort(int); +extern void free(void*); +extern void exit(void*); +#endif /* INT_ABORT_FREE_AND_EXIT_CHECK */ + + +#if defined( NEWS_OS_RECURSION_CHECK ) +#ifdef BOGUS_RECURSION +#include <stdlib.h> +#endif +#endif /* NEWS_OS_RECURSION_CHECK */ + + +#if defined( SVR4_GETCWD_CHECK ) +extern char* getcwd(char *, size_t); +#endif /* SVR4_GETCWD_CHECK */ + + +#if defined( SVR4_PROFIL_CHECK ) +profil(unsigned short *, size_t, int, unsigned int); +#endif /* SVR4_PROFIL_CHECK */ + + +#if defined( SYSZ_STDLIB_FOR_SUN_CHECK ) +extern void * calloc(size_t); +extern void * malloc(size_t); +extern void * realloc(void*,size_t); +extern void * bsearch(void*,size_t,size_t); + +#endif /* SYSZ_STDLIB_FOR_SUN_CHECK */ diff --git a/gcc/fixinc/tests/base/strings.h b/gcc/fixinc/tests/base/strings.h new file mode 100644 index 00000000000..218f0187e8a --- /dev/null +++ b/gcc/fixinc/tests/base/strings.h @@ -0,0 +1,5 @@ + + +#if defined( SUNOS_STRLEN_CHECK ) + __SIZE_TYPE__ strlen(); /* string length */ +#endif /* SUNOS_STRLEN_CHECK */ diff --git a/gcc/fixinc/tests/base/sundev/vuid_event.h b/gcc/fixinc/tests/base/sundev/vuid_event.h new file mode 100644 index 00000000000..c7ed4374d8b --- /dev/null +++ b/gcc/fixinc/tests/base/sundev/vuid_event.h @@ -0,0 +1,5 @@ + + +#if defined( BADQUOTE_CHECK ) +/* does not have matched single quotes */ +#endif /* BADQUOTE_CHECK */ diff --git a/gcc/fixinc/tests/base/sunwindow/win_lock.h b/gcc/fixinc/tests/base/sunwindow/win_lock.h new file mode 100644 index 00000000000..9438e04fc19 --- /dev/null +++ b/gcc/fixinc/tests/base/sunwindow/win_lock.h @@ -0,0 +1,7 @@ + + +#if defined( ECD_CURSOR_CHECK ) +#ifdef ecd_cursor +#error bogus +#endif /* ecd+cursor */ +#endif /* ECD_CURSOR_CHECK */ diff --git a/gcc/fixinc/tests/base/sym.h b/gcc/fixinc/tests/base/sym.h new file mode 100644 index 00000000000..9e24ed183bd --- /dev/null +++ b/gcc/fixinc/tests/base/sym.h @@ -0,0 +1,7 @@ + + +#if defined( ALPHA_PARENS_CHECK ) +#ifndef __mips64 /* bogus */ +extern int foo; +#endif +#endif /* ALPHA_PARENS_CHECK */ diff --git a/gcc/fixinc/tests/base/sys/asm.h b/gcc/fixinc/tests/base/sys/asm.h new file mode 100644 index 00000000000..9b9b5c28adf --- /dev/null +++ b/gcc/fixinc/tests/base/sys/asm.h @@ -0,0 +1,5 @@ + + +#if defined( IRIX_ASM_APOSTROPHE_CHECK ) +# and we are on vacation +#endif /* IRIX_ASM_APOSTROPHE_CHECK */ diff --git a/gcc/fixinc/tests/base/sys/file.h b/gcc/fixinc/tests/base/sys/file.h new file mode 100644 index 00000000000..0526efb30fa --- /dev/null +++ b/gcc/fixinc/tests/base/sys/file.h @@ -0,0 +1,5 @@ + + +#if defined( HP_SYSFILE_CHECK ) +extern void foo(struct file *, ...); /* HPUX_SOURCE - bad varargs */ +#endif /* HP_SYSFILE_CHECK */ diff --git a/gcc/fixinc/tests/base/sys/limits.h b/gcc/fixinc/tests/base/sys/limits.h new file mode 100644 index 00000000000..273b46790bd --- /dev/null +++ b/gcc/fixinc/tests/base/sys/limits.h @@ -0,0 +1,8 @@ + + +#if defined( NESTED_SYS_LIMITS_CHECK ) +/* +#define CHILD_MAX 20 Max, Max, ... */ /* +#define OPEN_MAX 20 Max, Max, ... */ + +#endif /* NESTED_SYS_LIMITS_CHECK */ diff --git a/gcc/fixinc/tests/base/sys/mman.h b/gcc/fixinc/tests/base/sys/mman.h new file mode 100644 index 00000000000..16403a075d8 --- /dev/null +++ b/gcc/fixinc/tests/base/sys/mman.h @@ -0,0 +1,16 @@ +#ifndef FIXINC_CXX_UNREADY_CHECK +#define FIXINC_CXX_UNREADY_CHECK 1 + +#ifdef __cplusplus +extern "C" { +#endif + + +#if defined( CXX_UNREADY_CHECK ) +extern void* malloc( size_t ); +#endif /* CXX_UNREADY_CHECK */ +#ifdef __cplusplus +} +#endif + +#endif /* FIXINC_CXX_UNREADY_CHECK */ diff --git a/gcc/fixinc/tests/base/sys/param.h b/gcc/fixinc/tests/base/sys/param.h new file mode 100644 index 00000000000..c252d243750 --- /dev/null +++ b/gcc/fixinc/tests/base/sys/param.h @@ -0,0 +1,13 @@ + + +#if defined( AUX_ASM_CHECK ) +#if !defined(NOINLINE) && !defined(__GNUC__) /* ain't got no inline, so we got it */ +#endif /* NOINLINE */ +#endif /* AUX_ASM_CHECK */ + + +#if defined( HPUX_MAXINT_CHECK ) +#ifndef MAXINT +#define MAXINT 0x7FFFFFFF +#endif +#endif /* HPUX_MAXINT_CHECK */ diff --git a/gcc/fixinc/tests/base/sys/signal.h b/gcc/fixinc/tests/base/sys/signal.h new file mode 100644 index 00000000000..e0eab7a7751 --- /dev/null +++ b/gcc/fixinc/tests/base/sys/signal.h @@ -0,0 +1,14 @@ + + +#if defined( AIX_VOLATILE_CHECK ) +typedef int sig_atomic_t; +#endif /* AIX_VOLATILE_CHECK */ + + +#if defined( SUN_SIGNAL_CHECK ) +#ifdef __cplusplus +void (*signal(...))(...); +#else +void (*signal())(); +#endif +#endif /* SUN_SIGNAL_CHECK */ diff --git a/gcc/fixinc/tests/base/sys/spinlock.h b/gcc/fixinc/tests/base/sys/spinlock.h new file mode 100644 index 00000000000..81942249a4b --- /dev/null +++ b/gcc/fixinc/tests/base/sys/spinlock.h @@ -0,0 +1,5 @@ + + +#if defined( HP_INLINE_CHECK ) + # include <machine/mumble.h> +#endif /* HP_INLINE_CHECK */ diff --git a/gcc/fixinc/tests/base/sys/stat.h b/gcc/fixinc/tests/base/sys/stat.h new file mode 100644 index 00000000000..52d05f328df --- /dev/null +++ b/gcc/fixinc/tests/base/sys/stat.h @@ -0,0 +1,39 @@ + + +#if defined( M88K_BAD_S_IF_CHECK ) +#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) /* is regular? */ +#endif /* M88K_BAD_S_IF_CHECK */ + + +#if defined( RS6000_FCHMOD_CHECK ) +extern int fchmod(int, mode_t); +#endif /* RS6000_FCHMOD_CHECK */ + + +#if defined( SCO_STATIC_FUNC_CHECK ) +#ifdef __STDC__ +#if __cplusplus +extern "C" { +#endif /* __cplusplus */ +static int stat(const char *__f, struct stat *__p) { +return __stat32(__f, __p); +} +#if __cplusplus + } +#endif /* __cplusplus */ + +# else /* !__STDC__ */ +#if __cplusplus +extern "C" { +#endif /* __cplusplus */ +static int stat(__f, __p) +char *__f; +struct stat *__p; +{ +return __stat32(__f, __p); +} +#if __cplusplus + } +#endif /* __cplusplus */ +#endif +#endif /* SCO_STATIC_FUNC_CHECK */ diff --git a/gcc/fixinc/tests/base/sys/stdtypes.h b/gcc/fixinc/tests/base/sys/stdtypes.h new file mode 100644 index 00000000000..206cf419e31 --- /dev/null +++ b/gcc/fixinc/tests/base/sys/stdtypes.h @@ -0,0 +1,28 @@ + + +#if defined( SYSZ_STDTYPES_FOR_SUN_CHECK ) +#ifndef __SIZE_TYPE__ +#define __SIZE_TYPE__ long unsigned int +#endif +#ifndef _GCC_SIZE_T +#define _GCC_SIZE_T +typedef __SIZE_TYPE__ size_t; /* ??? */ +#endif +#ifndef __PTRDIFF_TYPE__ +#define __PTRDIFF_TYPE__ long int +#endif +#ifndef _GCC_PTRDIFF_T +#define _GCC_PTRDIFF_T +typedef __PTRDIFF_TYPE__ ptrdiff_t; /* result of subtracting two pointers */ +#endif +#ifndef __WCHAR_TYPE__ +#define __WCHAR_TYPE__ int +#endif +#ifndef __cplusplus +#ifndef _GCC_WCHAR_T +#define _GCC_WCHAR_T +typedef __WCHAR_TYPE__ wchar_t; /* big enough for biggest char set */ +#endif +#endif + +#endif /* SYSZ_STDTYPES_FOR_SUN_CHECK */ diff --git a/gcc/fixinc/tests/base/sys/time.h b/gcc/fixinc/tests/base/sys/time.h new file mode 100644 index 00000000000..86a73406e32 --- /dev/null +++ b/gcc/fixinc/tests/base/sys/time.h @@ -0,0 +1,5 @@ + + +#if defined( HPUX_SYSTIME_CHECK ) +struct sigevent; +#endif /* HPUX_SYSTIME_CHECK */ diff --git a/gcc/fixinc/tests/base/sys/times.h b/gcc/fixinc/tests/base/sys/times.h new file mode 100644 index 00000000000..bb3f6efadeb --- /dev/null +++ b/gcc/fixinc/tests/base/sys/times.h @@ -0,0 +1,5 @@ + + +#if defined( SCO_UTIME_CHECK ) +extern int utime(const char *, const struct utimbuf *); +#endif /* SCO_UTIME_CHECK */ diff --git a/gcc/fixinc/tests/base/sys/types.h b/gcc/fixinc/tests/base/sys/types.h new file mode 100644 index 00000000000..9493ce06e5c --- /dev/null +++ b/gcc/fixinc/tests/base/sys/types.h @@ -0,0 +1,17 @@ + + +#if defined( IRIX_MULTILINE_CMNT_CHECK ) +/* we check the type of the result */ +// /* of the sizeof something. This is a bad test :-( */ +#endif /* IRIX_MULTILINE_CMNT_CHECK */ + + +#if defined( SYSTYPES_STDLIB_SIZE_T_CHECK ) +#ifndef __SIZE_TYPE__ +#define __SIZE_TYPE__ long unsigned int +#endif +#ifndef _GCC_SIZE_T +#define _GCC_SIZE_T +typedef __SIZE_TYPE__ size_t; /* size of something */ +#endif +#endif /* SYSTYPES_STDLIB_SIZE_T_CHECK */ diff --git a/gcc/fixinc/tests/base/sys/wait.h b/gcc/fixinc/tests/base/sys/wait.h new file mode 100644 index 00000000000..943fe2f7dc9 --- /dev/null +++ b/gcc/fixinc/tests/base/sys/wait.h @@ -0,0 +1,13 @@ + + +#if defined( AIX_SYSWAIT_CHECK ) +/* bos325, */ +struct rusage; +extern pid_t wait3(); +/* pid_t wait3(int *, int, struct rusage *); */ +#endif /* AIX_SYSWAIT_CHECK */ + + +#if defined( NEXT_WAIT_UNION_CHECK ) +extern pid_d wait(void*); +#endif /* NEXT_WAIT_UNION_CHECK */ diff --git a/gcc/fixinc/tests/base/testing.h b/gcc/fixinc/tests/base/testing.h new file mode 100644 index 00000000000..4af48a53f2c --- /dev/null +++ b/gcc/fixinc/tests/base/testing.h @@ -0,0 +1,50 @@ + + +#if defined( CTRL_QUOTES_DEF_CHECK ) +#define BSD43_CTRL(n, x) ((n<<8)+x) +#define _CTRL(c) (c&037) +#endif /* CTRL_QUOTES_DEF_CHECK */ + + +#if defined( CTRL_QUOTES_USE_CHECK ) +#define TCTRLFOO BSD43_CTRL('T', 1) +#endif /* CTRL_QUOTES_USE_CHECK */ + + +#if defined( IO_QUOTES_DEF_CHECK ) +#define BSD43__IOWR(n, x) ((n<<8)+x) +#define _IOWN(x,y,t) (_IOC_IN|(((t)&_IOCPARM_MASK)<<16)|(x<<8)|y) +#define _IO(x,y) (x<<8|y) +#endif /* IO_QUOTES_DEF_CHECK */ + + +#if defined( IO_QUOTES_USE_CHECK ) +#define TIOCFOO BSD43__IOWR('T', 1) +#define TIOCFOO \ +BSD43__IOWR('T', 1) /* Some are multi-line */ +#endif /* IO_QUOTES_USE_CHECK */ + + +#if defined( MACHINE_NAME_CHECK ) +/* MACH_DIFF: */ +#if defined( __i386__ ) || defined( sparc ) || defined( vax ) +/* no uniform test, so be careful :-) */ +#endif /* MACHINE_NAME_CHECK */ + + +#if defined( SCO_STRICT_ANSI_CHECK ) +#if !defined(__STRICT_ANSI__) /* not standard C */ +int foo; +#endif +#endif /* SCO_STRICT_ANSI_CHECK */ + + +#if defined( UNDEFINE_NULL_CHECK ) +#ifndef NULL
+#define NULL 0UL
+#endif
+#ifndef NULL +#define NULL ((void*)0) +#endif + +#endif /* UNDEFINE_NULL_CHECK */ diff --git a/gcc/fixinc/tests/base/time.h b/gcc/fixinc/tests/base/time.h new file mode 100644 index 00000000000..3d4a089fed7 --- /dev/null +++ b/gcc/fixinc/tests/base/time.h @@ -0,0 +1,15 @@ +#ifndef FIXINC_M88K_MULTI_INCL_CHECK +#define FIXINC_M88K_MULTI_INCL_CHECK 1 + + + +#if defined( M88K_MULTI_INCL_CHECK ) + +#endif /* M88K_MULTI_INCL_CHECK */ + + +#if defined( VXWORKS_NEEDS_VXTYPES_CHECK ) +unsigned int _clocks_per_sec; +#endif /* VXWORKS_NEEDS_VXTYPES_CHECK */ + +#endif /* FIXINC_M88K_MULTI_INCL_CHECK */ diff --git a/gcc/fixinc/tests/base/unistd.h b/gcc/fixinc/tests/base/unistd.h new file mode 100644 index 00000000000..9a28eec5e89 --- /dev/null +++ b/gcc/fixinc/tests/base/unistd.h @@ -0,0 +1,5 @@ + + +#if defined( ALPHA_SBRK_CHECK ) +extern void *sbrk(ptrdiff_t increment); +#endif /* ALPHA_SBRK_CHECK */ |