OSDN Git Service

diff of diff does not work well, so use expected test result files
authorkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 May 2000 19:41:37 +0000 (19:41 +0000)
committerkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 May 2000 19:41:37 +0000 (19:41 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34270 138bc75d-0d04-0410-961f-82ee72b054a4

54 files changed:
gcc/ChangeLog
gcc/fixinc/tests/base/X11/Intrinsic.h [new file with mode: 0644]
gcc/fixinc/tests/base/X11/ShellP.h [new file with mode: 0644]
gcc/fixinc/tests/base/X11/Xmu.h [new file with mode: 0644]
gcc/fixinc/tests/base/Xm/BaseClassI.h [new file with mode: 0644]
gcc/fixinc/tests/base/Xm/Traversal.h [new file with mode: 0644]
gcc/fixinc/tests/base/ansi/math.h [new file with mode: 0644]
gcc/fixinc/tests/base/ansi/stdlib.h [new file with mode: 0644]
gcc/fixinc/tests/base/assert.h [new file with mode: 0644]
gcc/fixinc/tests/base/bsd/libc.h [new file with mode: 0644]
gcc/fixinc/tests/base/c_asm.h [new file with mode: 0644]
gcc/fixinc/tests/base/curses.h [new file with mode: 0644]
gcc/fixinc/tests/base/fcntl.h [new file with mode: 0644]
gcc/fixinc/tests/base/hsfs/hsfs_spec.h [new file with mode: 0644]
gcc/fixinc/tests/base/inttypes.h [new file with mode: 0644]
gcc/fixinc/tests/base/libgen.h [new file with mode: 0644]
gcc/fixinc/tests/base/limits.h [new file with mode: 0644]
gcc/fixinc/tests/base/machine/ansi.h [new file with mode: 0644]
gcc/fixinc/tests/base/malloc.h [new file with mode: 0644]
gcc/fixinc/tests/base/math.h [new file with mode: 0644]
gcc/fixinc/tests/base/netdnet/dnetdb.h [new file with mode: 0644]
gcc/fixinc/tests/base/netinet/ip.h [new file with mode: 0644]
gcc/fixinc/tests/base/pixrect/memvar.h [new file with mode: 0644]
gcc/fixinc/tests/base/pthread.h [new file with mode: 0644]
gcc/fixinc/tests/base/reg_types.h [new file with mode: 0644]
gcc/fixinc/tests/base/regex.h [new file with mode: 0644]
gcc/fixinc/tests/base/rpc/auth.h [new file with mode: 0644]
gcc/fixinc/tests/base/rpc/rpc.h [new file with mode: 0644]
gcc/fixinc/tests/base/rpc/xdr.h [new file with mode: 0644]
gcc/fixinc/tests/base/rpcsvc/rstat.h [new file with mode: 0644]
gcc/fixinc/tests/base/rpcsvc/rusers.h [new file with mode: 0644]
gcc/fixinc/tests/base/sparc/asm_linkage.h [new file with mode: 0644]
gcc/fixinc/tests/base/stdio.h [new file with mode: 0644]
gcc/fixinc/tests/base/stdlib.h [new file with mode: 0644]
gcc/fixinc/tests/base/strings.h [new file with mode: 0644]
gcc/fixinc/tests/base/sundev/vuid_event.h [new file with mode: 0644]
gcc/fixinc/tests/base/sunwindow/win_lock.h [new file with mode: 0644]
gcc/fixinc/tests/base/sym.h [new file with mode: 0644]
gcc/fixinc/tests/base/sys/asm.h [new file with mode: 0644]
gcc/fixinc/tests/base/sys/file.h [new file with mode: 0644]
gcc/fixinc/tests/base/sys/limits.h [new file with mode: 0644]
gcc/fixinc/tests/base/sys/mman.h [new file with mode: 0644]
gcc/fixinc/tests/base/sys/param.h [new file with mode: 0644]
gcc/fixinc/tests/base/sys/signal.h [new file with mode: 0644]
gcc/fixinc/tests/base/sys/spinlock.h [new file with mode: 0644]
gcc/fixinc/tests/base/sys/stat.h [new file with mode: 0644]
gcc/fixinc/tests/base/sys/stdtypes.h [new file with mode: 0644]
gcc/fixinc/tests/base/sys/time.h [new file with mode: 0644]
gcc/fixinc/tests/base/sys/times.h [new file with mode: 0644]
gcc/fixinc/tests/base/sys/types.h [new file with mode: 0644]
gcc/fixinc/tests/base/sys/wait.h [new file with mode: 0644]
gcc/fixinc/tests/base/testing.h [new file with mode: 0644]
gcc/fixinc/tests/base/time.h [new file with mode: 0644]
gcc/fixinc/tests/base/unistd.h [new file with mode: 0644]

index db9855e..f625ed8 100644 (file)
@@ -1,3 +1,7 @@
+2000-05-30  Bruce Korb  <bkorb@gnu.org>
+
+       * fixinc/tests/*:  Added expected result files for fixinc's make check
+
 2000-05-30  Richard Henderson  <rth@cygnus.com>
 
        * config/alpha/alpha.md (*setne_internal): Use match_operator
diff --git a/gcc/fixinc/tests/base/X11/Intrinsic.h b/gcc/fixinc/tests/base/X11/Intrinsic.h
new file mode 100644 (file)
index 0000000..49754bb
--- /dev/null
@@ -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 (file)
index 0000000..a89992b
--- /dev/null
@@ -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 (file)
index 0000000..033a29d
--- /dev/null
@@ -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 (file)
index 0000000..464f2df
--- /dev/null
@@ -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 (file)
index 0000000..783b718
--- /dev/null
@@ -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 (file)
index 0000000..11f160f
--- /dev/null
@@ -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 (file)
index 0000000..69045d7
--- /dev/null
@@ -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 (file)
index 0000000..1a26867
--- /dev/null
@@ -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 (file)
index 0000000..4ced1e7
--- /dev/null
@@ -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 (file)
index 0000000..b394b34
--- /dev/null
@@ -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 (file)
index 0000000..02a6af0
--- /dev/null
@@ -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 (file)
index 0000000..a937d86
--- /dev/null
@@ -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 (file)
index 0000000..2fb9ed5
--- /dev/null
@@ -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 (file)
index 0000000..a1086e9
--- /dev/null
@@ -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 (file)
index 0000000..a645acc
--- /dev/null
@@ -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 (file)
index 0000000..5e16a49
--- /dev/null
@@ -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 (file)
index 0000000..8e5570e
--- /dev/null
@@ -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 (file)
index 0000000..6181891
--- /dev/null
@@ -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 (file)
index 0000000..9b2c80d
--- /dev/null
@@ -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 (file)
index 0000000..da43628
--- /dev/null
@@ -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 (file)
index 0000000..840533e
--- /dev/null
@@ -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 (file)
index 0000000..9016455
--- /dev/null
@@ -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 (file)
index 0000000..6bc081b
--- /dev/null
@@ -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 (file)
index 0000000..2a1aad7
--- /dev/null
@@ -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 (file)
index 0000000..87f49cb
--- /dev/null
@@ -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 (file)
index 0000000..02fc0b3
--- /dev/null
@@ -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 (file)
index 0000000..1a64db3
--- /dev/null
@@ -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 (file)
index 0000000..bc61af7
--- /dev/null
@@ -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 (file)
index 0000000..52a602e
--- /dev/null
@@ -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 (file)
index 0000000..4f81788
--- /dev/null
@@ -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 (file)
index 0000000..ccfce57
--- /dev/null
@@ -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 (file)
index 0000000..a050aa3
--- /dev/null
@@ -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 (file)
index 0000000..bfe76c4
--- /dev/null
@@ -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 (file)
index 0000000..218f018
--- /dev/null
@@ -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 (file)
index 0000000..c7ed437
--- /dev/null
@@ -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 (file)
index 0000000..9438e04
--- /dev/null
@@ -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 (file)
index 0000000..9e24ed1
--- /dev/null
@@ -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 (file)
index 0000000..9b9b5c2
--- /dev/null
@@ -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 (file)
index 0000000..0526efb
--- /dev/null
@@ -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 (file)
index 0000000..273b467
--- /dev/null
@@ -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 (file)
index 0000000..16403a0
--- /dev/null
@@ -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 (file)
index 0000000..c252d24
--- /dev/null
@@ -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 (file)
index 0000000..e0eab7a
--- /dev/null
@@ -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 (file)
index 0000000..8194224
--- /dev/null
@@ -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 (file)
index 0000000..52d05f3
--- /dev/null
@@ -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 (file)
index 0000000..206cf41
--- /dev/null
@@ -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 (file)
index 0000000..86a7340
--- /dev/null
@@ -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 (file)
index 0000000..bb3f6ef
--- /dev/null
@@ -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 (file)
index 0000000..9493ce0
--- /dev/null
@@ -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 (file)
index 0000000..943fe2f
--- /dev/null
@@ -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 (file)
index 0000000..4af48a5
--- /dev/null
@@ -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\r
+#define NULL 0UL\r
+#endif\r
+#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 (file)
index 0000000..3d4a089
--- /dev/null
@@ -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 (file)
index 0000000..9a28eec
--- /dev/null
@@ -0,0 +1,5 @@
+
+
+#if defined( ALPHA_SBRK_CHECK )
+extern void *sbrk(ptrdiff_t increment);
+#endif  /* ALPHA_SBRK_CHECK */