diff -Naur gas-1.38_org/Makefile pou/gas-1.38/Makefile --- gas-1.38_org/Makefile 1990-10-18 21:26:42.000000000 +0100 +++ pou/gas-1.38/Makefile 2006-12-10 14:39:12.000000000 +0100 @@ -20,8 +20,9 @@ # This makefile may be used to make the VAX, 68020, 80386, # SPARC, ns32k, or i860 assembler(s). -BINDIR = /usr/local/bin -#CC=gcc +#BINDIR = /usr/local/bin +BINDIR = /prog/osdev/linux-0.01-upd3_b/binbuild/bin +CC=gcc-2.95 # If you are on a BSD system, un-comment the next two lines, and comment out # the lines for SystemV and HPUX below diff -Naur gas-1.38_org/messages.c pou/gas-1.38/messages.c --- gas-1.38_org/messages.c 1991-01-04 19:12:57.000000000 +0100 +++ pou/gas-1.38/messages.c 2006-12-08 23:50:28.000000000 +0100 @@ -23,6 +23,7 @@ #include /* Need this to make sys_errlist/sys_nerr right */ #endif /* VMS */ +#include #include "as.h" #ifndef NO_VARARGS @@ -54,11 +55,36 @@ */ + + /* Nonzero if we've hit a 'bad error', and should not write an obj file, and exit with a nonzero error code */ int bad_error = 0; +_doprnt(Format, a, f) +char *Format; +FILE *f; +char **a; +{ + int Nargs = ((int *)a)[-2]; /* This understands as_fatal() */ + + switch(Nargs) { + default: fprintf(f,"_doprnt error on \"%s\"!!",Format); break; + case 1: fprintf(f,Format); break; + case 2: fprintf(f,Format,a[0]); break; + case 3: fprintf(f,Format,a[0],a[1]); break; + case 4: fprintf(f,Format,a[0],a[1],a[2]); break; + case 5: fprintf(f,Format,a[0],a[1],a[2],a[3]); break; + case 6: fprintf(f,Format,a[0],a[1],a[2],a[3],a[4]); break; + case 7: fprintf(f,Format,a[0],a[1],a[2],a[3],a[4],a[5]); break; + case 8: fprintf(f,Format,a[0],a[1],a[2],a[3],a[4],a[5],a[6]); break; + case 9: fprintf(f,Format,a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]); break; + case 10: fprintf(f,Format,a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8]); break; + } +} + + /* * a s _ p e r r o r @@ -71,9 +97,6 @@ char * gripe; /* Unpunctuated error theme. */ char * filename; { - extern int errno; /* See perror(3) for details. */ - extern int sys_nerr; - extern char * sys_errlist[]; as_where(); fprintf (stderr,gripe,filename);