This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
AM30: patch for thinko in my previous patch
- To: binutils at sourceware dot cygnus dot com
- Subject: AM30: patch for thinko in my previous patch
- From: Alexandre Oliva <aoliva at cygnus dot com>
- Date: 14 Apr 2000 02:37:01 -0300
- Organization: Cygnus Solutions, a Red Hat Company
The patch:
2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
* config/tc-mn10300.c (md_pseudo_table): Use constant names.
(md_begin): Likewise.
(HAVE_AM33): New macro.
(md_assemble): Use it. Match r_regs and xr_regs only if
HAVE_AM33.
introduced a bug in the assembler. It would no longer recognize
instructions marked as AM30 :-(
Here's a patch. Ok to install? Release branch?
Index: gas/ChangeLog
2000-04-12 Alexandre Oliva <aoliva@cygnus.com>
* config/tc-mn10300.c (HAVE_AM30): Define.
(md_assemble): Use it.
Index: gas/config/tc-mn10300.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mn10300.c,v
retrieving revision 1.4
diff -u -r1.4 tc-mn10300.c
--- gas/config/tc-mn10300.c 2000/04/03 20:20:26 1.4
+++ gas/config/tc-mn10300.c 2000/04/12 20:29:47
@@ -125,6 +125,7 @@
};
#define HAVE_AM33 (current_machine == AM33)
+#define HAVE_AM30 (current_machine == AM30 || HAVE_AM33)
/* Opcode hash table. */
static struct hash_control *mn10300_hash;
@@ -944,7 +946,8 @@
/* If the instruction is not available on the current machine
then it can not possibly match. */
if (opcode->machine
- && !(opcode->machine == AM33 && HAVE_AM33))
+ && !(opcode->machine == AM33 && HAVE_AM33)
+ && !(opcode->machine == AM30 && HAVE_AM30))
goto error;
for (op_idx = 1, opindex_ptr = opcode->operands;
--
Alexandre Oliva Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me