]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/tc-i386.c
x86/Intel: drop unnecessary bracket matching from parse_operands()
[thirdparty/binutils-gdb.git] / gas / config / tc-i386.c
index 3a59ea086ac38267982e56a821a18508aefcc3e8..a20aea287182c99b589ee343decf188433a77217 100644 (file)
@@ -5556,12 +5556,9 @@ parse_operands (char *l, const char *mnemonic)
            {
              if (paren_not_balanced)
                {
-                 if (!intel_syntax)
-                   as_bad (_("unbalanced parenthesis in operand %d."),
-                           i.operands + 1);
-                 else
-                   as_bad (_("unbalanced brackets in operand %d."),
-                           i.operands + 1);
+                 know (!intel_syntax);
+                 as_bad (_("unbalanced parenthesis in operand %d."),
+                         i.operands + 1);
                  return NULL;
                }
              else
@@ -5581,13 +5578,6 @@ parse_operands (char *l, const char *mnemonic)
              if (*l == ')')
                --paren_not_balanced;
            }
-         else
-           {
-             if (*l == '[')
-               ++paren_not_balanced;
-             if (*l == ']')
-               --paren_not_balanced;
-           }
          l++;
        }
       if (l != token_start)