This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Improve unsupported error message
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Fri, 4 May 2012 10:58:24 -0700
- Subject: PATCH: Improve unsupported error message
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
I checked in this patch to change error message from
foo.s:1: Error: unsupported for `bar'
to
foo.s:1: Error: unsupported `bar'
when bar is an unsupported instruction.
H.J.
---
* config/tc-i386.c (match_template): Improve unsupported error
message.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index d33fc56..22c861c 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -4861,8 +4861,9 @@ check_reverse:
err_msg = _("unsupported syntax");
break;
case unsupported:
- err_msg = _("unsupported");
- break;
+ as_bad (_("unsupported `%s'"),
+ current_templates->start->name);
+ return NULL;
case invalid_vsib_address:
err_msg = _("invalid VSIB address");
break;