aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-04 17:55:38 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-05-04 17:55:38 +0000
commit10efe3f6ab735cdc228d615d25e89fff0623c5cc (patch)
treecf5204ca2cbda195176bbae174f221ead3ed8d90
parent52b3699b0be907d005616a7f5542c4bbd44b1f7b (diff)
downloadgdb-10efe3f6ab735cdc228d615d25e89fff0623c5cc.zip
gdb-10efe3f6ab735cdc228d615d25e89fff0623c5cc.tar.gz
gdb-10efe3f6ab735cdc228d615d25e89fff0623c5cc.tar.bz2
Improve unsupported error message
* config/tc-i386.c (match_template): Improve unsupported error message.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index e04a49f..8196733 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-04 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/tc-i386.c (match_template): Improve unsupported error
+ message.
+
2012-05-03 Sean Keys <skeys@ipdatasys.com>
* configure, Makefile.in: Regenerate.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index ae0b436..3e47349 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -4353,8 +4353,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;