From: Alan Modra Date: Tue, 22 May 2001 11:03:35 +0000 (+0000) Subject: * config/tc-arc.c (md_assemble): Use is_end_of_line instead of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d0441d9628b8196f726082b03c663000a491623;p=binutils-gdb.git * config/tc-arc.c (md_assemble): Use is_end_of_line instead of testing for NULs. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 11022028f8c..d412c447f5e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ 2001-05-22 Alan Modra + * 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. diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c index 730cfc6767a..45f54ac4fe3 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? */