Improve unsupported error message
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 4 May 2012 17:55:38 +0000 (17:55 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 4 May 2012 17:55:38 +0000 (17:55 +0000)
* config/tc-i386.c (match_template): Improve unsupported error
message.

gas/ChangeLog
gas/config/tc-i386.c

index e04a49f..8196733 100644 (file)
@@ -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.
index ae0b436..3e47349 100644 (file)
@@ -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;