diff options
author | 2002-06-26 11:25:43 +0000 | |
---|---|---|
committer | 2002-06-26 11:25:43 +0000 | |
commit | 0f65e46971336a2bc21d9221b521ea5c515fb24c (patch) | |
tree | bcbe4d67eb62192f66eb86e3135ab8336c5cd2a8 | |
parent | limit # of env vars to 1000; ok deraadt/djm (diff) | |
download | wireguard-openbsd-0f65e46971336a2bc21d9221b521ea5c515fb24c.tar.xz wireguard-openbsd-0f65e46971336a2bc21d9221b521ea5c515fb24c.zip |
Actually use m68k-aliases (forgot to commit this...)
ok miod@
-rw-r--r-- | gnu/usr.bin/gas/config/tc-m68k.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/usr.bin/gas/config/tc-m68k.c b/gnu/usr.bin/gas/config/tc-m68k.c index 894596167ef..954a3f95295 100644 --- a/gnu/usr.bin/gas/config/tc-m68k.c +++ b/gnu/usr.bin/gas/config/tc-m68k.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tc-m68k.c,v 1.4 1996/06/17 00:24:29 deraadt Exp $ */ +/* $OpenBSD: tc-m68k.c,v 1.5 2002/06/26 11:25:43 espie Exp $ */ /* tc-m68k.c All the m68020 specific stuff in one convenient, huge, slow to compile, easy to find file. @@ -29,6 +29,8 @@ /* note that this file includes real declarations and thus can only be included by one source file per executable. */ #include "opcode/m68k.h" +#include "opcode/m68k-aliases.h" + #ifdef TE_SUN /* This variable contains the value to write out at the beginning of the a.out file. The 2<<16 means that this is a 68020 file instead @@ -2927,6 +2929,16 @@ void if (retval && *retval) as_fatal("Internal Error: Can't hash %s: %s",ins->name,retval); } + for (i = 0; i < m68k_numaliases; i++) { + const char *name = m68k_opcode_aliases[i].primary; + const char *alias = m68k_opcode_aliases[i].alias; + void *val = hash_find(op_hash, name); + if (!val) + as_fatal("Internal Error: Can't find %s in hash table", name); + retval = hash_insert(op_hash, alias, val); + if (retval && *retval) + as_fatal("Internal Error: Can't hash %s: %s", alias, retval); + } for (i = 0; i < sizeof(mklower_table) ; i++) mklower_table[i] = (isupper(c = (char) i)) ? tolower(c) : c; |