diff -crB gcc-1.40-org/Makefile gcc-1.40/Makefile *** gcc-1.40-org/Makefile Tue May 21 03:12:11 1991 --- gcc-1.40/Makefile Sun Dec 10 13:23:54 2006 *************** *** 54,64 **** # Directory where sources are, from where we are. srcdir = . # Directory in which to put the executable for the command `gcc' ! bindir = $(prefix)/usr/local/bin # Directory in which to put the subprograms used by the compiler. ! libdir = $(prefix)/usr/local/lib # Directory in which to put man pages. ! mandir = $(prefix)/usr/local/man/man1 # Number to put in man-page filename. manext = 1 --- 54,65 ---- # Directory where sources are, from where we are. srcdir = . # Directory in which to put the executable for the command `gcc' ! prefix = /prog/osdev/linux-0.01-upd3_b/binbuild ! bindir = $(prefix)/bin # Directory in which to put the subprograms used by the compiler. ! libdir = $(prefix)/lib # Directory in which to put man pages. ! mandir = $(prefix)/man/man1 # Number to put in man-page filename. manext = 1 Only in gcc-1.40/: aux-output.c diff -crB gcc-1.40-org/cccp.c gcc-1.40/cccp.c *** gcc-1.40-org/cccp.c Wed May 1 20:12:05 1991 --- gcc-1.40/cccp.c Fri Dec 8 23:13:50 2006 *************** *** 55,60 **** --- 55,62 ---- #include #include #include + #include + #include #ifndef VMS #include *************** *** 4834,4841 **** { int i; FILE_BUF *ip = NULL; ! extern int errno, sys_nerr; ! extern char *sys_errlist[]; for (i = indepth; i >= 0; i--) if (instack[i].fname != NULL) { --- 4836,4843 ---- { int i; FILE_BUF *ip = NULL; ! // extern int errno, sys_nerr; ! // extern char *sys_errlist[]; for (i = indepth; i >= 0; i--) if (instack[i].fname != NULL) { *************** *** 5497,5504 **** perror_with_name (name) char *name; { ! extern int errno, sys_nerr; ! extern char *sys_errlist[]; fprintf (stderr, "%s: ", progname); if (errno < sys_nerr) --- 5499,5506 ---- perror_with_name (name) char *name; { ! // extern int errno, sys_nerr; ! // extern char *sys_errlist[]; fprintf (stderr, "%s: ", progname); if (errno < sys_nerr) diff -crB gcc-1.40-org/config/xm-i386v.h gcc-1.40/config/xm-i386v.h *** gcc-1.40-org/config/xm-i386v.h Wed Feb 22 18:27:01 1989 --- gcc-1.40/config/xm-i386v.h Fri Dec 8 23:14:25 2006 *************** *** 42,47 **** --- 42,51 ---- #define bzero(a,b) memset (a,0,b) #define bcmp(a,b,c) memcmp (a,b,c) + #include + + /* #ifdef __GNUC__ #define alloca(n) __builtin_alloca(n) #endif + */ Only in gcc-1.40/: config.h Only in gcc-1.40/: config.status diff -crB gcc-1.40-org/gcc.c gcc-1.40/gcc.c *** gcc-1.40-org/gcc.c Mon Mar 25 05:51:11 1991 --- gcc-1.40/gcc.c Fri Dec 8 22:40:44 2006 *************** *** 128,133 **** --- 128,137 ---- #include #include + #include + #include + #include + #include "config.h" #include "obstack.h" #include "gvarargs.h" *************** *** 1853,1872 **** exit (error_count); } ! ! xmalloc (size) int size; { ! register int value = malloc (size); if (value == 0) fatal ("virtual memory exhausted"); return value; } ! xrealloc (ptr, size) int ptr, size; { ! register int value = realloc (ptr, size); if (value == 0) fatal ("virtual memory exhausted"); return value; --- 1857,1876 ---- exit (error_count); } ! ! int xmalloc (size) int size; { ! register int value = (int)malloc (size); if (value == 0) fatal ("virtual memory exhausted"); return value; } ! int xrealloc (ptr, size) int ptr, size; { ! register int value = (int)realloc ((void*)ptr, size); if (value == 0) fatal ("virtual memory exhausted"); return value; *************** *** 1904,1911 **** pfatal_with_name (name) char *name; { ! extern int errno, sys_nerr; ! extern char *sys_errlist[]; char *s; if (errno < sys_nerr) --- 1908,1915 ---- pfatal_with_name (name) char *name; { ! // extern int errno, sys_nerr; ! // extern const char* const sys_errlist[]; char *s; if (errno < sys_nerr) *************** *** 1918,1925 **** perror_with_name (name) char *name; { ! extern int errno, sys_nerr; ! extern char *sys_errlist[]; char *s; if (errno < sys_nerr) --- 1922,1929 ---- perror_with_name (name) char *name; { ! // extern int errno, sys_nerr; ! // extern const char* const sys_errlist[]; char *s; if (errno < sys_nerr) *************** *** 1932,1939 **** perror_exec (name) char *name; { ! extern int errno, sys_nerr; ! extern char *sys_errlist[]; char *s; if (errno < sys_nerr) --- 1936,1943 ---- perror_exec (name) char *name; { ! // extern int errno, sys_nerr; ! // extern const char* const sys_errlist[]; char *s; if (errno < sys_nerr) Only in gcc-1.40/: gcc1.40 Only in gcc-1.40/: gnulib diff -crB gcc-1.40-org/hard-params.c gcc-1.40/hard-params.c *** gcc-1.40-org/hard-params.c Tue May 21 03:06:30 1991 --- gcc-1.40/hard-params.c Fri Dec 8 22:50:21 2006 *************** *** 173,178 **** --- 173,180 ---- #define PASS1 1 #define VERSION "4.1" + #include + /* Procedure just marks the functions that don't return a result */ #ifdef Procedure #undef Procedure *************** *** 338,344 **** char * xmalloc(size) unsigned size; { ! char *malloc(); char *value = malloc(size); if (value == 0) { fprintf(stderr, "Virtual memory exceeded\n"); --- 340,346 ---- char * xmalloc(size) unsigned size; { ! // char *malloc(); char *value = malloc(size); if (value == 0) { fprintf(stderr, "Virtual memory exceeded\n"); *************** *** 349,355 **** main(argc, argv) int argc; char *argv[]; { int dprec, fprec, lprec, basic(), fprop(), dprop(), efprop(), edprop(); ! char *malloc(); unsigned int size; long total; int i; char *s; int bad; --- 351,357 ---- main(argc, argv) int argc; char *argv[]; { int dprec, fprec, lprec, basic(), fprop(), dprop(), efprop(), edprop(); ! // char *malloc(); unsigned int size; long total; int i; char *s; int bad; Only in gcc-1.40/: md diff -crB gcc-1.40-org/obstack.c gcc-1.40/obstack.c *** gcc-1.40-org/obstack.c Sun Sep 24 13:14:55 1989 --- gcc-1.40/obstack.c Fri Dec 8 21:38:56 2006 *************** *** 20,26 **** You are forbidden to forbid anyone else to use, share and improve what you give them. Help stamp out software-hoarding! */ ! #include "obstack.h" #ifdef __STDC__ --- 20,26 ---- You are forbidden to forbid anyone else to use, share and improve what you give them. Help stamp out software-hoarding! */ ! #include #include "obstack.h" #ifdef __STDC__ diff -crB gcc-1.40-org/reload.c gcc-1.40/reload.c *** gcc-1.40-org/reload.c Fri Dec 28 05:39:31 1990 --- gcc-1.40/reload.c Fri Dec 8 22:46:54 2006 *************** *** 81,86 **** --- 81,88 ---- #define REG_OK_STRICT + #include + #include "config.h" #include "rtl.h" #include "insn-config.h" Only in gcc-1.40/: stamp-gnulib2 Only in gcc-1.40/: tm.h