aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-arc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-05-22 11:03:35 +0000
committerAlan Modra <amodra@gmail.com>2001-05-22 11:03:35 +0000
commit2d0441d9628b8196f726082b03c663000a491623 (patch)
tree366118788e5bfbadd996b84713a00f8b307b6b7b /gas/config/tc-arc.c
parent186112268beb4984da4e6d58ca75c93f8f74c05a (diff)
downloadgdb-2d0441d9628b8196f726082b03c663000a491623.zip
gdb-2d0441d9628b8196f726082b03c663000a491623.tar.gz
gdb-2d0441d9628b8196f726082b03c663000a491623.tar.bz2
* config/tc-arc.c (md_assemble): Use is_end_of_line instead of
testing for NULs.
Diffstat (limited to 'gas/config/tc-arc.c')
-rw-r--r--gas/config/tc-arc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
index 730cfc6..45f54ac 100644
--- a/gas/config/tc-arc.c
+++ b/gas/config/tc-arc.c
@@ -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? */