This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Assemble 'bad' moxie instruction
- From: Anthony Green <green at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 13 Nov 2016 12:37:11 -0000
- Subject: [binutils-gdb] Assemble 'bad' moxie instruction
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3f47df7fb3fb46566bb68dd638a61cef87dd14e9
commit 3f47df7fb3fb46566bb68dd638a61cef87dd14e9
Author: Anthony Green <green@moxielogic.com>
Date: Sun Nov 13 07:37:02 2016 -0500
Assemble 'bad' moxie instruction
Diff:
---
gas/config/tc-moxie.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gas/config/tc-moxie.c b/gas/config/tc-moxie.c
index 7e6a8cf..80de828 100644
--- a/gas/config/tc-moxie.c
+++ b/gas/config/tc-moxie.c
@@ -535,6 +535,13 @@ md_assemble (char *str)
BFD_RELOC_MOXIE_10_PCREL);
}
break;
+ case MOXIE_BAD:
+ iword = 0;
+ while (ISSPACE (*op_end))
+ op_end++;
+ if (*op_end != 0)
+ as_warn (_("extra stuff on line ignored"));
+ break;
default:
abort ();
}