]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/tc-arc.c (md_assemble): Use is_end_of_line instead of
authorAlan Modra <amodra@gmail.com>
Tue, 22 May 2001 11:03:35 +0000 (11:03 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 22 May 2001 11:03:35 +0000 (11:03 +0000)
testing for NULs.

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

index 11022028f8cf353ac0e1b898c5808c24d825ca29..d412c447f5e1ba15f3092ef03b0aa8586602ffe3 100644 (file)
@@ -1,5 +1,8 @@
 2001-05-22  Alan Modra  <amodra@one.net.au>
 
+       * config/tc-arc.c (md_assemble): Use is_end_of_line instead of
+       testing for NULs.
+
        * symbols.c (resolve_symbol_value): Remove "finalize" param,
        instead use finalize_syms directly.  Don't treat expressions
        specially with regard to finalize_syms.  Update calls to self.
index 730cfc6767ab3d81283e0c503cb3d49215596500..45f54ac4fe367b5eb72cf035b857c336dbdd3b8e 100644 (file)
@@ -631,7 +631,7 @@ md_assemble (str)
              /* Is there anything left to parse?
                 We don't check for this at the top because we want to parse
                 any trailing fake arguments in the syntax string.  */
-             if (*str == '\0')
+             if (is_end_of_line[(unsigned char) *str])
                break;
 
              /* Parse the operand.  */
@@ -739,7 +739,7 @@ md_assemble (str)
          while (isspace (*str))
            ++str;
 
-         if (*str != '\0')
+         if (!is_end_of_line[(unsigned char) *str])
            as_bad ("junk at end of line: `%s'", str);
 
          /* Is there a limm value?  */