is_end_of_line fixes.
This commit is contained in:
parent
f0d4cc9e0e
commit
b75c0c920f
8 changed files with 57 additions and 37 deletions
11
gas/expr.c
11
gas/expr.c
|
@ -799,6 +799,9 @@ operand (expressionP)
|
|||
SKIP_WHITESPACE (); /* leading whitespace is part of operand. */
|
||||
c = *input_line_pointer++; /* input_line_pointer->past char in c. */
|
||||
|
||||
if (is_end_of_line[(unsigned char) c])
|
||||
goto eol;
|
||||
|
||||
switch (c)
|
||||
{
|
||||
case '1':
|
||||
|
@ -1166,9 +1169,8 @@ operand (expressionP)
|
|||
{
|
||||
goto isname;
|
||||
}
|
||||
|
||||
case ',':
|
||||
case '\n':
|
||||
case '\0':
|
||||
eol:
|
||||
/* can't imagine any other kind of operand */
|
||||
expressionP->X_op = O_absent;
|
||||
|
@ -1211,8 +1213,6 @@ operand (expressionP)
|
|||
#ifdef TC_M68K
|
||||
de_fault:
|
||||
#endif
|
||||
if (is_end_of_line[(unsigned char) c])
|
||||
goto eol;
|
||||
if (is_name_beginner (c)) /* here if did not begin with a digit */
|
||||
{
|
||||
/*
|
||||
|
@ -1571,6 +1571,9 @@ operator ()
|
|||
|
||||
c = *input_line_pointer & 0xff;
|
||||
|
||||
if (is_end_of_line[c])
|
||||
return O_illegal;
|
||||
|
||||
switch (c)
|
||||
{
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue