]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2008-05-23 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 23 May 2008 13:55:36 +0000 (13:55 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 23 May 2008 13:55:36 +0000 (13:55 +0000)
PR gas/6518
* config/tc-i386.c (match_template): Report ambiguous operand
size, not invalid suffix when there is no match in Intel
syntax.

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

index 7a572df7de8285c18e6cba9d1c13b0534521030d..44319fe3b59abb5b61dcff97918cc7c5aabbd129 100644 (file)
@@ -1,3 +1,10 @@
+2008-05-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR gas/6518
+       * config/tc-i386.c (match_template): Report ambiguous operand
+       size, not invalid suffix when there is no match in Intel
+       syntax.
+
 2008-05-22  Paul Brook  <paul@codesourcery.com>
 
        * config/tc-arm.c (parse_cond): Covert to lowercase before matching.
index 16f37422f6dd8281df43a066b393dc98d665fdb1..19a3ff0a4aaf4b35a957ee50fa29e7816e8c6662 100644 (file)
@@ -3754,8 +3754,12 @@ match_template (void)
   if (t == current_templates->end)
     {
       /* We found no match.  */
-      as_bad (_("suffix or operands invalid for `%s'"),
-             current_templates->start->name);
+      if (intel_syntax)
+       as_bad (_("ambiguous operand size or operands invalid for `%s'"),
+               current_templates->start->name);
+      else
+       as_bad (_("suffix or operands invalid for `%s'"),
+               current_templates->start->name);
       return 0;
     }