From: deraadt Date: Mon, 29 Jan 1996 06:49:46 +0000 (+0000) Subject: from netbsd X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=de01d5dec13631260fd9bed309a841b5ad734afb;p=openbsd from netbsd --- diff --git a/gnu/usr.bin/gas/config/tc-i386.c b/gnu/usr.bin/gas/config/tc-i386.c index 16375d09957..7e16d7a8867 100644 --- a/gnu/usr.bin/gas/config/tc-i386.c +++ b/gnu/usr.bin/gas/config/tc-i386.c @@ -25,7 +25,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: tc-i386.c,v 1.1.1.1 1995/10/18 08:39:04 deraadt Exp $"; +static char rcsid[] = "$Id: tc-i386.c,v 1.2 1996/01/29 06:49:46 deraadt Exp $"; #endif #include "as.h" @@ -1913,8 +1913,9 @@ char **argP; int *cntP; char ***vecP; { + switch (**argP) { #ifdef PIC - if (argP && *argP && **argP == 'k') { + case 'k': #if 00 char *tmp = xmalloc(3+1+strlen(operand_special_chars)); strcpy(tmp, operand_special_chars); @@ -1931,8 +1932,12 @@ char ***vecP; /* Predefine GOT symbol */ GOT_symbol = symbol_find_or_make("__GLOBAL_OFFSET_TABLE_"); - } + break; #endif + + default: + return 0; + } return 1; } diff --git a/gnu/usr.bin/gas/config/tc-i860.c b/gnu/usr.bin/gas/config/tc-i860.c index 01231384169..a4698f86601 100644 --- a/gnu/usr.bin/gas/config/tc-i860.c +++ b/gnu/usr.bin/gas/config/tc-i860.c @@ -1081,7 +1081,7 @@ char **argP; int *cntP; char ***vecP; { - return 1; + return 0; } #ifdef comment